AT89LP6440 Atmel Corporation, AT89LP6440 Datasheet - Page 121

no-image

AT89LP6440

Manufacturer Part Number
AT89LP6440
Description
Manufacturer
Atmel Corporation
Datasheet

Specifications of AT89LP6440

Flash (kbytes)
64 Kbytes
Max. Operating Frequency
20 MHz
Cpu
8051-1C
Max I/o Pins
38
Spi
1
Twi (i2c)
1
Uart
1
Adc Channels
8
Adc Resolution (bits)
10
Adc Speed (ksps)
153.8
Sram (kbytes)
4.25
Eeprom (bytes)
8192
Self Program Memory
IAP
Operating Voltage (vcc)
2.4 to 3.6
Timers
3
Isp
SPI/OCD
Watchdog
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT89LP6440-20AU
Manufacturer:
Cirrus
Quantity:
89
Part Number:
AT89LP6440-20AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89LP6440-20JU
Manufacturer:
Atmel
Quantity:
103
Part Number:
AT89LP6440-20JU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT89LP6440-20MU
Manufacturer:
Atmel
Quantity:
987
Table 18-8.
3706C–MICRO–2/11
Status
Code
(TWSR)
60h
68h
70h
78h
80h
Status of the Two-wire
Serial Bus and Two-wire
Serial Interface Hardware
Own SLA+W has been
received; ACK has been
returned
Arbitration lost in SLA+R/W
as master; own SLA+W has
been received; ACK has
been returned
General call address has
been received; ACK has
been returned
Arbitration lost in SLA+R/W
as master; General call
address has been received;
ACK has been returned
Previously addressed with
own SLA+W; data has been
received; ACK has been
returned
Status Codes for Slave Receiver Mode
TWEN must be written to one to enable the TWI. The AA bit must be written to one to enable the
acknowledgment of the device’s own slave address or the general call address. STA and STO
must be written to zero.
When TWAR and TWCR have been initialized, the TWI waits until it is addressed by its own
slave address (or the general call address if enabled) followed by the data direction bit. If the
direction bit is “0” (write), the TWI will operate in SR mode, otherwise ST mode is entered. After
its own slave address and the write bit have been received, the TWIF flag is set and a valid sta-
tus code can be read from TWSR. The status code is used to determine the appropriate
software action. The appropriate action to be taken for each status code is detailed in
8. The Slave Receiver mode may also be entered if arbitration is lost while the TWI is in the Mas-
ter mode (see states 68h and 78h).
If the AA bit is reset during a transfer, the TWI will return a “Not Acknowledge” (“1”) to SDA after
the next received data byte. This can be used to indicate that the slave is not able to receive any
more bytes. While AA is zero, the TWI does not acknowledge its own slave address. However,
the Two-wire Serial Bus is still monitored and address recognition may resume at any time by
setting AA. This implies that the AA bit may be used to temporarily isolate the TWI from the Two-
wire Serial Bus.
.
To/from TWDR
No action
No action
No action
No action
No action
No action
No action
No action
Read data byte
Read data byte
Application Software Response
STA
X
X
X
X
X
X
X
X
X
X
STO
0
0
0
0
0
0
0
0
0
0
To TWCR
TWIF
1
1
1
1
1
1
1
1
1
1
AA
0
1
0
1
0
1
0
1
0
1
Next Action Taken by TWI Hardware
Data byte will be received and NOT ACK will be
returned
Data byte will be received and ACK will be
returned
Data byte will be received and NOT ACK will be
returned
Data byte will be received and ACK will be
returned
Data byte will be received and NOT ACK will be
returned
Data byte will be received and ACK will be
returned
Data byte will be received and NOT ACK will be
returned
Data byte will be received and ACK will be
returned
Data byte will be received and NOT ACK will be
returned
Data byte will be received and ACK will be
returned
AT89LP3240/6440
Table 18-
121

Related parts for AT89LP6440