I2C Macros 'available'

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Mark
Posts: 209
Joined: Thu Oct 19, 2006 11:46 am
Location: Bakewell, UK
Has thanked: 20 times
Been thanked: 16 times
Contact:

I2C Macros 'available'

Post by Mark »

Hi,

After a few pointers from Steve I now have two tested and working macros for I2C communications with the microchip memory chips,
24LC04, 24LC08, 24LC16 connected to the SDA and SCL pins on Port C.

The macros are in the usual format, one is a write macro and takes an integer address and a byte to write, the other takes an integer address and a byte to recieve read data.

The macros are in a test program for running on the 488 development board with a 16F886 at 4 or 19MHz. The macros are intended to be exported for use in other programs and should run with other 16 series chips having an in-built Synchronous Serial Port (16F88X chips etc). The macros are no-frills to keep things simple.

If anyone wants a copy 'as is', for non-commercial use then e-mail me via the forum and I will send a copy by return.

Steve - I will e-mail you a copy, make what you will of it.

Mark

ps This post is not a MM initiative so please bear this in mind if you ask Steve or Ben questions.
Go with the Flow.

User avatar
Steve
Matrix Staff
Posts: 3426
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Post by Steve »

Great work, Mark. Yes, I would be interested in seeing this.

Also, I have on my to-do list an I2C component. Would I be able to use your work as a starting point? Or is that too cheeky?

Mark
Posts: 209
Joined: Thu Oct 19, 2006 11:46 am
Location: Bakewell, UK
Has thanked: 20 times
Been thanked: 16 times
Contact:

Post by Mark »

Steve,

Thanks for the compliment. By all means use the code, on the basis of the usual acknowledgements on any use (and see hint on the last line of my e-mail).

best regards,

Mark
Go with the Flow.

ALAN_26
Posts: 84
Joined: Sat Apr 29, 2006 3:36 pm
Location: MALTA
Contact:

Post by ALAN_26 »

HELLO MARK

I Would like very much to try the i2c macros if you can send me a copy

my email is:

alancilia@yahoo.com

Thanks in advance

Regards Alan cilia

saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times
Contact:

copy of i2c macro

Post by saschech@gmx.de »

HELLO MARK

I Would like very much to try the i2c macros if you can send me a copy
I think if i change the adresse i can work also with pcf 8574p ?!

my email is:

saschech@gmx.de

Thanks in advance

Regards wolfgang


Hallo Mark

WΓΌrdest Du mir bitte auch eine Kopie zusenden?
Wenn ich die Adresse Tausche mΓΌsste ich doch auch mit einem
pcf 8574p arbeiten können ?! oder?

Ich arbeite zum englisch schreiben wenn ich etwas nicht weiß mit Babylon Übersetzungssoftware,geht ganz gut.

Mit besten Dank im voraus Wolfgang

ALAN_26
Posts: 84
Joined: Sat Apr 29, 2006 3:36 pm
Location: MALTA
Contact:

Post by ALAN_26 »

hello

Is the external EEprom component going to be included in the next update ?

And when we can expect the next update to be released ?

User avatar
Steve
Matrix Staff
Posts: 3426
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Post by Steve »

I was hoping to get the next update out by the end of this month, but a few other developments have taken priority. My new aiming point is the middle to end of May.

It will contain a component to drive the I2C bus as a master device, so you should be able to create your own code for the external EEPROM without too much difficulty.

jb
Posts: 2
Joined: Tue Apr 17, 2007 9:07 pm
Contact:

Post by jb »

Hi Mark,

Please send i2c routines to: as3156037@sapo.pt

best regards for all

jb

Post Reply