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

How to prevent #use I2C to hang up

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



Joined: 02 Dec 2005
Posts: 9

View user's profile Send private message

How to prevent #use I2C to hang up
PostPosted: Tue Mar 27, 2007 10:12 am     Reply with quote

Hi,

Sometimes my I2C bus will hang at #use I2C line during emulation. Is there anyway to break out from this situation (without using WDT) or anyway to prevent it from getting stuck at #use I2C during I2C communication?

Another thing is that sometimes I would get rubbish data from the I2C communication. Is the I2C function is CCS foolproof? What can cause this to happen?

Cheers!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Mar 27, 2007 11:34 am     Reply with quote

Quote:
Sometimes my I2C bus will hang at #use I2C line during emulation.

Give the name of the emulator and the i2c chip that you're using,
and the PIC, etc.

Quote:

Is there anyway to break out from this situation (without using WDT)
or anyway to prevent it from getting stuck at #use I2C during I2C
communication?

capefelix = Fabri ?
capfelix



Joined: 02 Dec 2005
Posts: 9

View user's profile Send private message

PostPosted: Thu Mar 29, 2007 3:21 am     Reply with quote

First of all, I'm not Fabri although our problem seems similar.

I'm using ICD from Microchip as the emulator. Another thing is that v3 and v4, I noticed the I2C routine in v3 is more stable than v4. What's your comments.

I'm using PIC18F2455.
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