SN32F280 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 148
Version 1.1
11.3 WDT REGISTERS
Base Address: 0x4001 0000
11.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 WDTINT 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
WDTINT 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
11.3.2 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.
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:8
Reserved
R
0
7:0
TC[7:0]
Watchdog timer constant reload value = TC[7:0]+1
0000 0000 : Timer constant = 1
0000 0001 : Timer constant = 2
……….
……….
1111 1110 : Timer constant = 255
1111 1111 : Timer constant = 256
R/W
0xFF
Содержание SN32F280 Series
Страница 222: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 222 Version 1 1 A1D16...
Страница 263: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 263 Version 1 1 26 2 LQFP 64 PIN...
Страница 264: ...SN32F280 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 264 Version 1 1 26 3 LQFP 48 PIN...