3. Power-On Reset (cont)
VCC [V]
Vdet
time
Internal
state in CPU Reset Reset Released
Reset
delay
VCC [V]
time
3
4. Low-voltage Detection
• Definition: Detection of supply voltage cut-off and brownouts.
• It monitors the supply voltage and generates an internal Reset or Interrupt when
that voltage drops too low.
• In some cases, after voltage drops below a predefined value, the voltage is
monitored for a few clock cycles to ensure voltage drop is not due to
noise/glitches.
• The Reset or Interrupt can be used to safely power the system down or back up
memory before shutdown etc.
4
5. Low-voltage Detection (cont)
VCC [V]
Brownout
5.0
Vdet Vdet = 3.8V ± 0.5V
2.7
Power supply cut-off
time
Internal
state in Reset Released CPU Reset Reset Released
Reset
Interrupt
5
6. Watchdog Timer
• Used mainly to reset MCU during program runaway or other incorrect program
execution.
• When the WDT underflows, either a Watchdog Timer Interrupt or a Reset can be
generated.
• The application program could periodically reload the WDT timer before it
underflows to ensure that an interrupt or reset isn’t generated. If the program
goes out of control, this periodic reload would not happen. Therefore, the WDT
would generate either an interrupt or a Reset that would cause the application
program to revert to a known (safe or preferred) state.
6
7. Watchdog Timer (cont)
Count = H’FF
(maximum)
Count = 0
Watchdog Overflows
Watchdog Timer starts User program resets WDT counter
or set to other values so that it
does not overflow
Internal Reset Signal
Reset Generated
7