EasyManua.ls Logo

AMCC PPC405 - Figure 7-5. Watchdog State Machine; Table 7-3. Watchdog Timer Controls; Watchdog Timer

Default Icon
450 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
AMCC Proprietary 133
Revision 1.01 - February 19, 2007
PPC405 Processor
Preliminary User’s Manual
7.3 Watchdog Timer
The watchdog timer aids system recovery from software or hardware faults.
A watchdog timeout occurs on 01 transitions of a selected bit from the time base, as shown in Table 7-3.
If a watchdog timeout occurs while TSR[WIS] = 0 and TSR[ENW] = 1, a watchdog interrupt occurs if the interrupt is
enabled by TCR[WIE] and MSR[CE]. “Watchdog Timer” on page 11-6 describes register behavior during a
watchdog interrupt.
The interrupt handler should reset the TSR[WIS] bit. This is done by using mtspr to write a word to the TSR having
a 1 in TSR[WIS] and any other bits to be cleared, and a 0 in all other bits. The data written to the TSR is not direct
data, but a mask. A 1 clears a bit and a 0 has no effect.
If a watchdog timeout occurs while TSR[WIS] = 1 and TSR[ENW] = 1, a hardware reset occurs if enabled by a non-
zero value of TCR[WRC]. In other words, a reset can occur if a watchdog timeout occurs while a previous
watchdog timeout is pending. The assumption is that TSR[WIS] was not cleared because the processor could not
execute the watchdog handler, leaving reset as the only way to restart the system. Note that after TCR[WRC] is set
to a non-zero value, it cannot be reset by software. This prevents errant software from disabling the watchdog timer
reset capability. After a reset, the initial value of TCR[WRC] = 00.
Figure 7-5 illustrates the watchdog state machine. The values shown for ENW and WIS relate to the actions
described in Figure 7-4 and the operating mode descriptions that follow Figure 7-4.
Table 7-3. Watchdog Timer Controls
TCR[WP] TBL Bit
Period
(Time Base Clocks)
Period
(200 MHz Clock)
0,0 15 2
17
clocks 0.655 msec
0,1 11 2
21
clocks 10.49 msec
1,0 7 2
25
clocks 0.168 sec
1,1 3 2
29
clocks 2.684 sec
Figure 7-5. Watchdog State Machine
WIS = 0
Time-out, no interrupt
Watchdog timeout occurred, watchdog
Time-out, no interrupt Time-out
(2) SW Loop
(3) SW Loop
(1) Interrupt
Handler
(2) Interrupt
Handler
interrupt will occur if enabled
Value of TCR[WRC]
00 No reset will occur
01 Core reset
10 Chip reset
11 System reset
ENW = 0
WIS = 0
ENW = 1
WIS = 1
ENW = 0
WIS = 1
ENW = 1

Table of Contents