ATA6613-EK Atmel, ATA6613-EK Datasheet - Page 247

no-image

ATA6613-EK

Manufacturer Part Number
ATA6613-EK
Description
BOARD DEMO LIN-MCM FOR ATA6613
Manufacturer
Atmel
Datasheets

Specifications of ATA6613-EK

Main Purpose
Interface, LIN + MCU
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
ATA6613
Primary Attributes
LIN-SBC (System-Basis-Chip) Transceiver, LIN 2.0, Voltage Regulator, Window Watchdog
Secondary Attributes
16 kB Flash, 4 Power Modes: Pre-Normal, Normal, Sleep, Silent, 48-QFN
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Figure 6-88. Data Transfer in Master Transmitter Mode
9111H–AUTO–01/11
SDA
SCL
TRANSMITTER
Device 1
A START condition is sent by writing the following value to TWCR:
TWEN must be set to enable the 2-wire Serial Interface, TWSTA must be written to one to
transmit a START condition and TWINT must be written to one to clear the TWINT Flag. The
TWI will then test the 2-wire Serial Bus and generate a START condition as soon as the bus
becomes free. After a START condition has been transmitted, the TWINT Flag is set by hard-
ware, and the status code in TWSR will be 0x08 (see
enter MT mode, SLA+W must be transmitted. This is done by writing SLA+W to TWDR.
Thereafter the TWINT bit should be cleared (by writing it to one) to continue the transfer. This
is accomplished by writing the following value to TWCR:
When SLA+W have been transmitted and an acknowledgement bit has been received, TWINT
is set again and a number of status codes in TWSR are possible. Possible status codes in
Master mode are 0x18, 0x20, or 0x38. The appropriate action to be taken for each of these
status codes is detailed in
When 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 TWINT is high. If
not, the access will be discarded, and the Write Collision bit (TWWC) will be set in the TWCR
Register. After updating TWDR, the TWINT bit should be cleared (by writing it to one) to con-
tinue the transfer. This is accomplished by writing the following value to TWCR:
This scheme is repeated until the last byte has been sent and the transfer is ended by gener-
ating a STOP condition or a repeated START condition. A STOP condition is generated by
writing the following value to TWCR:
MASTER
TWCR
TWCR
TWCR
TWCR
value
value
value
value
Device 2
RECEIVER
TWINT
TWINT
TWINT
TWINT
SLAVE
1
1
1
1
TWEA
TWEA
TWEA
TWEA
Device 3
X
X
X
X
Table 6-90 on page
TWSTA
TWSTA
TWSTA
TWSTA
1
0
0
0
........
TWSTO
TWSTO
TWSTO
TWSTO
Atmel ATA6612/ATA6613
Device n
248.
0
0
0
1
V
CC
TWWC
TWWC
TWWC
TWWC
Table 6-90 on page
X
X
X
X
R1
TWEN
TWEN
TWEN
TWEN
1
1
1
1
R2
248). In order to
0
0
0
0
TWIE
TWIE
TWIE
TWIE
X
X
X
X
247

Related parts for ATA6613-EK