st7fmc2s7t6 STMicroelectronics, st7fmc2s7t6 Datasheet - Page 59

no-image

st7fmc2s7t6

Manufacturer Part Number
st7fmc2s7t6
Description
8-bit Mcu With Nested Interrupts, Flash, 10-bit Adc, Brushless Motor Control, Five Timers, Spi, Linsci
Manufacturer
STMicroelectronics
Datasheet
10 ON-CHIP PERIPHERALS
10.1 WINDOW WATCHDOG (WWDG)
10.1.1 Introduction
The Window Watchdog is used to detect the oc-
currence of a software fault, usually generated by
external interference or by unforeseen logical con-
ditions, which causes the application program to
abandon its normal sequence. The Watchdog cir-
cuit generates an MCU reset on expiry of a pro-
grammed time period, unless the program refresh-
es the contents of the downcounter before the T6
bit becomes cleared. An MCU reset is also gener-
ated 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 win-
dow.
10.1.2 Main Features
I
I
Figure 34. Watchdog Block Diagram
– Reset (if watchdog activated) when the down-
– Reset (if watchdog activated) if the down-
Programmable free-running downcounter
Conditional reset
counter value becomes less than 40h
RESET
f
OSC2
MCC/RTC
11
MSB
Write WDGCR
RTC COUNTER
12-BIT MCC
T6:0 > W6:0 CMP
comparator
DIV 64
= 1 when
6
5
LSB
WDGA
-
0
TB[1:0] bits
(MCCSR
Register)
W6
T6
W5
WATCHDOG WINDOW REGISTER (WDGWR)
T5
WATCHDOG CONTROL REGISTER (WDGCR)
I
I
10.1.3 Functional Description
The counter value stored in the WDGCR register
(bits T[6:0]), is decremented every 16384 f
cycles (approx.), and the length of the timeout pe-
riod can be programmed by the user in 64 incre-
ments.
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 ini-
tiates a reset cycle pulling low the reset pin for typ-
ically 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.
6-BIT DOWNCOUNTER (CNT)
Hardware/Software
(selectable by option byte)
Optional
(configurable by option byte)
counter is reloaded outside the window (see
Figure
W4
T4
WDG PRESCALER
DIV 4
37)
W3
T3
reset
W2
T2
on
W1
T1
Watchdog
ST7MC1/ST7MC2
HALT
W0
T0
instruction
activation
59/308
OSC2
1

Related parts for st7fmc2s7t6