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:
But the board can not be debugged successfully,the debugging information is shown below:
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