AT89LP51ED2-20AAU Atmel, AT89LP51ED2-20AAU Datasheet - Page 63

no-image

AT89LP51ED2-20AAU

Manufacturer Part Number
AT89LP51ED2-20AAU
Description
8-bit Microcontrollers - MCU 64KB 20MHz 2.4V-5.5V
Manufacturer
Atmel
Datasheet

Specifications of AT89LP51ED2-20AAU

Rohs
yes
Core
8051
Processor Series
AT89x
Data Bus Width
8 bit
Maximum Clock Frequency
20 MHz
Program Memory Size
64 KB
Data Ram Size
256 B
On-chip Adc
Yes
Operating Supply Voltage
2.4 V to 5.5 V
Operating Temperature Range
- 40 C to + 85 C
Package / Case
LQFP-44
Mounting Style
SMD/SMT
Data Rom Size
4 KB
Interface Type
2-Wire, SPI, UART
Number Of Programmable I/os
36
Number Of Timers
3
Program Memory Type
Flash
Factory Pack Quantity
160

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89LP51ED2-20AAU
Manufacturer:
Atmel
Quantity:
10 000
9.2
3714A–MICRO–7/11
Interrupt Response
The interrupt flags may be set by their hardware in any clock cycle. The interrupt controller polls
the flags in the last clock cycle of the instruction in progress. If one of the flags was set in the
preceding cycle, the polling cycle will find it and the interrupt system will generate an LCALL to
the appropriate service routine as the next instruction, provided that the interrupt is not blocked
by any of the following conditions:
Each of these conditions will block the generation of the LCALL to the interrupt service routine.
The second condition ensures that if the instruction in progress is RETI or any access to IENx,
IPLx or IPHx, then at least one more instruction will be executed before any interrupt is vectored
to. The polling cycle is repeated at the last cycle of each instruction, and the values polled are
the values that were present at the previous clock cycle. If an active interrupt flag is not being
serviced because of one of the above conditions and is no longer active when the blocking
condition is removed, the denied interrupt will not be serviced. In other words, the fact that the
interrupt flag was once active but not serviced is not remembered. Every polling cycle is new.
If a request is active and conditions are met for it to be acknowledged, a hardware subroutine
call to the requested service routine will be the next instruction executed. The call itself takes
four cycles. Thus, a minimum of five complete clock cycles elapsed between activation of an
interrupt request and the beginning of execution of the first instruction of the service routine. A
longer response time results if the request is blocked by one of the previously listed conditions. If
an interrupt of equal or higher priority level is already in progress, the additional wait time
depends on the nature of the other interrupt's service routine. If the instruction in progress is not
in its final clock cycle, the additional wait time cannot be more than 4 cycles, since the longest
instruction is 5 cycles long. If the instruction in progress is RETI, the additional wait time cannot
be more than 9 cycles (a maximum of 4 more cycles to complete the instruction in progress, plus
a maximum of 5 cycles to complete the next instruction). Thus, in a single-interrupt system, the
response time is always more than 5 clock cycles and less than 14 clock cycles. See
and
When an interrupt is serviced, its interrupt flag must be cleared before the RETI instruction or
else the interrupt will continue to be generated. Many interrupt vectors have multiple sources.
The service routine normally must determine which flag bit generated the interrupt and that bit
must be cleared by software. If multiple source bits are set for one interrupt, the interrupt will
continue to be generated until all the source bits have been cleared. In some cases the interrupt
flags is cleared by hardware when the interrupt is acknowledged.
The External Interrupts INT0 and INT1 can each be either level-activated or edge-activated,
depending on bits IT0 and IT1 in Register TCON. The flags that actually generate these inter-
rupts are the IE0 and IE1 bits in TCON. When the service routine is vectored to, hardware clears
the flag that generated an external interrupt only if the interrupt was edge-activated. If the inter-
rupt was level activated, then the external requesting source (rather than the on-chip hardware)
controls the request flag. The Timer 0 and Timer 1 Interrupts are generated by TF0 and TF1,
which are set by a rollover in their respective Timers). When a timer interrupt is generated, the
on-chip hardware clears the flag that generated it when the service routine is vectored to. All
other flags must be cleared by software.
• An interrupt of equal or higher priority level is already in progress
• The instruction in progress is RETI or any write to the IENx, IPLx or IPHx registers
Figure
9-3.
AT89LP51RD2/ED2/ID2 Preliminary
Figure 9-2
63

Related parts for AT89LP51ED2-20AAU