AT89LP428-20MU ATMEL [ATMEL Corporation], AT89LP428-20MU Datasheet - Page 7

no-image

AT89LP428-20MU

Manufacturer Part Number
AT89LP428-20MU
Description
8-bit Microcontroller with 4K/8K Bytes In-System Programmable Flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
2.2
2.2.1
2.2.2
2.2.3
2.2.4
2.2.5
3654A–MICRO–8/09
Comparison to Standard 8051
System Clock
Reset
Instruction Execution with Single-cycle Fetch
Interrupt Handling
Timer/Counters
The AT89LP428/828 is part of a family of devices with enhanced features that are fully binary
compatible with the MCS-51 instruction set. In addition, most SFR addresses, bit assignments,
and pin alternate functions are identical to Atmel's existing standard 8051 products. However,
due to the high performance nature of the device, some system behaviors are different from
those of Atmel's standard 8051 products such as AT89S52 or AT89S2051. The major differ-
ences from the standard 8051 are outlined in the following paragraphs and may be useful to
users migrating to the AT89LP428/828 from older devices.
The maximum CPU clock frequency equals the externally supplied XTAL1 frequency. The oscil-
lator is not divided by 2 to provide the internal clock and x2 mode is not supported.
The RST pin of the AT89LP428/828 is active-low as compared with the active-high reset in the
standard 8051. In addition, the RST pin is sampled every clock cycle and must be held low for a
minimum of two clock cycles, instead of 24 clock cycles, to be recognized as a valid reset.
The CPU fetches one code byte from memory every clock cycle instead of every six clock
cycles. This greatly increases the throughput of the CPU. As a consequence, the CPU no longer
executes instructions in 12, 24 or 48 clock cycles. Each instruction executes in only 1 to 4 clock
cycles. See
The interrupt controller polls the interrupt flags during the last clock cycle of any instruction. In
order for an interrupt to be serviced at the end of an instruction, its flag needs to have been
latched as active during the next to last clock cycle of the instruction, or in the last clock cycle of
the previous instruction if the current instruction executes in only a single clock cycle.
The external interrupt pins, INT0 and INT1, are sampled at every clock cycle instead of once
every 12 clock cycles. Coupled with the shorter instruction timing and faster interrupt response,
this leads to a higher maximum rate of incidence for the external interrupts.
The Serial Peripheral Interface (SPI) has a dedicated interrupt vector. The SPI no longer shares
its interrupt with the Serial Port and the ESP (IE2.2) bit replaces SPIE (SPCR.7).
By default Timer 0, Timer 1 and Timer 2 are incremented at a rate of once per clock cycle. This
compares to once every 12 clocks in the standard 8051. A common prescaler is available to
divide the time base for all timers and reduce the increment rate. The TPS
SFR control the prescaler
to count once every 12 clocks.
The external Timer/Counter pins, T0, T1, T2 and T2EX, are sampled at every clock cycle instead
of once every 12 clock cycles. This increases the maximum rate at which the Counter modules
may function.
There is no difference in counting rate between Timer 2’s Auto-reload/Capture and Baud
Rate/Clock Out modes. All modes increment the timer once per clock cycle. Timer 2 in Baud
Rate or Clock Out mode increments at twice the rate of standard 8051s. Setting TPS
will force Timer 2 to count every two clocks.
“Instruction Set Summary” on page 107
(Table 6-2 on page
23). Setting TPS
for more details.
3-0
= 1011B will cause the timers
AT89LP428/828
3-0
bits in the CLKREG
3-0
= 0001B
7

Related parts for AT89LP428-20MU