Wco Configuration; Overview - Infineon XMC7000 Manual

Hide thumbs Also See for XMC7000:
Table of Contents

Advertisement

Clock configuration setup in XMC7000 MCU family
Configuring the clock resources
3.2

WCO configuration

3.2.1

Overview

The WCO is disabled by default. Accordingly, WCO cannot be used unless it is enabled.
configure the registers for enabling the WCO.
To disable the WCO, write '0' to the WCO_EN bit of the BACKUP_CTL register.
(1)
Yes
(2)
(3)
(4)
Figure 14
Enabling the WCO
You can enable the WCO in the System tab of the Device Configurator. ModusToolbox™ software automatically
generates the corresponding code.
Figure 15
WCO Configuration
Application note
Start
Define Variables TIMEOUT
Configure TIMEOUT Value
Write "1" to the WCO_EN bit
Check the state
of WCO_OK and the state of
TIMEOUT ?
No
Subtract TIMEOUT value
Yes
TIMEOUT= 0?
No
End(Success)
End(Timeout)
Define variable to count timeout
Configure the initial value of TIMEOUT
Write "1" to the WCO_EN bit. And make WCO available.
Check whether the processing exited the loop at TIMEOUT
16
Figure 14
shows how to
002-34253 Rev. *C
2023-11-08

Advertisement

Table of Contents
loading

Table of Contents