How can l read system clock in MPC5644A and MPC5745R?

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

How can l read system clock in MPC5644A and MPC5745R?

跳至解决方案
704 次查看
jinshuaixu
Contributor V

Hello,

Now l meet a question,when l develop my product use MPC5644A chip,l can not find the way that to read system clock.The same question happen in MPC5745R chip.

Very thank you if you can reply me and tell me the way t0 resolve it.

 

 

0 项奖励
回复
1 解答
642 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Ok, you didn't share the package before so I answered generally.

I am not sure here if you want to read its settings (how the sys clk is configured) or if it is in configured range all the time.

For SPC5644A you can use :

petervlna_0-1678782335654.png

 

For SPC5745R:

In mode entry module you can read sys clk:

petervlna_2-1678782570166.png

Its configuration can be read out from Clock Generation Module (MC_CGM) registers. Based on the SYS_CLK source.

For more details refer to reference manual.

Best regards,

Peter

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
643 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Ok, you didn't share the package before so I answered generally.

I am not sure here if you want to read its settings (how the sys clk is configured) or if it is in configured range all the time.

For SPC5644A you can use :

petervlna_0-1678782335654.png

 

For SPC5745R:

In mode entry module you can read sys clk:

petervlna_2-1678782570166.png

Its configuration can be read out from Clock Generation Module (MC_CGM) registers. Based on the SYS_CLK source.

For more details refer to reference manual.

Best regards,

Peter

 

0 项奖励
回复
694 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Not sure what you mean, But you can

1. read it at CLKOUT pin

petervlna_0-1678265057090.png

 

Or via SW at

petervlna_1-1678265123087.png

For more details please refer to reference manual Chapter 17 Frequency-modulated phase locked loop (FMPLL)

Best regards,

Peter

0 项奖励
回复
678 次查看
jinshuaixu
Contributor V

Hello,petervlna:

Thank you for you response first,CLKOUT function in Mpc5644A 176PIN maybe is not exist.you can see the introduce from below picture.7bceac4c-7c26-43c1-b667-83949fbec603.jpeg

you remind me that can read system clock from SW register, could you give me some sample ?thank you.

Xu Jinshuai

3/10/2023

0 项奖励
回复