|
|
View previous topic :: View next topic |
Author |
Message |
jenipapo
Joined: 27 Jan 2008 Posts: 4 Location: France
|
i2c slave on pic18f2420 |
Posted: Thu Jan 06, 2011 9:39 am |
|
|
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: 19545
|
|
Posted: Thu Jan 06, 2011 11:12 am |
|
|
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 |
|
|
|
|
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
|