View previous topic :: View next topic |
Author |
Message |
Fabri
Joined: 22 Aug 2005 Posts: 275
|
i2c and wdt reset |
Posted: Thu Mar 30, 2006 10:09 am |
|
|
Hi everybody,
I use i2c bus as below: Quote: |
// Configura bus
#use I2C(MASTER,sda=PIN_C4,scl=PIN_C3,restart_wdt,FORCE_HW,fast)
|
During i2c bus inizialization there is a reset from watchdog.
Why doesn't restart_wdt as option of #use i2c work ?
Thanks for support |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Mar 30, 2006 12:52 pm |
|
|
Post your compiler version and post a short, compilable test program
that demonstrates the problem and that has less than 20 lines in it,
if possible. |
|
|
Guest
|
|
Posted: Thu Mar 30, 2006 12:54 pm |
|
|
The Restart_WDT option only says that it will restart the WDT while waiting in a I2C read. Not during initialization. You have to do that yourself. |
|
|
Fabri
Joined: 22 Aug 2005 Posts: 275
|
|
Posted: Fri Mar 31, 2006 2:30 am |
|
|
Hi,
I found a problem in other part of project.
The routine i2c bus work right also with watchdog.
Thanks for support |
|
|
|