ATA6602 ATMEL Corporation, ATA6602 Datasheet - Page 239
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
ATA6602
Manufacturer Part Number
ATA6602
Description
LIN and Microcontroller System-In-Package: LIN Transceiver, integrated 5V/50 mA voltage regulator, window watchdog and automotive AVR ATmega88 (8 kBytes Flash); green QFN48 package.
Manufacturer
ATMEL Corporation
Datasheet
1.ATA6602.pdf
(362 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
ATA6602-PLQW
Manufacturer:
ATMEL
Quantity:
1 727
Part Number:
ATA6602-PLQW
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Company:
Part Number:
ATA6602NPLQW
Manufacturer:
ATMEL
Quantity:
7 234
- Current page: 239 of 362
- Download datasheet (5Mb)
4.19.7
Figure 4-87. Interfacing the Application to the TWI in a Typical Transmission
4921C–AUTO–01/07
Using the TWI
writes to TWCR to
TWI bus
transmission of
1. Application
START condition sent
Status code indicates
START
initiate
2. TWINT set.
START
The AVR TWI is byte-oriented and interrupt based. Interrupts are issued after all bus events, like
reception of a byte or transmission of a START condition. Because the TWI is interrupt-based,
the application software is free to carry on other operations during a TWI byte transfer. Note that
the TWI Interrupt Enable (TWIE) bit in TWCR together with the Global Interrupt Enable bit in
SREG allow the application to decide whether or not assertion of the TWINT Flag should gener-
ate an interrupt request. If the TWIE bit is cleared, the application must poll the TWINT Flag in
order to detect actions on the TWI bus.
When the TWINT Flag is asserted, the TWI has finished an operation and awaits application
response. In this case, the TWI Status Register (TWSR) contains a value indicating the current
state of the TWI bus. The application software can then decide how the TWI should behave in
the next TWI bus cycle by manipulating the TWCR and TWDR Registers.
Figure 4-87
example, a Master wishes to transmit a single data byte to a Slave. This description is quite
abstract, a more detailed explanation follows later in this section. A simple code example imple-
menting the desired behavior is also presented.
1. The first step in a TWI transmission is to transmit a START condition. This is done by
2. When the START condition has been transmitted, the TWINT Flag in TWCR is set, and
TWDR, and loads appropriate control
3. Check TWSR to see if START was
writing a specific value into TWCR, instructing the TWI hardware to transmit a START
condition. Which value to write is described later on. However, it is important that the
TWINT bit is set in the value written. Writing a one to TWINT clears the flag. The TWI
will not start any operation as long as the TWINT bit in TWCR is set. Immediately after
the application has cleared TWINT, the TWI will initiate transmission of the START
condition.
TWSR is updated with a status code indicating that the START condition has success-
fully been sent.
sent. Application loads SLA+W into
signals into TWCR, makin sure that
and TWSTA is written to zero.
TWINT is written to one,
is a simple example of how the application can interface to the TWI hardware. In this
SLA+W
Status code indicates
SLA+W sent, ACK
4. TWINT set.
received
A
Application loads data into TWDR, and
5. Check TWSR to see if SLA+W was
loads appropriate control signals into
TWCR, making sure that TWINT is
sent and ACK received.
written to one
Data
data sent, ACK received
Status code indicates
6. TWINT set.
A
making sure that TWINT is written to one
7. Check TWSR to see if data was sent
Application loads appropriate control
signals to send STOP into TWCR,
ATA6602/ATA6603
STOP
and ACK received.
TWINT set
Indicates
239
Related parts for ATA6602
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![AT-106](/images/manufacturer_photos/0/6/687/tyco_electronics_tmb.jpg)
Part Number:
Description:
Digital Attenuator, 50 Db, 6-bit, Ttl Driver, Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
![AT-110](/images/manufacturer_photos/0/6/687/tyco_electronics_tmb.jpg)
Part Number:
Description:
Voltage Variable Absorptive Attenuator, 30 Db 0.5 - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
![AT-113](/images/manufacturer_photos/0/6/687/tyco_electronics_tmb.jpg)
Part Number:
Description:
3 Volt Voltage Variable Absorptive Attenuator 40 Db, 0.5-2.0 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
![AT-210](/images/manufacturer_photos/0/6/687/tyco_electronics_tmb.jpg)
Part Number:
Description:
Digital Attenu A T O R, 15 Db, 4-bit Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
![AT-220](/images/manufacturer_photos/0/6/687/tyco_electronics_tmb.jpg)
Part Number:
Description:
Digital Attenuator, 30 Db, 4-bit Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
![AT-230](/images/manufacturer_photos/0/6/687/tyco_electronics_tmb.jpg)
Part Number:
Description:
Digital Attenuator, 28 Db, 3-bit Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
![AT-280](/images/manufacturer_photos/0/6/687/tyco_electronics_tmb.jpg)
Part Number:
Description:
Digital Attenuator, 15.5 Db, 5-bit Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
![AT-119TR](/images/manufacturer_photos/0/6/687/tyco_electronics_tmb.jpg)
Part Number:
Description:
2.25 Volt Voltage Variable Absorptive Attenuator - 40 dB/ 1.8.2.5 GHz
Manufacturer:
Tyco Electronics
Datasheet:
![AT-30511](/images/no-image3.png)
Part Number:
Description:
Low Current/ High Performance NPN Silicon Bipolar Transistor
Manufacturer:
Agilent(Hewlett-Packard)
Datasheet:
![AT-31033](/images/no-image3.png)
Part Number:
Description:
Low Current/ High Performance NPN Silicon Bipolar Transistor
Manufacturer:
Agilent(Hewlett-Packard)
Datasheet:
![AT-32011](/images/no-image3.png)
Part Number:
Description:
Low Current/ High Performance NPN Silicon Bipolar Transistor
Manufacturer:
Agilent(Hewlett-Packard)
Datasheet:
![AT-337](/images/manufacturer_photos/0/6/687/tyco_electronics_tmb.jpg)
Part Number:
Description:
(AT-332 / AT-337) Voltage Variable Absorptive Attenuator DC - 2 GHz
Manufacturer:
Tyco Electronics
Datasheet:
![AT-107](/images/manufacturer_photos/0/6/687/tyco_electronics_tmb.jpg)
Part Number:
Description:
Digital Attenuator, 31.5 Db, 6-bit, Ttl Driver, Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
![AT-119](/images/manufacturer_photos/0/6/687/tyco_electronics_tmb.jpg)
Part Number:
Description:
2.25 Volt Voltage Variable Absorptive Attenuator - 40 Db, 1.8.2.5 Ghz
Manufacturer:
Tyco Electronics
Datasheet:
![AT-232](/images/manufacturer_photos/0/6/687/tyco_electronics_tmb.jpg)
Part Number:
Description:
Digital Attenuator, 30 Db, 4-bit, Dc - 2 Ghz
Manufacturer:
Tyco Electronics
Datasheet: