AT89LP51ED2-20AU Atmel, AT89LP51ED2-20AU Datasheet - Page 131
![no-image](/images/manufacturer_photos/0/0/78/atmel_sml.jpg)
AT89LP51ED2-20AU
Manufacturer Part Number
AT89LP51ED2-20AU
Description
8-bit Microcontrollers - MCU 64KB 20MHz 2.4V-5.5V
Manufacturer
Atmel
Datasheet
1.AT89LP51ED2-20AAU.pdf
(254 pages)
Specifications of AT89LP51ED2-20AU
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
TQFP-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
- Current page: 131 of 254
- Download datasheet (7Mb)
18.2
18.3
3714A–MICRO–7/11
Master Operation
Slave Operation
An SPI master device initiates all data transfers on the SPI bus. The AT89LP51RD2/ED2/ID2 is
configured for master operation by setting MSTR = 1 in SPCON. Writing to the SPI data register
(SPDAT) while in master mode loads the transmit buffer. If the SPI shift register is empty, the
byte in the transmit buffer is moved to the shift register; the transmit buffer empty flag, TXE, is
set; and a transmission begins. The transfer may start after an initial delay, while the clock gen-
erator waits for the next full bit slot of the specified baud rate. The master shifts the data out
serially on the MOSI line while providing the serial shift clock on SCK. When the transfer fin-
ishes, the SPIF flag is set to “1” and an interrupt request is generated, if enabled. The data
received from the addressed SPI slave device is also transferred from the shift register to the
receive buffer. Therefore, the SPIF bit flags both the transmit-complete and receive-data-ready
conditions. The received data is accessed by reading SPDAT.
While the TXE flag is set, the transmit buffer is empty. TXE can be cleared by software or by
writing to SPDAT. Writing to SPDAT will clear TXE and load the transmit buffer. The user may
load the buffer while the shift register is busy, i.e. before the current transfer completes. When
the current transfer completes, the queued byte in the transmit buffer is moved to the shift regis-
ter and the next transfer commences. TXE will generate an interrupt if the SPI interrupt is
enabled and if the ENH bit in SPSTA is set. For multi-byte transfers, TXE may be used to
remove any dead time between byte transmissions.
The SPI master can operate in two modes: multi-master mode and single-master mode. By
default, multi-master mode is active when SSIG = 0. In this mode, the SS input is used to dis-
able a master device when another master is accessing the bus. When SS is driven low, the
master device becomes a slave by clearing its MSTR bit and a Mode Fault is generated by set-
ting the MODF bit in SPSTA. MODF will generate an interrupt if enabled. The MSTR bit must be
set in software before the device may become a master again. Single-master mode is enabled
by setting SSIG = 1. In this mode SS is ignored and the master is always active. SS may be
used as a general purpose I/O in this mode.
When the AT89LP51RD2/ED2/ID2 is not configured for master operation, MSTR = 0, it will oper-
ate as an SPI slave. In slave mode, bytes are shifted in through MOSI and out through MISO by
a master device controlling the serial clock on SCK. When a byte has been transferred, the SPIF
flag is set to “1” and an interrupt request is generated, if enabled. The data received from the
addressed master device is also transferred from the shift register to the receive buffer. The
received data is accessed by reading SPDAT. A slave device cannot initiate transfers. Data to
be transferred to the master device must be preloaded by writing to SPDAT. Writes to SPDAT
are double-buffered. The transmit buffer is loaded first and if the shift register is empty, the con-
tents of the buffer will be transferred to the shift register.
While the TXE flag is set, the transmit buffer is empty. TXE can be cleared by software or by
writing to SPDAT. Writing to SPDAT will clear TXE and load the transmit buffer. The user may
load the buffer while the shift register is busy, i.e. before the current transfer completes. When
the current transfer completes, the queued byte in the transmit buffer is moved to the shift regis-
ter and waits for the master to initiate another transfer. TXE will generate an interrupt if the SPI
interrupt is enabled and if the ENH bit in SPSTA is set.
The SPI slave can operate in two modes: 4-wire mode and 3-wire mode. By default, 4-wire
mode is active when SSIG = 0. In this mode, the SS input is used to enable/disable the slave
device when addressed by a master. When SS is driven low, the slave device is enabled and will
AT89LP51RD2/ED2/ID2 Preliminary
131
Related parts for AT89LP51ED2-20AU
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![ATSTK600](/photos/9/20/92038/atstk600_tmb.jpg)
Part Number:
Description:
DEV KIT FOR AVR/AVR32
Manufacturer:
Atmel
Datasheet:
![U641B](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
INTERVAL AND WIPE/WASH WIPER CONTROL IC WITH DELAY
Manufacturer:
ATMEL Corporation
Datasheet:
![U4082B](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Low-Voltage Voice-Switched IC for Hands-Free Operation
Manufacturer:
ATMEL Corporation
Datasheet:
![U4089B](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
MONOLITHIC INTEGRATED FEATUREPHONE CIRCUIT
Manufacturer:
ATMEL Corporation
Datasheet:
![U4255BM-M](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
AM-FM Receiver IC U4255BM-M
Manufacturer:
ATMEL Corporation
Datasheet:
![U4089B-P](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Monolithic Integrated Feature Phone Circuit
Manufacturer:
ATMEL Corporation
Datasheet:
![TDA4470](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Multistandard Video-IF and Quasi Parallel Sound Processing
Manufacturer:
ATMEL Corporation
Datasheet:
![ATF22V10B-25PC](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
High-performance EE PLD
Manufacturer:
ATMEL Corporation
Datasheet:
![AT89C51ED2-IM](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
8-bit Flash Microcontroller
Manufacturer:
ATMEL Corporation
Datasheet:
![AT24C01](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
2-Wire Serial EEPROM
Manufacturer:
ATMEL Corporation
Datasheet: