ST52F513G3M6 STMicroelectronics, ST52F513G3M6 Datasheet - Page 71

ST52F513G3M6

Manufacturer Part Number
ST52F513G3M6
Description
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST52F513G3M6

Cpu Family
ST52
Device Core Size
8b
Frequency (max)
20MHz
Interface Type
I2C/SCI/SPI
Program Memory Type
Flash
Program Memory Size
8KB
Total Internal Ram Size
256Byte
# I/os (max)
22
Number Of Timers - General Purpose
2
Operating Supply Voltage (typ)
3.3/5V
Operating Supply Voltage (max)
5.5V
Operating Supply Voltage (min)
2.7V
On-chip Adc
8-chx10-bit
Instruction Set Architecture
CISC
Operating Temp Range
-40C to 85C
Operating Temperature Classification
Industrial
Mounting
Surface Mount
Pin Count
28
Package Type
SO
Lead Free Status / Rohs Status
Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ST52F513G3M6
Manufacturer:
ST
0
Part Number:
ST52F513G3M6
Manufacturer:
ST
Quantity:
20 000
Part Number:
ST52F513G3M6TR
Manufacturer:
ST
Quantity:
20 000
11 WATCHDOG TIMER
11.1 Functional 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 causes the application program
to abandon its normal sequence. The WDT circuit
generates an ICU reset on expiry of a programmed
time period, unless the program refreshes the
WDT before the end of the programmed time
delay. Sixteen 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 active, it starts
a reset cycle pulling the reset signal low.
Once the WDT is activated, the application
program has to refresh the counter (by the
WDTRFR instruction) during normal operation in
order to prevent an ICU reset.
In ST52F510/F513 devices it is possible to choose
between “Hardware” or “Software” Watchdog. The
Hardware WDT allows the counting to avoid
unwanted stops for external interferences. The first
mode is always enabled unless the Option Byte 4
(WDT_EN) is written with a special code
(10101010b): only this code can switch the WDT in
“Software” Mode, the other 255 possibilities keep
the “Hardware” Mode enabled.
The WDT is started and refreshed by using the
WDTRFR instruction. When the software mode is
enabled, the WDTSLP instruction stops the WDT
avoiding timeout resets.
When the WDT is in Hardware Mode, neither the
WDTSLP instruction nor external interference can
stop the counting. The “Hardware” WDT is always
enabled after a Reset.
Figure 11.1 Watchdog Block Diagram
PRES CLK = CLK MASTER
W DTRFR
RESET
W DTSLP
Configuration
PRESCALER
D3
Register
D2
D1
The working frequency of WDT (PRES CLK in the
Figure
master is divided by 500, obtaining the WDT CLK
signal that is used to fix the timeout of the WDT.
According to the WDT_CR Configuration Register
values, a WDT delay between 0.1ms and 937.5ms
can be defined 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. The first 4 bits of the
WDT_CR register are used, obtaining 16 different
delays.
Table 11.1 Watchdog Timing Range (5 MHz)
11.2 Register Description
SW Watchdog Enable (WDT_EN)
Option Byte 4 (04h)
Bit 7-0: WDTEN7-0 SW Watchdog Enable byte
WDTEN7 WDTEN6 WDTEN5 WDTEN4 WDTEN3 WDTEN2 WDTEN1 WDTEN0
max
min
D0
7
11.1) is equal to the clock master. The clock
Writing the code 10101010 in this byte the
Software Watchdog mode is enabled.
W TD CLK
WDT timeout period (ms)
GENERATOR
RESET
ST52510xx ST52513xx
WDT
937.5
0.1
RESET
71/136
0

Related parts for ST52F513G3M6