How can l read system clock in MPC5644A and MPC5745R?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How can l read system clock in MPC5644A and MPC5745R?

ソリューションへジャンプ
717件の閲覧回数
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 解決策
655件の閲覧回数
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 返答(返信)
656件の閲覧回数
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 件の賞賛
返信
707件の閲覧回数
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 件の賞賛
返信
691件の閲覧回数
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 件の賞賛
返信