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.
I2C Macros 'available'
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
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
-
- Posts: 714
- Joined: Wed Jan 31, 2007 12:41 pm
- Has thanked: 1 time
- Been thanked: 26 times
copy of i2c macro
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
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
- Steve
- Matrix Staff
- Posts: 3433
- Joined: Tue Jan 03, 2006 3:59 pm
- Has thanked: 114 times
- Been thanked: 422 times
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.
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.