PLL not always selected when coming out of sleep mode.

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

PLL not always selected when coming out of sleep mode.

963 Views
dtaylor
Contributor I
When PLL is selected as the clock source on the MC9S12C64, when coming out of sleep mode, the PLL may no longer be selected in the CLKSEL register.  The Processor Expert does not handle this correctly.
We had to add code to the macro in Cpu.h which waits for the PLL to lock before setting the bit in the CLKSEL register.  That solved the problem.  But this is something that should be taken care of by the Processor Expert generated code.  Hopefully that can be corrected in a new release of CodeWarrior.
Labels (1)
0 Kudos
1 Reply

222 Views
Alban
Senior Contributor II
Hello,
 
Personally I consider normal to have this bit be changed automatically.
When the MCU goes into STOP mode, the PLL is switched off and not able to provide a clock.
 
During wake up, the PLL clock may not be appropriate, so you can run the device on the oscillator with a known frequency or on the Self Clock Mode.
 
Is Processor Expert looking at this post and able to comment on their implementation ?
 
Alban.
0 Kudos