Embedded MCU P89C58 Flash Memory Decryption can be carried out through the power glitch which requires to use the techniques of power supply manipulation.
To save even more power, a Power Down mode (see below Table) can be invoked by software. In this mode, the oscillator is stopped and the instruction that invoked Power Down is the last instruction executed.
The on-chip RAM and Special Function Registers retain their values down to 2.0V and care must be taken to return VCC to the minimum specified operating voltages before the Power Down Mode is terminated.
Either a hardware reset or external interrupt can be used to exit from Power Down after Embedded MCU P89C58 Flash Memory Decryption. Reset redefines all the SFRs but does not change the on-chip RAM. An external interrupt allows both the SFRs and the on-chip RAM to retain their values.
To properly terminate Power Down the reset or external interrupt should not be executed before VCC is restored to its normal operating level and must be held active long enough for the oscillator to restart and stabilize (normally less than 10ms).
With an external interrupt, INT0 and INT1 must be enabled and configured as level-sensitive. Holding the pin low restarts the oscillator but bringing the pin back high completes the exit. Once the interrupt is serviced, the next instruction to be executed after RETI will be the one following the instruction that put the device into Power Down.