ATA6613-EK Atmel, ATA6613-EK Datasheet - Page 244

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
244
Atmel ATA6612/ATA6613
Even though this example is simple, it shows the principles involved in all TWI transmissions.
These can be summarized as follows:
In the following an assembly and C implementation of the example is given. Note that the code
below assumes that several definitions have been made, for example by using include-files.
• When the TWI has finished an operation and expects application response, the TWINT
• When the TWINT Flag is set, the user must update all TWI Registers with the value
• After all TWI Register updates and other pending application software tasks have been
Flag is set. The SCL line is pulled low until TWINT is cleared.
relevant for the next TWI bus cycle. As an example, TWDR must be loaded with the value
to be transmitted in the next bus cycle.
completed, TWCR is written. When writing TWCR, the TWINT bit should be set. Writing a
one to TWINT clears the flag. The TWI will then commence executing whatever operation
was specified by the TWCR setting.
9111H–AUTO–01/11

Related parts for ATA6613-EK