I need to write a program using PIC18F452 as the master to read multiple bytes from the slave using I2C communication. Does anyone have the code for this? I have read the other posts on I2C communication but have not found what I have been looking for. A quick reply would be really appreciated. Thank You
Ttelmah Guest
Posted: Mon May 21, 2007 2:09 am
EX_SLAVE.C, allows a single byte to be transfered from a specified address. Simply have it increment the address for subsequent calls to state 0x80, and it will allow up to 16 successive reads.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum