ST62T40B/E40B
RESETS
(Cont鈥檇)
3.2.3 Watchdog Reset
The MCU provides a Watchdog timer function in
order to ensure graceful recovery from software
upsets. If the Watchdog register is not refreshed
before an end-of-count condition is reached, the
internal reset will be activated. This, amongst oth-
er things, resets the watchdog counter.
The MCU restarts just as though the Reset had
been generated by the RESET pin, including the
built-in stabilisation delay period.
3.2.4 Application Notes
No external resistor is required between V
DD
and
the Reset pin, thanks to the built-in pull-up device.
The POR circuit operates dynamically, in that it
triggers MCU initialization on detecting the rising
edge of V
DD
. The typical threshold is in the region
of 2 volts, but the actual value of the detected
threshold depends on the way in which V
DD
rises.
The POR circuit is
NOT
designed to supervise
static, or slowly rising or falling V
DD
.
3.2.5 MCU Initialization Sequence
When a reset occurs the stack is reset, the PC is
loaded with the address of the Reset Vector (locat-
ed in program ROM starting at address 0FFEh). A
jump to the beginning of the user program must be
coded at this address. Following a Reset, the In-
Figure 13Reset Block Diagram
terrupt flag is automatically set, so that the CPU is
in Non Maskable Interrupt mode; this prevents the
initialisation routine from being interrupted. The in-
itialisation routine should therefore be terminated
by a RETI instruction, in order to revert to normal
mode and enable interrupts. If no pending interrupt
is present at the end of the initialisation routine, the
MCU will continue by processing the instruction
immediately following the RETI instruction. If, how-
ever, a pending interrupt is present, it will be serv-
iced.
Figure 12Reset and Interrupt Processing
RESET
JP
RESET
VECTOR
JP:2 BYTES/4 CYCLES
INITIALIZATION
ROUTINE
RETI
RETI: 1 BYTE/2 CYCLES
VA00181
V
DD
f
OSC
CK
ST6
INTERNAL
RESET
COUNTER
300k鈩?/div>
RESET
2.8k鈩?/div>
POWER ON RESET
RESET
RESET
WATCHDOG RESET
VA0200B
21/76
593
prev
next