AT89LP6440-20AU Atmel, AT89LP6440-20AU Datasheet - Page 113
![MCU 8051 64K FLASH ISP 44TQFP](/photos/6/70/67042/313-44-tqfp_sml.jpg)
AT89LP6440-20AU
Manufacturer Part Number
AT89LP6440-20AU
Description
MCU 8051 64K FLASH ISP 44TQFP
Manufacturer
Atmel
Series
89LPr
Specifications of AT89LP6440-20AU
Core Processor
8051
Core Size
8-Bit
Speed
20MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
38
Program Memory Size
64KB (64K x 8)
Program Memory Type
FLASH
Eeprom Size
8K x 8
Ram Size
4.25K x 8
Voltage - Supply (vcc/vdd)
2.4 V ~ 3.6 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
44-TQFP, 44-VQFP
Package
44TQFP
Device Core
8051
Family Name
89LP
Maximum Speed
20 MHz
Operating Supply Voltage
2.5|3.3 V
Data Bus Width
8 Bit
Number Of Programmable I/os
38
Interface Type
2-Wire/SPI
On-chip Dac
8-chx10-bit
Number Of Timers
3
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
AT89LP6440-20AU
Manufacturer:
Cirrus
Quantity:
89
Figure 18-10. Interfacing the Application to the TWI in a Typical Transmission
3706A–MICRO–9/09
TWI bus
1. Application writes
to TWCR to initiate
transmission of
START
START condition sent
Status code indicates
2. TWIF set.
START
3. Check TWSR to see if START was
TWDR, and loads appropriate control
signals into TWCR, making sure that
sent. Application loads SLA+W into
1. The first step in a TWI transmission is to transmit a START condition. This is done by
2. When the START condition has been transmitted, the TWIF flag in TWCR is set, and
3. The application software should now examine the value of TWSR, to make sure that the
4. When the address packet has been transmitted, the TWIF flag in TWCR is set, and
5. The application software should now examine the value of TWSR, to make sure that the
TWIF is written to zero and
STA is written to zero.
writing a specific value into TWCR, instructing the TWI hardware to transmit a START
condition. Which value to write is described later on. However, it is important that the
TWIF bit is cleared in the value written. The TWI will not start any operation as long as
the TWIF bit in TWCR is set. Immediately after the application has cleared TWIF, the
TWI will initiate transmission of the START condition.
TWSR is updated with a status code indicating that the START condition has success-
fully been sent.
START condition was successfully transmitted. If TWSR indicates otherwise, the appli-
cation software might take some special action, like calling an error routine. Assuming
that the status code is as expected, the application must load SLA+W into TWDR.
Remember that TWDR is used both for address and data. After TWDR has been
loaded with the desired SLA+W, a specific value must be written to TWCR, instructing
the TWI hardware to transmit the SLA+W present in TWDR. Which value to write is
described later on. However, it is important that the TWIF bit is cleared in the value writ-
ten. The TWI will not start any operation as long as the TWIF bit in TWCR is set.
Immediately after the application has cleared TWIF, the TWI will initiate transmission of
the address packet.
TWSR is updated with a status code indicating that the address packet has success-
fully been sent. The status code will also reflect whether a slave acknowledged the
packet or not.
address packet was successfully transmitted, and that the value of the ACK bit was as
expected. If TWSR indicates otherwise, the application software might take some spe-
cial action, like calling an error routine. Assuming that the status code is as expected,
the application must load a data packet into TWDR. Subsequently, a specific value
must be written to TWCR, instructing the TWI hardware to transmit the data packet
present in TWDR. Which value to write is described later on. However, it is important
that the TWIF bit is cleared in the value written. The TWI will not start any operation as
SLA+W
Status code indicates
SLA+W sent, ACK
4. TWIF set.
received
A
5. Check TWSR to see if SLA+W was
and loads appropriate control signals
Application loads data into TWDR,
into TWCR, making sure that
sent and ACK received.
TWIF is written to zero.
Data
AT89LP6440 - Preliminary
data sent, ACK received
Status code indicates
6. TWIF set.
A
7. Check TWSR to see if data was sent
and ACK received. Application loads
STOP into TWCR, making sure that
appropriate control signals to send
TWIF is written to zero.
STOP
TWIF set
Indicates
113