Hi My name is Leonardo and I having some problems with I2C Comunication I having a PIC16f876 as Master and a 16F877 as Slave 1
and a 16f876 as Slave 2 When I send a i2c_write to Slave1 the communications are well , but when I send to Slave 1 and then to Slave 2 is like that i2c_stop never occurs keeping the sdi and scl low (or high) indefinelly
Does someone knows or have implemented i2c with 2 or more Slaves?
Al
Joined: 13 Nov 2003 Posts: 28 Location: Belfast
Posted: Mon Feb 16, 2004 3:09 am
Hi Leonardo,
Before issuing an i2c_stop you need to issue a no-acknowledge with your last communication before the i2c_stop. For example after doing a series of i2c_reads (issuing an 'acknowledge' each time) as follows.
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