Has anyone else had issues with i2c slave code not functioning properly? I'm using the i2c peripherals on two PICs, a 24F, and 16F, and while the master (24F) works flawlessly the slave code barely works. I'm thinking the problem is in the i2c_isr_state() function. The funny thing is the slave code works just fine with the older compiler (4.084 I think). Looks like best workaround is to run the older version along with the newer which isn't that great of a solution IMO.
Ttelmah
Joined: 11 Mar 2010 Posts: 19537
Posted: Mon Oct 10, 2011 9:32 am
You need to tell us more:
What chip (on the slave)?.
What clock rates (both chips)?.
What bus speed?.
What voltage?.
What pull ups?.
Are you sure that when you switch compiler versions you are also switching the library references (include files etc.)?. Common problem when upgrading compiler is for the project file to remember the old include file locations, which then gives problems with the new compiler.
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