Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/25/06 06:17
Modified:
  04/25/06 06:19

Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#114972 - interrupt duration
Responding to: ???'s previous message
hi,

Dileep Shenoy said:
the int0 was enabled using EX0, EA and configured as edge sensitive. but once the uC goes into power
down , it doent respond at all( except for reset).Have i missed
any thing?


Yes, you did.
First of all, the interrupt must be configured as level sensitive and secondary, its duration must be enough to stabilize oscillator (approx. 10ms). Here is from Atmel:

There are two ways to exit the Power-Down mode:
1. Generate an enabled external interrupt using INT0#, INT1#.

Hardware clears PD bit in PCON register which starts the oscillator and restores the clocks to the CPU and peripherals. Using INTx# input, execution resumes when the input is released (see Figure 19). Execution resumes with the interrupt service routine. Upon completion of the interrupt service routine, program execution resumes with the instruction immediately following the instruction that activated Power-Down mode.

Note: The external interrupt used to exit Power-Down mode must be configured as level sensitive (INT0# and INT1#) and must be assigned the highest priority. In addition, the duration of the interrupt must be long enough to allow the oscillator to stabilize. The execution will only resume when the interrupt is deasserted.


Regards,
Oleg

List of 8 messages in thread
TopicAuthorDate
89s52-exit from power down using INT0            01/01/70 00:00      
   Why power down?            01/01/70 00:00      
      why power down            01/01/70 00:00      
         Yes, but...            01/01/70 00:00      
            yes, but            01/01/70 00:00      
   interrupt duration            01/01/70 00:00      
      interrupt duration            01/01/70 00:00      
      exit from interrupts            01/01/70 00:00      

Back to Subject List