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

I2C slave gives NACK (v4.081)

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



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

I2C slave gives NACK (v4.081)
PostPosted: Mon Mar 09, 2009 3:45 pm     Reply with quote

Colleagues,

Originally, I wrote and successfully tested my code using 4.071 back in December. Since then I have updated my compiler to 4.081. I have re-compiled the old code, but now slave sends NACK where under the old compiler it was properly sending ACK. The list of recent changes shows that some problems with I2C were fixed. What has changed? What would you recommend to try?

Just in case, here's my I2C declaration:

Code:
#use i2c(Slave, sda=PIN_C4, scl=PIN_C3, address=0xB0, FORCE_HW, NO_STRETCH) // I've tried without NO_STRETCH, but still was getting NACK.


PIC18LF4525

Thanks!
- Nick
_________________
Read the label, before opening a can of worms.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Mar 09, 2009 3:49 pm     Reply with quote

Print the i2c portions of the .LST files, compiled for both versions.
The compare them side-by-side on your desk. Investigate any differences.

Make sure you comment out the #nolist line at the top of the 18F4525.h
files so you will see all the ASM code when it's compiled.
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