English
Language : 

W77IE58_06 Datasheet, PDF (45/82 Pages) Winbond – 8-BIT MICROCONTROLLER
W77IE58/W77I058A
Power Down Mode
The device can be put into Power Down mode by writing 1 to bit PCON.1. The instruction that does
this will be the last instruction to be executed before the device goes into Power Down mode. In the
Power Down mode, all the clocks are stopped and the device comes to a halt. All activity is completely
stopped and the power consumption is reduced to the lowest possible value. In this state the ALE and
PSEN pins are pulled low. The port pins output the values held by their respective SFRs.
The W77I058 will exit the Power Down mode with a reset or by an external interrupt pin enabled as
level detect. An external reset can be used to exit the Power down state. The high on RST pin
terminates the Power Down mode, and restarts the clock. The program execution will restart from
0000h. In the Power down mode, the clock is stopped, so the Watchdog timer cannot be used to
provide the reset to exit Power down mode.
The W77I058 can be woken from the Power Down mode by forcing an external interrupt pin activated,
provided the corresponding interrupt is enabled, while the global enable(EA) bit is set and the external
input has been set to a level detect mode. If these conditions are met, then the low level on the
external pin re-starts the oscillator. Then device executes the interrupt service routine for the
corresponding external interrupt. After the interrupt service routine is completed, the program
execution returns to the instruction after the one which put the device into Power Down mode and
continues from there. When RGSL(EXIF.1) bit is set to 1, the CPU will use the internal RC oscillator
instead of crystal to exit Power Down mode. The microcontroller will automatically switch from RC
oscillator to crystal after clock is stable. The RC oscillator runs at approximately 2−4 MHz. Using RC
oscillator to exit from Power Down mode saves the time for waiting crystal start-up. It is useful in the
low power system which usually be awakened from a short operation then returns to Power Down
mode.
Table 5. Status of external pins during Idle and Power Down
MODE
PROGRAM
MEMORY
ALE
PSEN PORT0
PORT1
PORT2 PORT3
Idle
Internal
1
1
Data
Data
Data
Data
Idle
External
1
1
Float
Data
Address
Data
Power Down
Internal
0
0
Data
Data
Data
Data
Power Down
External
0
0
Float
Data
Data
Data
6.4 Reset Conditions
The user has several hardware related options for placing the W77I058 into reset condition. In
general, most register bits go to their reset value irrespective of the reset condition, but there are a few
flags whose state depends on the source of reset. The user can use these flags to determine the
cause of reset using software. There are two ways of putting the device into reset state. They are
External reset and Watchdog reset.
- 45 -
Publication Release Date: November 10, 2006
Revision A7