AT89S52-33AC ATMEL Corporation, AT89S52-33AC Datasheet - Page 15
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
AT89S52-33AC
Manufacturer Part Number
AT89S52-33AC
Description
8-bit Microcontroller with 8K Bytes In-System Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet
1.AT89S52-33AC.pdf
(30 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Oscillator Characteristics
XTAL1 and XTAL2 are the input and output, respectively,
of an inverting amplifier that can be configured for use as
an on-chip oscillator, as shown in Figure 11. Either a quartz
crystal or ceramic resonator may be used. To drive the
device from an external clock source, XTAL2 should be left
unconnected while XTAL1 is driven, as shown in Figure 12.
There are no requirements on the duty cycle of the external
clock signal, since the input to the internal clocking circuitry
is through a divide-by-two flip-flop, but minimum and maxi-
mum voltage high and low time specifications must be
observed.
Idle Mode
In idle mode, the CPU puts itself to sleep while all the on-
chip peripherals remain active. The mode is invoked by
software. The content of the on-chip RAM and all the spe-
cial functions registers remain unchanged during this
mode. The idle mode can be terminated by any enabled
interrupt or by a hardware reset.
Note that when idle mode is terminated by a hardware
reset, the device normally resumes program execution
from where it left off, up to two machine cycles before the
internal reset algorithm takes control. On-chip hardware
inhibits access to internal RAM in this event, but access to
the port pins is not inhibited. To eliminate the possibility of
an unexpected write to a port pin when idle mode is termi-
nated by a reset, the instruction following the one that
invokes idle mode should not write to a port pin or to exter-
nal memory.
Power-down Mode
In the Power-down mode, the oscillator is stopped, and the
instruction that invokes Power-down is the last instruction
executed. The on-chip RAM and Special Function Regis-
ters retain their values until the Power-down mode is termi-
nated. Exit from Power-down mode can be initiated either
by a hardware reset or by an enabled external interrupt.
Reset redefines the SFRs but does not change the on-chip
RAM. The reset should not be activated before V
restored to its normal operating level and must be held
Table 6. Status of External Pins During Idle and Power-down Modes
Mode
Idle
Idle
Power-down
Power-down
Program Memory
Internal
External
Internal
External
ALE
1
1
0
0
CC
is
PSEN
active long enough to allow the oscillator to restart
and stabilize.
Figure 11. Oscillator Connections
Note:
Figure 12. External Clock Drive Configuration
1
1
0
0
C1, C2 = 30 pF 10 pF for Crystals
OSCILLATOR
PORT0
EXTERNAL
Float
Data
Data
Float
SIGNAL
NC
= 40 pF 10 pF for Ceramic Resonators
C2
C1
PORT1
Data
Data
Data
Data
Address
PORT2
XTAL2
XTAL1
GND
Data
Data
Data
XTAL2
XTAL1
GND
PORT3
Data
Data
Data
Data
15