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 slave on pic18f2420

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



Joined: 27 Jan 2008
Posts: 4
Location: France

View user's profile Send private message

i2c slave on pic18f2420
PostPosted: Thu Jan 06, 2011 9:39 am     Reply with quote

Dear all,
I use a pic18f2420 as an i2c counter. The pic is i2cslave and time to time another microprocessor (arm9) read pic contents values using i2c bus.
Time to time, the arm9 reset the whole system using watchdog, EXCEPTING pic device. If, at this moment, the bus i2c were busy, specially on a reading sequence, specially reading 0 (SDA low), the pic continue, after this reset, to held SDA line low, therefore the whole i2c bus is weak. How could I do to avoid this situation without resetting the pic by arm reset.
Thank you for your help.
--
Christian
Ttelmah



Joined: 11 Mar 2010
Posts: 19559

View user's profile Send private message

PostPosted: Thu Jan 06, 2011 11:12 am     Reply with quote

Reset the PIC, with it's watchdog. Have I2C 'complete' transactions, reset it's watchdog, choose a time that suits the transactions from the ARM, and it'll reset if the I2C bus hangs for any reason.

Best Wishes
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