MPC5748G Clock Problem

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

MPC5748G Clock Problem

929 Views
yankuang1
Contributor III

I would like to know how to configure the MPC5748G clock.I changed the external crystal of 40M to 16M,and i multiplied the clock into 160M according to the documents shown in the attachment.I modified the code as shown below:

pastedImage_2.png

But the board can not be debugged successfully,the debugging information is shown below:

pastedImage_4.png

0 Kudos
Reply
1 Reply

746 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Here you go:

    // Set PLL0 to 160MHz (16MHz XTAL)
    // VCO Frequency Range 600 - 1280 MHz
    // RFDPHI1 = 10, RFDPHI = 1, PREDIV = 1, MFD = 0x28h (40)
    PLLDIG.PLLDV.R = 0x50000000 |0x00010000 |0x00001000 |0x0028 ;

XTAL = 16MHz

PREDIV = 1 -> 16/1 = 16MHz

MFD = 40 -> 40 x 16 = 640

RFDPHI = 1 -> 640/4 = 160MHz

Peter

0 Kudos
Reply