AnsweredAssumed Answered

MC9S12DT128 CRG problem

Question asked by BMSwei on Jul 8, 2013
Latest reply on Jul 9, 2013 by Radek Sestak

void INIT_PLL(void)

{

    CRGINT = 0;         

    CLKSEL_PLLSEL = 0;       

      PLLCTL_PLLON = 0;          

    SYNR = 0x03;

    REFDV = 0xc2;                 

    PLLCTL_PLLON = 1;     

    PLLCTL_AUTO = 1;           

    while (CRGFLG_LOCK == 0);   

    CLKSEL_PLLSEL = 1;        

}

 

this is the code of the Initialization of PLL in MC9s12DT128 ,but the program is not working.Please help...

 

Outcomes