English
Language : 

AT91SAM9260_1 Datasheet, PDF (385/798 Pages) ATMEL Corporation – AT91 ARM Thumb Microcontrollers
AT91SAM9260
30. Two-wire Interface (TWI)
30.1 Description
The Atmel Two-wire Interface (TWI) interconnects components on a unique two-wire bus, made
up of one clock line and one data line with speeds of up to 400 Kbits per second, based on a
byte-oriented transfer format. It can be used with any Atmel Two-wire Interface bus Serial
EEPROM and I²C compatible device such as Real Time Clock (RTC), Dot Matrix/Graphic LCD
Controllers and Temperature Sensor, to name but a few. The TWI is programmable as a master
or a slave with sequential or single-byte access. Multiple master capability is supported. Arbitra-
tion of the bus is performed internally and puts the TWI in slave mode automatically if the bus
arbitration is lost.
A configurable baud rate generator permits the output data rate to be adapted to a wide range of
core clock frequencies.
Below, Table 30-1 lists the compatibility level of the Atmel Two-wire Interface in Master Mode and
a full I2C compatible device.
Table 30-1. Atmel TWI compatibility with i2C Standard
I2C Standard
Atmel TWI
Standard Mode Speed (100 KHz)
Supported
Fast Mode Speed (400 KHz)
Supported
7 or 10 bits Slave Addressing
START BYTE(1)
Supported
Not Supported
Repeated Start (Sr) Condition
Supported
ACK and NACK Management
Supported
Slope control and input filtering (Fast mode)
Not Supported
Clock stretching
Supported
Note: 1. START + b000000001 + Ack + Sr
30.2
Embedded Characteristics
• Master, MultiMaster and Slave modes supported
• General Call supported in Slave mode
30.3 List of Abbreviations
Table 30-2. Abbreviations
Abbreviation
TWI
A
NA
P
S
Sr
Description
Two-wire Interface
Acknowledge
Non Acknowledge
Stop
Start
Repeated Start
6221I–ATARM–17-Jul-09
385