Application Note 20 of 80 002-26071 Rev. *B
2021-09-07
Clock configuration setup in TRAVEO™ T2G family CYT4D series MCUs
Configuration of the clock resources
3.2 Setting WCO
3.2.1 Operation overview
The WCO is disabled by default. Accordingly, the WCO cannot be used unless it is enabled. Figure 10 shows how
to configure registers for enabling the WCO.
To disable the WCO, write ‘0’ to the WCO_EN bit of the BACKUP_CTL register.
Start
Write "1" to the WCO_EN bit
Check the state
of WCO_OK and the state of TIMEOUT ?
Yes
End(Success)
No
Define variable to count timeout
Configure the initial value of TIMEOUT
Define variables TIMEOUT
Configure TIMEOUT value
Write "1" to the WCO_EN bit, and make WCO available
TIMEOUT= 0?
Subtract TIMEOUT value
End(Timeout)
Yes
No
Check whether the processing exited the loop at TIMEOUT
(1)
(2)
(3)
(4)
Figure 10 Enabling WCO
3.2.2 Configuration
Table 3 lists the parameters and Table 4 lists the functions of the configuration part of in the SDL for WCO
settings.
Table 3 List of WCO settings parameters
Waiting for stabilization
PLL number for PLL_400M_0
PLL number for PLL_400M_1
PLL number for PLL_200M_0
PLL number for PLL_200M_1
Table 4 List of WCO settings functions
Disable the watchdog timer