Power management, Reset, Reset recommendation to prevent flash corruption – Rainbow Electronics AT89C5132 User Manual
Page 46
![background image](/manuals/281775/46/background.png)
46
AT8xC5132
4173A–8051–08/02
Power Management
Two power reduction modes are implemented in the AT8xC5132: the Idle mode and the
Power-down mode. In addition to these power reduction modes, the clocks of the core
and peripherals can be dynamically divided by 2 using the X2 mode detailed in
Section “X2 Feature”, page 12.
Reset
A reset is required after applying power at turn-on. To achieve a valid reset, the reset
signal must be maintained for at least 2 machine cycles (24 oscillator clock periods)
while the oscillator is running. A device reset initializes the AT8xC5132 and vectors the
CPU to address 0000h. RST input has a pull-down resistor allowing power-on reset by
simply connecting an external capacitor to V
DD
as shown in Figure 24. Resistor value
and input characteristics are discussed in the Section “DC Characteristics”. The status
of the Port pins during reset is detailed in Table 56.
Figure 24. Reset Circuitry and Power-On Reset
Table 56. Pin Conditions in Special Operating Modes
Note:
1. Refer to Section “Audio Output Interface”, page 61.
Reset Recommendation
to Prevent Flash
Corruption
A bad reset sequence will lead to bad microcontroller initialization and system registers
like SFR’s, Program Counter, etc. will not be correctly initialized. A bad initialization may
lead to unpredictable behaviour of the C51 microcontroller.
An example of this situation may occur in an instance where the bit ENBOOT in AUXR1
register is initialized from the hardware bit BLJB upon reset. Since this bit allows map-
ping of the bootloader in the code area, a reset failure can be critical.
If one wants the ENBOOT cleared in order to unmap the boot from the code area (yet
due to a bad reset) the bit ENBOOT in SFR’s may be set. If the value of Program
Counter is accidently in the range of the boot memory addresses then a Flash access
(write or erase) may corrupt the Flash on-chip memory .
It is recommended to use an external reset circuitry featuring power supply monitoring to
prevent system malfunction during periods of insufficient power supply voltage (power
supply failure, power supply switched off).
Mode
Port 0
Port 1
Port 2
Port 3
Port 4
Port 5
MMC
Audio
Reset
Floating
High
High
High
High
High
Floating
1
Idle
Data
Data
Data
Data
Data
Data
Data
Data
Power-
down
Data
Data
Data
Data
Data
Data
Data
Data
RST
R
RS
T
V
SS
To CPU core
and peripherals
RST
V
DD
+
b. Power-on Reset
a. RST input circuitry