how to select input clock source for pll in xmc4100??

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
Greetings,
sir/madam i am working on xmc4100. i read Clock Control Unit in xmc4100 reference manual. the USBPLL takes the source as fohp directly so no need to select, coming to main pll i have to select either backup clock source 80mhz or external clock source (i connected 12MHZ). my question is how can i switch the pll input clock to backup clock or external clock i.e., what register will do this??

Thanks and Regards,
harshan
0 Likes
1 Reply
Not applicable
Hi Harshan,

The selection for the clock source is done in the SYSCLKCR SFR. However, there are steps that is required to be made when switching the clock source. Please refer to reference manual, Chapter 11.9.4 Clock System Setup for the steps to ensure the correct switching of the clock source.

Alternative, you can install DAVE v4.1.2 IDE and use the APP: CLOCK_XMC4 or the XMCLib, our low level driver, to set up the clock.
More information of DAVE can be found: www.infineon.com/dave

Regards,
Daryl
0 Likes