Application Note
12 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
Configuration of the clock resources
3.1
Setting the ECO
The ECO is disabled by default and needs to be enabled for usage. Also, trimming is necessary to use the ECO.
This device can configured with the trimming parameters that control the oscillator according to crystal unit
and ceramic resonator. The method to determine the parameters differs between the crystal unit and ceramic
resonator. See the
user guide for more information.
shows the ECO setting steps.
Start
Write "1" to ECO_EN
Check the state of
ECO_OK and the state of
TIMEOUT?
Yes
End(Success)
No
Define variable to count timeout
Configure the initial value of TIMEOUT
ECO_OK is already 1?
End(No change)
Define TIMEOUT variable
Configure TIMEOUT value
Write "1" to ECO_EN and to be available ECO
TIMEOUT= 0?
Subtract TIMEOUT value
End(Timeout)
Yes
No
No
Yes
Check whether the processing exited the loop at TIMEOUT
Configure trim
Set ECO trimming data and AGC disabled
1. Calculate trim data
2. Trim settings by ECO user guide
(1)*
(2)
(3)
(4)
(5)
(6)
* Use to select the trimming data calculated by the software or the data calculated according to the ECO user guide.
Figure 9
Enabling the ECO