is it not possible to use external interrupt to come out of PDM...????
Some articals shows that using external interrupt you can exit PDM.
Article From Keil page:
Peripheral Simulation
For Atmel AT89S52 — Power Saving Modes (Idle and Power Down)
Simulation support for this peripheral or feature is comprised of:
Example code which helps you get started quickly.
These simulation capabilities are described below.
Idle Mode Example Program
The Keil Debugger fully simulates the effects of Idle Mode. When your target program initiates Idle Mode program execution stops until the next interrupt is triggered. The following example code shows how to enter Idle Mode.
Code C - [expand] |
1
2
3
4
5
| while (1) // Repeat Forever
{
PCON |= 0x01; // Enter IDLE Mode
count++; // Interrupt Wakes-up MCU
} |
Power Down Mode Example Program
The Keil Debugger fully simulates the effects of Power Down Mode. When your target program initiates Power Down Mode program execution stops until the next external interrupt is triggered or until the MCU is reset. The following example code shows how to enter Power Down Mode.
Code C - [expand] |
1
2
3
4
5
| while (1) // Repeat Forever
{
PCON |= 0x02; // Enter Power Down Mode
count++; // External Interrupt or Reset Wakes-up MCU
} |