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 lines keep getting damaged on chip

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







I2C lines keep getting damaged on chip
PostPosted: Fri Aug 03, 2007 6:28 pm     Reply with quote

I don't know why, but I always keep having trouble with my I2C lines on my PIC. Something keeps happening to them for no apparent reason and they no longer work after that. Then I get a new PIC and use it instead and it seems fine. But I really would like to know if anyone has a reason for this? My pics are using 4.7k ohm resisters for I2C. It only happens to my I2C lines. The project I'm doing uses 6 pumping motors separated by opto couplers which are turned on with 5V from PIN B2. Then I have servo motors which use PIN0. I also have analog to digital using pins AN0 and AN1.

Any help would be welcome, thank you.
SET



Joined: 15 Nov 2005
Posts: 161
Location: Glasgow, UK

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

PostPosted: Sat Aug 04, 2007 7:43 am     Reply with quote

Do your I2C lines run near to your 'pumping motors' by any chance? Then you might be getting inductive spikes coupling to the I2C line. We would need to see a circuit schematic to know for sure.
ebarnes



Joined: 16 Apr 2007
Posts: 11

View user's profile Send private message

Re: I2C lines keep getting damaged on chip
PostPosted: Tue Oct 09, 2007 2:34 pm     Reply with quote

NeedHelp wrote:
The project I'm doing uses 6 pumping motors separated by opto couplers which are turned on with 5V from PIN B2. Then I have servo motors which use PIN0. I also have analog to digital using pins AN0 and AN1.

Any help would be welcome, thank you.


Check to see where your common ground point connects.
if you do not have a common ground anywhere, that could be your problem. worst case, you should have a common ground back at your AC panel.
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