AT89LP6440-20JU Atmel, AT89LP6440-20JU Datasheet - Page 115

MCU 8051 64K FLASH ISP 44PLCC

AT89LP6440-20JU

Manufacturer Part Number
AT89LP6440-20JU
Description
MCU 8051 64K FLASH ISP 44PLCC
Manufacturer
Atmel
Series
89LPr
Datasheet

Specifications of AT89LP6440-20JU

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-PLCC
Processor Series
AT89x
Core
8051
Data Bus Width
8 bit
Data Ram Size
8 KB
Interface Type
2-Wire, SPI
Maximum Clock Frequency
24 MHz
Number Of Programmable I/os
38
Number Of Timers
3
Operating Supply Voltage
2.7 V to 3.6 V
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
On-chip Adc
10 bit, 8 Channel
On-chip Dac
10 bit, 8 Channel
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89LP6440-20JU
Manufacturer:
Atmel
Quantity:
103
Part Number:
AT89LP6440-20JU
Manufacturer:
Atmel
Quantity:
10 000
18.6.1
3706A–MICRO–9/09
Master Transmitter Mode
SLA: Slave Address
In
bers in the circles show the status code held in TWSR. At these points, actions must be taken by
the application to continue or complete the TWI transfer. The TWI transfer is suspended until the
TWIF flag is cleared by software.
When the TWIF flag is set, the status code in TWSR is used to determine the appropriate soft-
ware action. For each status code, the required software action and details of the following serial
transfer are given in
In the Master Transmitter mode, a number of data bytes are transmitted to a Slave Receiver. In
order to enter a Master mode, a START condition must be transmitted. The format of the follow-
ing address packet determines whether Master Transmitter or Master Receiver mode is to be
entered. If SLA+W is transmitted, MT mode is entered, if SLA+R is transmitted, MR mode is
entered.
A START condition is sent by writing the following value to TWCR:
TWEN must be set to enable the Two-wire Serial Interface, STA must be written to one to trans-
mit a START condition and TWIF must be cleared. The TWI will then test the Two-wire Serial
Bus and generate a START condition as soon as the bus becomes free. After a START condi-
tion has been transmitted, the TWIF flag is set by hardware, and the status code in TWSR will be
08h (see
writing SLA+W to TWDR. Thereafter the TWIF bit should be cleared to continue the transfer.
When SLA+W has been transmitted and an acknowledgment bit has been received, TWIF is set
again and a number of status codes in TWSR are possible. Possible status codes in Master
mode are 18h, 20h, or 38h. The appropriate action to be taken for each of these status codes is
detailed in
After SLA+W has been successfully transmitted, a data packet should be transmitted. This is
done by writing the data byte to TWDR. TWDR must only be written when TWIF is high. If not,
the access will be discarded and the previous value will be transmitted. After updating TWDR,
the TWIF bit should be cleared to continue the transfer. This scheme is repeated until the last
byte has been sent and the transfer is ended by generating a STOP condition or a repeated
START condition. A STOP condition is generated by writing the following value to TWCR:
A REPEATED START condition is generated by writing the following value to TWCR:
After a repeated START condition (status 10h) the Two-wire Serial Interface can access the
same slave again, or a new slave without transmitting a STOP condition. Repeated START
enables the master to switch between slaves, Master Transmitter mode and Master Receiver
mode without losing control of the bus.
TWCR
Value
TWCR
Value
TWCR
Value
Figure 18-11
Table
Table
X
X
X
18-6). In order to enter MT mode, SLA+W must be transmitted. This is done by
to
18-6.
Figure
Table 18-6
TWEN
TWEN
TWEN
1
1
1
18-14, circles are used to indicate that the TWIF flag is set. The num-
to
STA
STA
STA
1
0
1
Table
18-9.
STO
STO
STO
0
1
0
AT89LP6440 - Preliminary
TWIF
TWIF
TWIF
0
0
0
AA
AA
AA
X
X
X
X
X
X
X
X
X
115

Related parts for AT89LP6440-20JU