SN32F760 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 127
Version 2.0
10.3 WDT REGISTERS
Base Address: 0x4001 0000
10.3.1 Watchdog Configuration register (WDT_CFG)
Address Offset: 0x00
The WDT_CFG register controls the operation of the Watchdog through the combination of WDTEN and WDTIE bits.
This register indicates the raw status for Watchdog Timer interrupts. A WDT interrupt is sent to the interrupt controller if
both the WDINT bit and the WDTIE bit are set.
Bit
Name
Description
Attribute
Reset
31:16
WDKEY
Watchdog register key.
Read as 0. When writing to the register you must write 0x5AFA to
WDKEY, otherwise behavior of writing to the register is ignored.
W
0
15:3
Reserved
R
0
2
WDTINT
Watchdog interrupt flag
0: Read
Watchdog does not cause an interrupt.
Writ
Clear this flag. SW shall feed Watchdog before clearing.
1: Watchdog timeout and causes an interrupt (Only when WDTIE =1).
R/W
0
1
WDTIE
Watchdog interrupt enable
0: Watchdog timeout will cause a chip reset. (Watchdog reset mode)
Watchdog counter underflow will reset the MCU, and will clear the
WDINT flag.
1: Watchdog timeout will cause an interrupt. (Watchdog interrupt mode)
R/W
0
0
WDTEN
Watchdog enable
0: Disable
1: Enable. When enable the watchdog, the WDT_TC value is loaded in the
watchdog counter.
R/W
0
10.3.2 Watchdog Clock Source register (WDT_CLKSOURCE)
Address Offset: 0x04
Bit
Name
Description
Attribute
Reset
31:16
WDKEY
Watchdog register key.
Read as 0. When writing to the register you must write 0x5AFA to
WDKEY, otherwise behavior of writing to the register is ignored.
W
0
15:2
Reserved
R
0
1:0
CLKSEL[1:0]
Selected Watchdog clock source.
00: IHRC oscillator
01: HCLK
10: ILRC oscillator
11: ELS X’TAL
R/W
0
10.3.3 Watchdog Timer Constant register (WDT_TC)
Address Offset: 0x08
The WDT_TC register determines the time-out value. Every time a feed sequence occurs the WDT_TC content is
reloaded in to the Watchdog timer. It’s an 8-bit counter. Thus the time-out interval is T
WDT_PCLK
× 128 x 1 ~ T
WDT_PCLK
×
128 x 256.
Watchdog overflow time = (0.02us x 1) x 128 x 1 ~ (0.0625ms x 32) x 128 x 256
= 2.56us ~ 65536ms
Bit
Name
Description
Attribute
Reset
Содержание SN32F755
Страница 218: ...SN32F760 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 218 Version 2 0 22 2 LQFP 64 PIN...
Страница 220: ...SN32F760 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 220 Version 2 0 22 4 QFN 46 PIN...
Страница 221: ...SN32F760 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 221 Version 2 0 22 5 QFN 33 PIN 5x5...