Question about VCOFRQ setting in S12ZVL

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Question about VCOFRQ setting in S12ZVL

1,961 次查看
junxi_cai
Contributor II

Hello all,

I am currently at the configuration of the fvco of the S12ZVL128. However, I find some difference in the datasheet for VCOFRQ setting. Just want to confirm which is correct. 

In page. 235, chapter '9.3.2.4 S12CPMU_UHV Synthesizer Register (CPMUSYNR)', I found the following information:

pastedImage_3.png

However, in page. 285, for the ‘9.7.3 Application Information for PLL and Oscillator Startup’, it says that range is between 48MHz to 80MHz for VCOFRQ[1:0] = 01:

pastedImage_4.png

I have also seen the same information in my register window when I was debugging:

pastedImage_12.png

Could anyone confirm which is the correct range for the setting?

Thank you,

Junxi

0 项奖励
回复
6 回复数

1,871 次查看
lama
NXP TechSupport
NXP TechSupport

Hi,

in order to be sure you can also use: https://community.nxp.com/docs/DOC-341785 

Best regards,

Ladislav

0 项奖励
回复

1,871 次查看
junxi_cai
Contributor II

Hello Lama,

Thank you for sharing the tools. I got one question here for setting it up.

For the Oscillator freq, I am using the internal clock fIRC1M which is 1MHz (OSCE=0), I find I cannot find the correct value here to run the calculation.

pastedImage_3.png

Could you please let me know if you have any suggestion?

Thank you,

Junxi

0 项奖励
回复

1,871 次查看
lama
NXP TechSupport
NXP TechSupport

pastedImage_1.png

So write 1 to the cell.

Best regards,

Ladislav

0 项奖励
回复

1,871 次查看
junxi_cai
Contributor II

Hello Lama,

Thank you for the suggestion, I tried it works. I think the maximum I could go is 64MHz for fvco with SYNR 0x5F. 

pastedImage_1.png

However, what I have seen in my setting is SYNR 0x66, which makes the fvco 78MHz.

pastedImage_2.png

If I am using this setting for the fvco, is that means the actual fvco is still 64MHz instead of 78MHz? Or something else?

Is there any easy way to measure the actual fvco or fbus? I think to toggle the I/O pin, which usually take 2 clocks for that to calculate the frequency. Could you please let me know if you have better suggestion?

Thank you,

Junxi

0 项奖励
回复

1,871 次查看
lama
NXP TechSupport
NXP TechSupport

Hi,

The busclk can be measured at ECLK pin (PS3) you clear bit NECLK in ECLKCTL register.

 

Back to original issue:....

80Mhz mentioned in 9.7.3 Application Information for PLL and Oscillator Startup looks to be a copy/paste typo from a datasheet with the same peripheral but higher frequency possibilities.

You wrote you have CPMUSYNR = 0x66. It is not correct value. The data sheet says to use max fvco=64MHz. If the setup is made by any tool then it must be a bug if it uses fvco= 78MHz for this type of MCU. However, it is possible that this setup will provide you "correct" busclk (I mean the MCU will work) but you will use the MCU out of operating specifications (>32 MHz). I suggest you to change it to defined range.

 

Your original values:

fref = 1

fvco= 2 * fref * (syndiv+1)   ; 0x66=0B01100110 => SYNDIV=0B100110=38

fvco= 78MHz => out of el. specification range

Busclk = fpll/2 = (fvco / (POSTDIV +1)) / 2 = 39MHz  => out of el. specification range

Required values for fbus=32MHz:

SYNR = 0x5F

REFDIV =0

POSTDIV=0

 

Best regards,

Ladislav

0 项奖励
回复

1,871 次查看
kef2
Senior Contributor V

Hi,

Max bus clock is 32MHz and you shouldn't violate it. While clocking from PLL, VCO clock is 2x bus clock. Clearly PLL should be able to work reliably way above the 32*2=64MHz margin. Perhaps 80MHz is the real limit for PLL, but CPU and peripherals still are limited to 32MHz and thus 32*2=64MHz VCO.

Edward

0 项奖励
回复