AT89LP51ED2 Atmel Corporation, AT89LP51ED2 Datasheet - Page 130

no-image

AT89LP51ED2

Manufacturer Part Number
AT89LP51ED2
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of AT89LP51ED2

Flash (kbytes)
64 Kbytes
Max. Operating Frequency
20 MHz
Cpu
8051-1C
Max I/o Pins
42
Spi
1
Twi (i2c)
1
Uart
1
Adc Channels
7
Adc Resolution (bits)
10
Adc Speed (ksps)
153.8
Sram (kbytes)
2.25
Eeprom (bytes)
4096
Self Program Memory
API
Operating Voltage (vcc)
2.4 to 5.5
Timers
4
Isp
SPI/OCD/UART
Watchdog
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89LP51ED2-20AAU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89LP51ED2-20AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89LP51ED2-20JU
Manufacturer:
Atmel
Quantity:
10 000
18.1.5
130
AT89LP51RD2/ED2/ID2 Preliminary
Pin Configuration
If the SS pin is driven low by peripheral circuitry when the SPI is configured as a Master with
SSIG = 0, the SPI system interprets this as another master selecting the SPI as a slave and
starting to send data to it. To avoid bus contention, the SPI system takes the following actions:
Thus, when interrupt-driven SPI transmission is used in Master mode, and there exists a possi-
bility that SS may be driven low, the interrupt should always check that the MSTR bit is still set. If
the MSTR bit has been cleared by a slave select, it must be set by the user to re-enable SPI
Master mode.
When the SPI is enabled (SPEN = 1), the data direction of the MOSI, MISO and SCK pins is
automatically overridden according to the MSTR bit as shown in
reconfigure the pins when switching from master to slave or vice-versa. For more details on port
configuration, refer to
.
Table 18-2.
Notes:
1. The MSTR bit in SPCON is cleared and the SPI system becomes a Slave. As a result
2. The MODF Flag in SPSTA is set, and if the SPI interrupt is enabled, the interrupt rou-
MOSI
MISO
SCK
Pin
of the SPI becoming a Slave, the MOSI and SCK pins become inputs.
tine will be executed.
1. In these modes MOSI is active only during transfers. MOSI will be pulled high between trans-
2. In Push-Pull mode MOSI is active only during transfers, otherwise it is tristated to prevent line
fers to allow other masters to control the line.
contention. A weak external pull-up may be required to prevent MOSI from floating.
Mode
Quasi-bidirectional
Push-Pull Output
Input-Only
Open-Drain Output
Quasi-bidirectional
Push-Pull Output
Input-Only
Open-Drain Output
Quasi-bidirectional
Push-Pull Output
Input-Only
Open-Drain Output
SPI Pin Configuration and Behavior when SPE = 1
“Port Configuration” on page
Master (MSTR = 1)
Output
Output
No output (Tristated)
Output
Output
Output
No output (Tristated)
Output
Input (Internal Pull-up)
Input (Tristate)
Input (Tristate)
Input (External Pull-up)
(1)
(2)
(1)
71.
Slave (MSTR = 0)
Input (Internal Pull-up)
Input (Tristate)
Input (Tristate)
Input (External Pull-up)
Input (Internal Pull-up)
Input (Tristate)
Input (Tristate)
Input (External Pull-up)
Output (SS = 0)
Internal Pull-up (SS = 1)
Output (SS = 0)
Tristated (SS = 1)
No output (Tristated)
Output (SS = 0)
External Pull-up (SS = 1)
Table
18-2. The user need not
3714A–MICRO–7/11

Related parts for AT89LP51ED2