st52t430 STMicroelectronics, st52t430 Datasheet - Page 48

no-image

st52t430

Manufacturer Part Number
st52t430
Description
8-bit Intelligent Controller Unit Icu Three Timer/pwms, Adc, Sci
Manufacturer
STMicroelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
st52t4301C3M6
Manufacturer:
ST
0
Part Number:
st52t430K3M6
Manufacturer:
ST
0
Part Number:
st52t430K3M6
Manufacturer:
ST
Quantity:
20 000
Company:
Part Number:
st52t430K3M6
Quantity:
1 316
48/88
9 WATCHDOG TIMER
9.1 Operational Description
The Watchdog Timer (WDT) is used to detect the
occurrence of a software fault, usually generated
by external interference or by unforeseen logical
conditions, which cause the application program to
abandon its normal sequence. The WDT circuit
generates an MCU reset on expiry of a
programmed time period, unless the program
refreshes the WDT before the end of the
programmed time delay.
16 different delays can be selected by using the
WDT configuration register.
After the end of the delay programmed by the
configuration register if the WDT is activated (by
using the assembler instruction WDTSFR), it starts
a reset cycle pulling the reset pin low.
Once the WDT has been activated the application
program has to refresh this peripheral (by the
WDTSFR instruction) at regular intervals during
normal operation in order to prevent an MCU reset.
In order to stop the WDT during user program
execution the instruction WDTSLP has to be used.
Figure 9.1 Watchdog Block Diagram
PRES CLK = CLK MASTER
WDTRFR
RESET
WDTSLP
REG_CONF 2
PRESCALER
D3
D2
D1
The working frequency of the WDT (PRES CLK in
the Figure 9.1) is equal to the clock master. The
clock master is divided by 500, obtaining the WDT
CLK signal, which is used to fix the timeout of the
WDT.
Table 9.1 Watchdog Timing range (CLK=5
According to the WDT configuration register
values, a WDT delay may be defined between 0.1
ms and 937.5 mS when the clock master is 5 MHz.
By changing the clock master frequency the
timeout delay can be calculated according to the
configuration register values REG_CONF 2, as
described in the following section.
Warning: changing the REG_CONF2 value when
the WDT is active, a WDT reset is generated and
the CPU is restarted. To avoid this side effect, use
the WDTSLP instruction before changing the
REG_CONF2.
D0
max
min
WTD CLK
MHz)
GENERATOR
RESET
WDT timeout period (ms)
WDT
937.5
0.1
RESET

Related parts for st52t430