EasyManua.ls Logo

Infineon TRAVEO T2G family CYT4D Series - 3.2 Setting WCO; 3.2.1 Operation overview; 3.2.2 Configuration

Infineon TRAVEO T2G family CYT4D Series
80 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
Parameters
Description
Value
WAIT_FOR_STABILIZATION
Waiting for stabilization
10000ul
PLL_400M_0_PATH_NO
PLL number for PLL_400M_0
1ul
PLL_400M_1_PATH_NO
PLL number for PLL_400M_1
2ul
PLL_200M_0_PATH_NO
PLL number for PLL_200M_0
3ul
PLL_200M_1_PATH_NO
PLL number for PLL_200M_1
4ul
Table 4 List of WCO settings functions
Functions
Description
Value
Cy_WDT_Disable()
Disable the watchdog timer