Clock configuration setup in XMC7000 MCU family
Table of contents
Table of contents
About this document ....................................................................................................................... 1
Table of contents ............................................................................................................................ 2
1
Introduction .......................................................................................................................... 4
2
2.1
Overview .................................................................................................................................................. 5
2.2
Clock resources ....................................................................................................................................... 5
2.3
Clock system functions ........................................................................................................................... 6
2.4
Basic clock system settings ................................................................................................................... 12
3
3.1
ECO configuration ................................................................................................................................. 13
3.1.1
Use case ............................................................................................................................................ 13
3.1.2
Code preview .................................................................................................................................... 15
3.2
WCO configuration ................................................................................................................................ 16
3.2.1
Overview ........................................................................................................................................... 16
3.3
Setting the IMO ...................................................................................................................................... 17
3.4
Setting ILO0/ILO1 .................................................................................................................................. 17
4
FLL and PLL configuration ...................................................................................................... 18
4.1
Setting the FLL ....................................................................................................................................... 18
4.1.1
Overview ........................................................................................................................................... 18
4.1.2
Use case ............................................................................................................................................ 18
4.1.3
Code preview .................................................................................................................................... 19
4.2
Setting the PLL ...................................................................................................................................... 20
4.2.1
Overview ........................................................................................................................................... 20
4.2.2
Use case ............................................................................................................................................ 20
4.2.3
Code preview .................................................................................................................................... 22
5
5.1
Configuring CLK_PATHx ........................................................................................................................ 24
5.1.1
Code preview .................................................................................................................................... 25
5.2
Configuring CLK_HFx ............................................................................................................................ 26
5.2.1
Code preview .................................................................................................................................... 27
5.3
Configuring CLK_LF ............................................................................................................................... 27
5.4
5.5
Configuring CLK_MEM ........................................................................................................................... 28
5.6
Configuring CLK_PERI ........................................................................................................................... 28
5.7
Configuring CLK_SLOW ......................................................................................................................... 28
5.8
Configuring CLK_GR .............................................................................................................................. 28
5.9
Configuring PCLK................................................................................................................................... 28
5.9.1
PCLK configuration example ........................................................................................................... 30
5.9.1.1
Use case ....................................................................................................................................... 30
5.9.1.2
Configuration .............................................................................................................................. 31
5.9.2
Code preview .................................................................................................................................... 32
5.10
5.10.1
Overview ........................................................................................................................................... 33
6
Supplementary information ................................................................................................... 34
6.1
6.2
6.2.1
Overview ........................................................................................................................................... 34
Application note
2
002-34253 Rev. *C
2023-11-08