AnsweredAssumed Answered

ADUC7022 Timer3 Sleep Mode Wakeup

Question asked by hectorka on Jan 12, 2011
Latest reply on Jan 14, 2011 by hectorka

Could you provide some example code for waking the microcontroller form sleep using timer3 interrupt?

Since PLL is not started could this be started safely in the interrupt?

 

Is this a valid ?

 

__irq void IRQ_Handler (void) 

{

    if ((IRQSTA & WAKEUP_TIMER_BIT) !=0)             // Timer2 IRQ
    {
       
      
         PLLKEY1 = 0xAA;
       PLLCON = 0x01;  // Generate from PLL based on XTAL
       PLLKEY2 = 0x55;

 

    
       POWKEY1 = 0x01;
       POWCON = frequency;
       POWKEY2 = 0xF4;

   }

}

Outcomes