English
Language : 

C868 Datasheet, PDF (63/82 Pages) Infineon Technologies AG – 8-Bit Single-Chip Microcontroller
C868
Fail Save Mechanisms
The C868 offers enhanced fail save mechanisms, which allow an automatic recovery
from software upset or hardware failure :
a programmable watchdog timer (WDT), with variable time-out period from 12.8µs to
819.2µs at fSYS = 40 MHz.
Programmable Watchdog Timer
To protect the system against software failure, the user’s program has to clear this
watchdog within a previously programmed time period. lf the software fails to do this
periodical refresh of the watchdog timer, an internal reset will be initiated. The software
can be designed so that the watchdog times out if the program does not work properly.
lt also times out if a software error is based on hardware-related problems.
The watchdog timer in the C868 is a 16-bit timer, which is incremented by a count rate
of fSYS/2 upto fSYS/128. The machine clock of the C868 is divided by a prescaler, a divide-
by-two or a divide-by-128 prescaler. The upper 8 bits of the Watchdog Timer can be
preset to a user-programmable value via a watchdog service access in order to vary the
watchdog expire time. The lower 8 bits are reset on each service access. Figure 29
shows the block diagram of the watchdog timer unit.
fSYS
DISWDT
WDT
Control
WDTREL
1:2
1:128
MUX
Clear
WDT Low Byte
WDTIN
WDT High Byte
WDTRST
Figure 29 Block Diagram of the Programmable Watchdog Timer
After a reset, the Watchdog Timer is automatically enabled. If it is disabled, it cannot be
enabled again during active mode of the device. If the software fails to clear the
watchdog timer an internal reset will be initiated. The reset cause (external reset or reset
caused by the watchdog) can be examined by software (status flag WDTR in SCUWDT
is set). A refresh of the watchdog timer is done by setting bits WDTRE and WDTRS (in
Data Sheet
63
V 1.0, 2003-05