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

About I2C problem.

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



Joined: 26 Sep 2005
Posts: 10

View user's profile Send private message

About I2C problem.
PostPosted: Wed Oct 19, 2005 11:26 am     Reply with quote

I have a problem with using the I2C memory. When the command for a write is given to the microcontroller, it hangs. What should i do ??

Even there's a problem with read command.

Please Reply.
MikeValencia



Joined: 04 Aug 2004
Posts: 238
Location: Chicago

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

PostPosted: Wed Oct 19, 2005 11:56 am     Reply with quote

There's something wrong with the slave then. If you issue a 'write' to a device that physically isn't there, then it wont hang. instead you'll get 0xFF when you do a read. If you write to a device that is not working right, then your master PIC can hang.

The Code Examples forum has plenty of examples of both Master and Slave pics.
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