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?