Download XC27x5X Derivatives

Transcript
XC27x5X Derivatives
System Units (Vol. 1 of 2)
Architectural Overview
Watchdog Timer
The Watchdog Timer represents one of the fail-safe mechanisms which have been
implemented to prevent the controller from malfunctioning for longer periods of time.
The Watchdog Timer is always enabled after a reset of the chip, and can be disabled
and enabled at any time by executing instructions DISWDT and ENWDT. Thus, the
chip’s start-up procedure is always monitored. The software has to be designed to restart
the Watchdog Timer before it overflows. If, due to hardware or software related failures,
the software fails to do so, the Watchdog Timer overflows and generates a reset request.
The Watchdog Timer is a 16-bit timer, clocked with the system clock divided by 16,384
or 256. The high byte of the Watchdog Timer register can be set to a prespecified reload
value (stored in WDTREL) to allow further variation of the monitored time interval. Each
time it is serviced by the application software, the high byte of the Watchdog Timer is
reloaded and the low byte is cleared.
Thus, time intervals between 3.2 µs and 13.4 s can be monitored (@ 80 MHz).
The default Watchdog Timer interval after reset is 6.5 ms (@ 10 MHz).
Memory Checker Unit
The memory checker module (MCHK) of the XC27x5X supports checking the data
consistency of memories, registers (e.g. configuration registers), or communication
channels. It calculates a checksum on a block of data, often called cyclic redundancy
code (CRC). It is implemented as a parallel signature generation based on a multi input
linear feedback shift register (MISR). Being based on a linear feedback shift register
(LFSR), it also can generate pseudo-random numbers and cyclic codes.
From the programmer's point of view, the MCHK is a set of registers associated with this
peripheral. To communicate respective error or operation events a port pin may be used
for the signal “MATCH” to generate an external event and an interrupt line may be used
for the signal “MISMATCH” to generate an internal event.
User’s Manual
ArchitectureX27, V1.1
2-30
V1.2, 2008-09