sylvandb / gruvin9x

Automatically exported from code.google.com/p/gruvin9x
0 stars 0 forks source link

Watch Dog Timer issues need to be addressed #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We need to take a look at the brown-out and watchdog reset conditions, such 
that things like "throttle warning" and the start-up splash screen do NOT 
prevent system-start-up and PPM_out from beginning when an emergency system 
reset occurs under WDT or BOD conditions.

I started to look at this already but have hit a snag in that it appears that 
even a normal power-up is setting all three of the power-up, external-rest and 
Brown-Out detected flags. It would be illogical to simply reset these at 
start-up, since that logic dis-allows knowing if the next time the flags are 
detected, maybe they're for real this time.

So we need at least a work-around solution. Some way of definitively telling 
the difference between a user power-on via the main switch and a fault-sourced 
reset. Really, we need to ask Atmel et al what is going on with their power-on 
reset logic, so that we can get these important status flags to work correctly 
in the first place.

Original issue reported on code.google.com by gru...@gmail.com on 9 Jul 2011 at 1:25

GoogleCodeExporter commented 8 years ago

Original comment by gru...@gmail.com on 12 Jul 2011 at 3:12

GoogleCodeExporter commented 8 years ago
It occurs to me that maybe "all flags raised" is the normal power on condition 
and that in theory therefore, this can only happen from a full power switch 
cycle? If so, we can simply detect "all flags"=1 and clear them all to zero, 
treating this condition as a normal power-up.

(I'll need to set up a variable regulator to test brown-out resets. Watchdog 
can be tested by making the WDT reset dependant on a switch position, for debug 
only of course.)

Original comment by gru...@gmail.com on 26 Jul 2011 at 2:36

GoogleCodeExporter commented 8 years ago
Apparently, somehow, none of these problems actually seem to exist now. 
Bertrand has written code just as the manual suggests and I've tested it as 
working 100%. Either the chip I was using before was faulty or I was standing 
on the wrong side of sanity when I thought I witnessed what I was sure I did. 
*shrug*

Original comment by gru...@gmail.com on 8 Oct 2011 at 9:53