Table of contents
About this document....................................................................................................................... 1
Table of contents............................................................................................................................ 2
1Introduction .......................................................................................................................... 4
2Clock system for XMC7000 family MCUs .................................................................................... 5
2.1 Overview..................................................................................................................................................5
2.2 Clock resources .......................................................................................................................................5
2.3 Clock system functions ...........................................................................................................................6
2.4 Basic clock system settings...................................................................................................................12
3Configuring the clock resources..............................................................................................13
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
4FLL 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
5Internal clock configuration ...................................................................................................24
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 Configuring CLK_FAST_0/CLK_FAST_1 ................................................................................................28
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 Configuring the ECO Prescaler ............................................................................................................33
5.10.1 Overview...........................................................................................................................................33
6Supplementary information...................................................................................................34
6.1 Input clocks in peripheral functions.....................................................................................................34
6.2 Clock calibration counter function.......................................................................................................34
6.2.1 Overview...........................................................................................................................................34