Using the Watchdog Timer in XMC7000 family MCUs
Multi-counter WDT
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
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
−
Application Note
MCWDT Setting
Configure MCWDT Parameters
Clear Fault Status
Enable Fault MCWDT
Enable Fault Interrupt
Setup Interrupt
Configure Interrupt Priority
Enable Interrupt
De-initialize MCWDT
Initialize MCWDT
Unlock MCWDT Registers
Enable MCWDT Interrupt
Enable MCWDT Counter
Lock MCWDT Registers
End
Configure Fault
System Interrupt Control
Configure Interrupt
Configure NVIC Priority Register
Enable NVIC Interrupt Controller
Return register value to their default state
Configure register value to user setting
18 of 33
002-33887 Rev. *A
2022-05-25