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

PIC18F45K20 as a I2C SLAVE

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



Joined: 25 Oct 2010
Posts: 2

View user's profile Send private message Send e-mail

PIC18F45K20 as a I2C SLAVE
PostPosted: Mon Oct 25, 2010 5:39 pm     Reply with quote

I am using a Microchip PIC18F45K20 as a I2C slave. Using the EX_SLAVE.c code I am finding that on a byte write transaction to the PIC, it is not acknowledging the data byte. It acknowledges the address byte just fine.

Ideas?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Oct 26, 2010 3:03 pm     Reply with quote

My advice is to test it with a different PIC, because the PIC18F45K20 has
several things wrong with i2c as listed in the errata:
http://ww1.microchip.com/downloads/en/DeviceDoc/80425G.pdf
If it works with a different PIC, then you may have a hardware problem in
the PIC18F45K20.
starr256



Joined: 25 Oct 2010
Posts: 2

View user's profile Send private message Send e-mail

PostPosted: Tue Nov 02, 2010 9:18 am     Reply with quote

OK, that was fun. Different chip (PIC18F4420), better results. Thanks.
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