AT89LP828-20AU Atmel, AT89LP828-20AU Datasheet - Page 93

MCU 8051 8K FLASH SPI 32TQFP

AT89LP828-20AU

Manufacturer Part Number
AT89LP828-20AU
Description
MCU 8051 8K FLASH SPI 32TQFP
Manufacturer
Atmel
Series
89LPr
Datasheet

Specifications of AT89LP828-20AU

Core Processor
8051
Core Size
8-Bit
Speed
20MHz
Connectivity
SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
30
Program Memory Size
8KB (8K x 8)
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
768 x 8
Voltage - Supply (vcc/vdd)
2.4 V ~ 5.5 V
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
32-TQFP, 32-VQFP
Processor Series
AT89x
Core
8051
Data Bus Width
8 bit
Data Ram Size
768 B
Interface Type
2-Wire, SPI
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
30
Number Of Timers
3
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
PK51, CA51, A51, ULINK2
Development Tools By Supplier
AT89ISP
Minimum Operating Temperature
- 40 C
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Data Converters
-
Lead Free Status / Rohs Status
 Details

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89LP828-20AU
Manufacturer:
Atmel
Quantity:
360
Part Number:
AT89LP828-20AU
Manufacturer:
Atmel
Quantity:
10 000
17.1
3654A–MICRO–8/09
Master Operation
Figure 17-2. SPI Master-Slave Interconnection
When the SPI is configured as a Master (MSTR in SPCR is set), the operation of the SS pin
depends on the setting of the Slave Select Ignore bit, SSIG. If SSIG = 1, the SS pin is a general-
purpose output pin which does not affect the SPI system. Typically, the pin will be driving the SS
pin of an SPI Slave. If SSIG = 1, SS must be held high to ensure Master SPI operation. If the SS
pin is driven low by peripheral circuitry when the SPI is configured as a Master with SSIG = 1,
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.
An SPI master device initiates all data transfers on the SPI bus. The AT89LP428/828 is config-
ured for master operation by setting MSTR = 1 in SPCR. Writing to the SPI data register (SPDR)
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 generator 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 finishes, 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 SPDR.
1. The MSTR bit in SPCR is cleared and the SPI system becomes a Slave. As a result of
2. The MODF Flag in SPSR is set, and if the SPI interrupt is enabled, the interrupt routine
the SPI becoming a Slave, the MOSI and SCK pins become inputs.
will be executed.
MSB
Generator
Clock
8-Bit Shift Register
Master
MODF
LSB
GPIO
SSIG
SS
MISO
MOSI
SCK
V
CC
MISO
MOSI
SCK
SS
SSIG
MSB
DISSO
8-Bit Shift Register
AT89LP428/828
Slave
LSB
93

Related parts for AT89LP828-20AU