CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

4.125 I2C slave is broken

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
snock



Joined: 10 Oct 2011
Posts: 24

View user's profile Send private message

4.125 I2C slave is broken
PostPosted: Mon Oct 10, 2011 7:32 am     Reply with quote

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: 19552

View user's profile Send private message

PostPosted: Mon Oct 10, 2011 9:32 am     Reply with quote

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.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group