MPC555
/
MPC556
SYSTEM CONFIGURATION AND PROTECTION
MOTOROLA
USER’S MANUAL
Rev. 15 October 2000
6-16
Figure 6-7 PIT Block Diagram
The timeout period is calculated as:
Solving this equation using a 4-MHz external clock and a pre-divider of 256 gives:
This gives a range from 64 microseconds, with a PITC of 0x0000, to 4.19 seconds,
with a PITC of 0xFFFF. When a 20-MHz crystal is used with a pre-divider of 256, the
range is between 12.8 microseconds to 0.84 seconds.
6.10 Software Watchdog Timer (SWT)
The software watchdog timer (SWT) prevents system lockout in case the software be-
comes trapped in loops with no controlled exit. The SWT is enabled after system reset
to cause a system reset if it times out. it. The SWT requires a special service sequence
to be executed on a periodic basis. If this periodic servicing action does not occur, the
SWT times out and issues a reset or a non-maskable interrupt (NMI), depending on
the value of the SWRI bit in the SYPCR.
The SWT can be disabled by clearing the SWE bit in the SYPCR. Once the SYPCR is
written by software, the state of the SWE bit cannot be changed.
The SWT service sequence consists of the following two steps:
1. Write 0x556C to the Software Service Register (SWSR)
2. Write 0xAA39 to the SWSR
The service sequence clears the watchdog timer and the timing process begins again.
If any value other than 0x556C or 0xAA39 is written to the SWSR, the entire sequence
must start over.
Clock
16-bit
PITC
pitrtclk
PS (PISCR)
PIE (PISCR)
PIT
PTE
Disable
Clock
Modulus
Counter
Interrupt
PITF (PISCR)
(PISCR)
(PISCR)
PIT
period
PITC
1
+
F
pitrtclk
------------------------
PITC
1
+
ExternalClock
4 o
r
256
-----------------------------
-----------------------------------------------
=
=
PITperiod
PITC
1
+
15625
------------------------
=
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..