How can l read system clock in MPC5644A and MPC5745R?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can l read system clock in MPC5644A and MPC5745R?

Jump to solution
657 Views
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 Kudos
1 Solution
595 Views
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

 

View solution in original post

0 Kudos
3 Replies
596 Views
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 Kudos
647 Views
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 Kudos
631 Views
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 Kudos