AnsweredAssumed Answered

I want to change the frequency of PLL1

Question asked by shen jun on Apr 28, 2016

I want to change the frequency of PLL1,

#ifdef XOSC40MHZ

    #ifdef PLL0_160MHZ

    /* Setup PLL0 - 160MHz @ 40MHz XOSC */

    PLLDIG.PLL0DV.R = 0x20041010UL; /* RFDPHI1 = 4, RFDPHI = 4, PREDIV = 1,

                                       MFD = 16, fVCO = 640MHz*/

    #endif

#endif

#ifdef XOSC40MHZ

    #ifdef PLL1_200MHZ

    /* Setup PLL1 - 200MHz @ 40MHz XOSC */

    PLLDIG.PLL1DV.R = 0x00020004UL; /* RFDPHI = 2 (divider=4), MFD = 20,

                                       fVCO = 800MHz 200MHZ(0x00020014UL)160MHZ(0x00020004UL)*/

when PLLDIG.PLL1DV.R = 0x00020004UL;can not debug at while(MC_ME.GS.B.S_MTRANS == 1);                     
but when PLLDIG.PLL1DV.R = 0x00020014UL;can through while(MC_ME.GS.B.S_MTRANS == 1); 

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

Outcomes