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
Posted: Tue Mar 27, 2007 11:34 am
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
Posted: Thu Mar 29, 2007 3:21 am
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.
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