Application Note
18 of 33
002-33887 Rev. *A
2022-05-25
Using the Watchdog Timer in XMC7000 family MCUs
Multi-counter WDT
De-initialize MCWDT
Return register value to their default state
Initialize MCWDT
Configure register value to user setting
Unlock MCWDT Registers
End
Lock MCWDT Registers
Enable MCWDT Interrupt
Enable MCWDT Counter
Configure Interrupt Priority
Enable Interrupt
System Interrupt Control
Enable NVIC Interrupt Controller
Setup Interrupt
Configure NVIC Priority Register
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
Configure MCWDT Parameters
Clear Fault Status
(1)
(2)
MCWDT Setting
Enable Fault MCWDT
Enable Fault Interrupt
(3)
(4)
Configure Interrupt
Configure Fault
Figure 10
Multi-counter WDT setting procedure
3.7.1
Use case
This section explains an example of the MCWDT using the following use case. The MCWDT is cleared in the main
task loop. The fault interrupt is triggered if the MCWDT is not cleared within the UPPER_LIMIT.
Use case:
•
MCWDT number:
0
•
CPU: CM7_0
•
Subcounter 0
−
LOWER_LIMIT: 0
−
UPPER_LIMIT: 0xFFFF
−
WARN_LIMIT: 1 second (32000, when clk_lf = 32 KHz)
−
LOWER Action: None
−
UPPER Action: None
−
WARN Action: Interrupt
−
Auto service: Enable