st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 86

no-image

st7pmc2s6

Manufacturer Part Number
st7pmc2s6
Description
8-bit Mcu For Automotive With Nested Interrupts, Flash, 10-bit Adc, Brushless Motor Control, 5 Timers, Spi, Linsci?
Manufacturer
STMicroelectronics
Datasheet
On-chip peripherals
10
10.1
10.1.1
10.1.2
10.1.3
86/371
On-chip peripherals
Window watchdog (WWDG)
Introduction
The window watchdog is used to detect the occurrence of a software fault, usually
generated by external interference or by unforeseen logical conditions, which causes the
application program to abandon its normal sequence. The watchdog circuit generates an
MCU reset on expiry of a programmed time period, unless the program refreshes the
contents of the downcounter before the T6 bit becomes cleared. An MCU reset is also
generated if the 7-bit downcounter value (in the control register) is refreshed before the
downcounter has reached the window register value. This implies that the counter must be
refreshed in a limited window.
Main features
Functional description
The counter value stored in the WDGCR register (bits T[6:0]), is decremented every 16384
f
in 64 increments.
If the watchdog is activated (the WDGA bit is set) and when the 7-bit downcounter (T[6:0]
bits) rolls over from 40h to 3Fh (T6 becomes cleared), it initiates a reset cycle pulling low the
reset pin for typically 30µs. If the software reloads the counter while the counter is greater
than the value stored in the window register, then a reset is generated.
OSC2
Programmable free-running downcounter
Conditional reset
Hardware/software watchdog activation (selectable by option byte)
Optional reset on HALT instruction (configurable by option byte).
cycles (approx.), and the length of the timeout period can be programmed by the user
reset (if watchdog activated) when the downcounter value becomes less than 40h
reset (if watchdog activated) if the downcounter is reloaded outside the window
(see
Figure
ST7MC1K2-Auto, ST7MC1K6-Auto, ST7MC2S4-Auto, ST7MC2S6-Auto
33)

Related parts for st7pmc2s6