johanpret
Joined: 23 Oct 2006 Posts: 33 Location: South Africa
|
I2C slave not working |
Posted: Fri Aug 08, 2008 3:00 am |
|
|
Hi All,
Maybe you guys can help me. Tried to get some answers from CCS Support with no answers as yet. I had a fully functional I2C slave code running using version 4.064 but the latest version 4.077 and 4.076 causes the master to "Hang" Look like the interupts on the master stop working. On the Change Log CCS indicated that they fixed I2C slave problems:
4.077 Some problems with slave I2C have been fixed, see the newest EX_SLAVE.C
I asked them what was fixed so that I can try and identify how the fix influenced my code. maybe someone on the forum can help.
If I compile the I2C slave with version 4.077 it does not work. With version 4.064 it works. No changes at all.
I saw a change of clock streaching being the default for chips that support it. So I added the option of NO_STRETCH to the I2c definition. But that aslo don't help?
Maybe someone can give me some pointer on finding the problem?
Johan _________________ Johan Pretorius |
|