Watchdog Time-out.
Posted: Mon Mar 15, 2010 11:36 am
With ‘Auto clear watchdog’ selected and a quiet a few C boxes.
I have also addedat the beginning.
But still Flowcode resets every so often (47 resets in 2 hours)
I have noticed that increased port B interrupt detection increases number of resets.
This increase is due to 2 fan demands increasing, so RPM’s are faster, and taco i/ps connected to port B interrupt increase. Both fans are running at 2700 RPM = 45 detections per second * 2
Is there any way to find out at which point time out occurs so can add extra clear_wdt(); at correct locations, rather then very randomly?
Code: Select all
clear_wdt(); I have also added
Code: Select all
option_reg = 0x4F; //Enable port B weak pull-ups and set WDT prescaler at 1:128 But still Flowcode resets every so often (47 resets in 2 hours)
I have noticed that increased port B interrupt detection increases number of resets.
This increase is due to 2 fan demands increasing, so RPM’s are faster, and taco i/ps connected to port B interrupt increase. Both fans are running at 2700 RPM = 45 detections per second * 2
Is there any way to find out at which point time out occurs so can add extra clear_wdt(); at correct locations, rather then very randomly?