ATmega168 Automotive Atmel Corporation, ATmega168 Automotive Datasheet - Page 220

no-image

ATmega168 Automotive

Manufacturer Part Number
ATmega168 Automotive
Description
Manufacturer
Atmel Corporation

Specifications of ATmega168 Automotive

Flash (kbytes)
16 Kbytes
Pin Count
32
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
16
Hardware Qtouch Acquisition
No
Max I/o Pins
23
Ext Interrupts
24
Usb Speed
No
Usb Interface
No
Spi
2
Twi (i2c)
1
Uart
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
8
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
No
Crypto Engine
No
Sram (kbytes)
1
Eeprom (bytes)
512
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 150
I/o Supply Class
2.7 to 5.5
Operating Voltage (vcc)
2.7 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
3
Output Compare Channels
6
Input Capture Channels
1
Pwm Channels
6
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes
220
ATmega48/88/168 Automotive
After a repeated START condition (state 0x10) the 2-wire Serial Interface can access the same
Slave again, or a new Slave without transmitting a STOP condition. Repeated START enables
the Master to switch between Slaves, Master Transmitter mode and Master Receiver mode with-
out losing control of the bus.
Table 19-3.
Status
Code
(TWSR)
Prescaler
Bits
are 0
0x08
0x10
0x18
0x20
0x28
0x30
0x38
Status of the 2-wire Se-
rial Bus and 2-wire Seri-
al Interface Hardware
A START condition has
been transmitted
A
condition
transmitted
SLA+W
transmitted;
ACK has been received
SLA+W
transmitted;
NOT ACK has been re-
ceived
Data byte has been
transmitted;
ACK has been received
Data byte has been
transmitted;
NOT ACK has been re-
ceived
Arbitration
SLA+W or data bytes
Status codes for Master Transmitter Mode
repeated
has
has
has
lost
START
been
been
been
in
To/from
TWDR
Load SLA+W
Load SLA+W
or
Load SLA+R
Load
byte or
No TWDR ac-
tion or
No TWDR ac-
tion or
No TWDR ac-
tion
Load
byte or
No TWDR ac-
tion or
No TWDR ac-
tion or
No TWDR ac-
tion
Load
byte or
No TWDR ac-
tion or
No TWDR ac-
tion or
No TWDR ac-
tion
Load
byte or
No TWDR ac-
tion or
No TWDR ac-
tion or
No TWDR ac-
tion
No TWDR ac-
tion or
No TWDR ac-
tion
Application Software Response
data
data
data
data
ST
A
0
0
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
ST
O
To TWCR
0
0
0
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
TWI
NT
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
TW
EA
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
Next Action Taken by TWI Hardware
SLA+W will be transmitted;
ACK or NOT ACK will be received
SLA+W will be transmitted;
ACK or NOT ACK will be received
SLA+R will be transmitted;
Logic will switch to Master Receiver mode
Data byte will be transmitted and ACK or
NOT ACK will be received
Repeated START will be transmitted
STOP condition will be transmitted and
TWSTO Flag will be reset
STOP condition followed by a START con-
dition will be transmitted and TWSTO Flag
will be reset
Data byte will be transmitted and ACK or
NOT ACK will be received
Repeated START will be transmitted
STOP condition will be transmitted and
TWSTO Flag will be reset
STOP condition followed by a START con-
dition will be transmitted and TWSTO Flag
will be reset
Data byte will be transmitted and ACK or
NOT ACK will be received
Repeated START will be transmitted
STOP condition will be transmitted and
TWSTO Flag will be reset
STOP condition followed by a START con-
dition will be transmitted and TWSTO Flag
will be reset
Data byte will be transmitted and ACK or
NOT ACK will be received
Repeated START will be transmitted
STOP condition will be transmitted and
TWSTO Flag will be reset
STOP condition followed by a START con-
dition will be transmitted and TWSTO Flag
will be reset
2-wire Serial Bus will be released and not
addressed Slave mode entered
A START condition will be transmitted
when the bus becomes free
7530I–AVR–02/10

Related parts for ATmega168 Automotive