XMC4100 Backup Internal Clock Prescalar and Normal mode Configuration problem

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

cross mob
Not applicable
Hi,
I am working on XMC4100, i am trying to Configue the PLL with Internal Clock i.e., Fofi with Automatic Caliberation, as per datasheet the internal clock if automatic caliberation is taken then 24Mhz will be the clock,

in NORMAL mode

Fpll = ((N / (p * k2 )) * Fosc); //Where Fosc is 24Mhz Generated by Internal Clock with Automatic Calibration

i am applying following values

for 80MHZ
N = 80, k2 = 8, P = 3 -------------------> Configured Successfully


for 72MHZ
N = 72, k2 = 8, P = 3 -------------------> Configured Successfully


for 64MHZ
N = 80, k2 = 10, P = 3 -------------------> Configured Successfully


for 48MHZ
N = 72, k2 = 12, P = 3 -------------------> Configured Successfully


for 24MHZ
N = 72, k2 = 24, P = 3 -------------------> Configured Successfully


for 16MHZ
N = 80, k2 = 40, P = 3 -------------------> Configured Successfully


for 12MHZ
N = 80, k2 = 40, P = 4 -------------------> Configured Successfully


for 8MHZ
N = 80, k2 = 80, P = 3 -------------------> Configured Successfully


for 4MHZ
N = 80, k2 = 80, P = 6 -------------------> NOT Configured Successfully


for 80MHZ
N = 80, k2 = 80, P = 12 -------------------> NOT Configured Successfully

in PRESCALAR mode

Fpll = Fosc / K1 // Where Fosc is 24Mhz Generated by Internal Clock with Automatic Calibration

for 24MHZ
K1 = 1 -------------------> Configured Successfully

for 12MHZ
K1 = 2 -------------------> Configured Successfully

for 8MHZ
K1 = 3 -------------------> Configured Successfully

for 4MHZ
K1 = 6 -------------------> Not Configured Successfully

for 3MHZ
K1 = 8 -------------------> Not Configured Successfully

for 2MHZ
K1 = 12 -------------------> Not Configured Successfully

for 1MHZ
K1 = 24 -------------------> Not Configured Successfully

After 8Mhz in both Prescalar and Normal mode The Clocks are not Configuring ???
0 Likes
2 Replies
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
harshan wrote:
Hi,
I am working on XMC4100, i am trying to Configue the PLL with Internal Clock i.e., Fofi with Automatic Caliberation, as per datasheet the internal clock if automatic caliberation is taken then 24Mhz will be the clock,

in NORMAL mode

Fpll = ((N / (p * k2 )) * Fosc); //Where Fosc is 24Mhz Generated by Internal Clock with Automatic Calibration

i am applying following values

for 80MHZ
N = 80, k2 = 8, P = 3 -------------------> Configured Successfully


for 72MHZ
N = 72, k2 = 8, P = 3 -------------------> Configured Successfully


for 64MHZ
N = 80, k2 = 10, P = 3 -------------------> Configured Successfully


for 48MHZ
N = 72, k2 = 12, P = 3 -------------------> Configured Successfully


for 24MHZ
N = 72, k2 = 24, P = 3 -------------------> Configured Successfully


for 16MHZ
N = 80, k2 = 40, P = 3 -------------------> Configured Successfully


for 12MHZ
N = 80, k2 = 40, P = 4 -------------------> Configured Successfully


for 8MHZ
N = 80, k2 = 80, P = 3 -------------------> Configured Successfully


for 4MHZ
N = 80, k2 = 80, P = 6 -------------------> NOT Configured Successfully


for 80MHZ
N = 80, k2 = 80, P = 12 -------------------> NOT Configured Successfully

in PRESCALAR mode

Fpll = Fosc / K1 // Where Fosc is 24Mhz Generated by Internal Clock with Automatic Calibration

for 24MHZ
K1 = 1 -------------------> Configured Successfully

for 12MHZ
K1 = 2 -------------------> Configured Successfully

for 8MHZ
K1 = 3 -------------------> Configured Successfully

for 4MHZ
K1 = 6 -------------------> Not Configured Successfully

for 3MHZ
K1 = 8 -------------------> Not Configured Successfully

for 2MHZ
K1 = 12 -------------------> Not Configured Successfully

for 1MHZ
K1 = 24 -------------------> Not Configured Successfully

After 8Mhz in both Prescalar and Normal mode The Clocks are not Configuring ???


I do not understand your intention. Which operating frequency are you going to use?
0 Likes
Not applicable
Thanks for Reply,
i want to use Back up Internal Clock i.e, as per the datasheet 36.5Mhz if un caliberated, i am making Setting Caliberation to Automatic and i am Getting 24Mhz now i am trying to generate different frequencies by taking 24Mhz as Source Clock. While i am Trying to Configure P,K2,N,K Values for 6Mhz,4Mhz,2Mhz,1Mhz, as mentioned above i was failed to Configure. i.e. i am not getting these Frequencies, hope my doubt is Clear.

Thanks and Regards,
0 Likes