I2C Macros 'available'
Posted: Fri Mar 23, 2007 10:43 am
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.
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.