System Interface Unit
MPC885 PowerQUICC Family Reference Manual, Rev. 2
10-20
Freescale Semiconductor
Note that if the bus monitor is disabled, transfer errors do not cause TEA to be asserted.
10.7
Software Watchdog Timer
The SIU provides the software watchdog timer (SWT) option that prevents system lockup when software
gets trapped in loops without a controlled exit. The software watchdog timer is enabled after HRESET to
automatically generate a HRESET if it times out. If the software watchdog timer is not needed, clear
SYPCR[SWE] to disable it. If it is used, the software watchdog timer requires a special service sequence
to be executed periodically; otherwise, the watchdog timer times out and issues a reset or an NMI, which
is programmed by SYPCR[SWRI]. Once SYPCR is written by the software, SYPCR[SWE] cannot be
changed. See
Section 10.4.3, “System Protection Control Register (SYPCR).”
To service the software
watchdog timer, follow these steps:
1. Write 0x556C to the software service register. (SWSR)
2. Write 0xAA39 to the SWSR.
This sequence clears the watchdog timer and the timing process repeats. If a value other than 0x556C or
0xAA39 is used, the entire sequence must start over. Although the writes must occur in the correct order
before a timeout occurs, any number of instructions may be executed between the writes. This allows
interrupts and exceptions to occur between the two writes when necessary. See
Figure 10-15
.
Figure 10-15. Software Watchdog Timer Service State Diagram
The decrementer begins counting when it is loaded with a value from the SWTC field. This value is then
loaded into a 16-bit down-counter clocked by the system clock. When necessary, an additional divide by
2,048 prescaler is used. After the timer reaches 0x0, a software watchdog expiration request is issued to
the reset or NMI control logic. At reset, the value in SWTC is set to the maximum value and is loaded into
the software watchdog down-counter, starting the process.
Although most software disciplines permit or encourage the watchdog concept, some systems require a
selection of timeout periods. For this reason, the software watchdog timer provides a selectable range for
the timeout period.
Figure 10-16
shows the method for handling this need. When a new value is loaded
into SWTC, the software watchdog timer is not updated until the servicing sequence is written to SWSR.
If the SWE bit is loaded with a zero, the modulus counter will not count.
State 0
Waiting for 0x556C
State 1
Waiting for 0xAA39
Reset
Not 0xAA39/Don’t reload
0xAA39/Reload
0x556C/Don’t reload
Not 0x556C/Don’t reload
Summary of Contents for PowerQUICC MPC870
Page 98: ...MPC885 PowerQUICC Family Reference Manual Rev 2 I 4 Freescale Semiconductor ...
Page 118: ...MPC885 Overview MPC885 PowerQUICC Family Reference Manual Rev 2 1 20 Freescale Semiconductor ...
Page 158: ...The MPC8xx Core MPC885 PowerQUICC Family Reference Manual Rev 2 3 18 Freescale Semiconductor ...
Page 288: ...MPC885 PowerQUICC Family Reference Manual Rev 2 III 4 Freescale Semiconductor ...
Page 554: ...MPC885 PowerQUICC Family Reference Manual Rev 2 V 6 Freescale Semiconductor ...
Page 1090: ...UTOPIA Interface MPC885 PowerQUICC Family Reference Manual Rev 2 43 8 Freescale Semiconductor ...
Page 1312: ...Byte Ordering MPC885 PowerQUICC Family Reference Manual Rev 2 A 8 Freescale Semiconductor ...
Page 1336: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 16 Freescale Semiconductor ...
Page 1358: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 38 Freescale Semiconductor ...
Page 1370: ...MPC880 MPC885 PowerQUICC Family Reference Manual Rev 2 E 4 Freescale Semiconductor ...
Page 1386: ...Revision History MPC885 PowerQUICC Family Reference Manual Rev 2 I 2 Freescale Semiconductor ...