C505_9708 SIEMENS [Siemens Semiconductor Group], C505_9708 Datasheet - Page 193

no-image

C505_9708

Manufacturer Part Number
C505_9708
Description
8-Bit CMOS Microcontroller
Manufacturer
SIEMENS [Siemens Semiconductor Group]
Datasheet
8.1.4 Refreshing the Watchdog Timer
At the same time the watchdog timer is started, the 7-bit register WDTH is preset by the contents of
WDTREL.0 to WDTREL.6. Once started the watchdog cannot be stopped by software but can only
be refreshed to the reload value by first setting bit WDT (IEN0.6) and by the next instruction setting
SWDT (IEN1.6). Bit WDT will automatically be cleared during the second machine cycle after
having been set. For this reason, setting SWDT bit has to be a one cycle instruction (e.g. SETB
SWDT). This double-instruction refresh of the watchdog timer is implemented to minimize the
chance of an unintentional reset of the watchdog.
The reload register WDTREL can be written to at any time, as already mentioned. Therefore, a
periodical refresh of WDTREL can be added to the above mentioned starting procedure of the
watchdog timer. Thus a wrong reload value caused by a possible distortion during the write
operation to the WDTREL can be corrected by software.
8.1.5 Watchdog Reset and Watchdog Status Flag
lf the software fails to refresh the watchdog in time, an internally generated watchdog reset is
entered at the counter state 7FFC H . The duration of the reset signal then depends on the prescaler
selection (either 8 cycles or 128 cycles). This internal reset differs from an external one only in so
far as the watchdog timer is not disabled and bit WDTS (watchdog timer status, bit 6 in SFR IP0) is
set. Figure 8-2 shows a block diagram of all reset requests in the C505 and the function of the
watchdog status flags. The WDTS flag is a flip-flop, which is set by a watchdog timer reset and
cleared by an external HW reset. Bit WDTS allows the software to eamine from which source the
reset was activated. The watchdog timer status flag can also be cleared by software.
Figure 8-2
Watchdog Timer Status Flags and Reset Requests
Semiconductor Group
RESET
OWD Reset Request
OWDS WDTS
Set
WDT Reset Request
Set
Internal Bus
Clear
External HW Reset Request
8-5
IP0 (A9 )
H
>1
Fail Save Mechanisms
Synchro-
nization
C505 / C505C
Internal Reset
MCT03307
1997-08-01

Related parts for C505_9708