MPC5744P sys_clk cann't config to 200Mhz

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

MPC5744P sys_clk cann't config to 200Mhz

Jump to solution
880 Views
xiaopi
Contributor II

like the appendix m5744xinit.c,i config the PLL1 to 200Mhz.And i config the MC_ME.RUN0_MC.R to choose sys_clk=PLL1=200Mhz.

 

And in main(void),i use SIUL_ToggleIO(SIUL_PD5) to observe the time of system running time.But i found that the time of SIUL_PD5 togglling is 120us.So i calculated the time of sys_clk,it seems to be 40Mhz not 200Mhz.

 

I really don't know why the program within the main function runs so slowly?

Original Attachment has been moved to: m5744xinit.c.zip

Labels (1)
Tags (1)
1 Solution
680 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

First, your core is running at 200MHz system clock supplied by PPL1.

I hope you realize that 1 instruction can take 4-5 clock cycles to execute.

I recommend you to measure CLKOUT if you want to check your PLL output.

pastedImage_1.png

Peter

View solution in original post

3 Replies
680 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

To make your Clock configuration easy and simple we have developed excel tool for clock configuration.

You just have to insert the required frequencies and it will generate code for you.

https://community.nxp.com/docs/DOC-328021 

Peter

0 Kudos
680 Views
xiaopi
Contributor II

Sorry,you may misunderstand what i say.

Do you see the The attachment I uploaded?I relly config the clock to 200Mhz as the excel tool for clock configuration.But the speed of  instructions running is not 200Mhz,it runs too slowly just like that the speed is 40Mhz.

And also there is another problem,when i debug this instructions->"MC_CGM.SC_DC0.R = 0x00030000;".the mpc5744 can't debug program any more.The reset signal is 0 all the time.There is  any advice to solve this problem?

mpc5744_question.png

Thank u Peter.

0 Kudos
681 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

First, your core is running at 200MHz system clock supplied by PPL1.

I hope you realize that 1 instruction can take 4-5 clock cycles to execute.

I recommend you to measure CLKOUT if you want to check your PLL output.

pastedImage_1.png

Peter