ATMEGA165-16AI Atmel, ATMEGA165-16AI Datasheet - Page 180

IC AVR MCU 16K 16MHZ 64TQFP

ATMEGA165-16AI

Manufacturer Part Number
ATMEGA165-16AI
Description
IC AVR MCU 16K 16MHZ 64TQFP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheets

Specifications of ATMEGA165-16AI

Core Processor
AVR
Core Size
8-Bit
Speed
16MHz
Connectivity
SPI, UART/USART, USI
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
54
Program Memory Size
16KB (8K x 16)
Program Memory Type
FLASH
Eeprom Size
512 x 8
Ram Size
1K x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
64-TQFP, 64-VQFP
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATMEGA165-16AI
Manufacturer:
Atmel
Quantity:
10 000
2573G–AVR–07/09
Figure 80. Two-wire Mode, Typical Timing Diagram
Referring to the timing diagram (Figure 80.), a bus transfer involves the following steps:
1. The a start condition is generated by the Master by forcing the SDA low line while
2. In addition, the start detector will hold the SCL line low after the Master has
3. The Master set the first bit to be transferred and releases the SCL line (C). The
4. After eight bits are transferred containing slave address and data direction (read
5. If the Slave is addressed it holds the SDA line low during the acknowledgment
6. Multiple bytes can now be transmitted, all in same direction, until a stop condition
If the Slave is not able to receive more data it does not acknowledge the data byte it has
last received. When the Master does a read operation it must terminate the operation by
force the acknowledge bit low after the last byte transmitted.
Figure 81. Start Condition Detector, Logic Diagram
SDA
SCL
the SCL line is high (A). SDA can be forced low either by writing a zero to bit 7 of
the Shift Register, or by setting the corresponding bit in the PORT Register to
zero. Note that the Data Direction Register bit must be set to one for the output to
be enabled. The slave device’s start detector logic (Figure 81.) detects the start
condition and sets the USISIF Flag. The flag can generate an interrupt if
necessary.
forced an negative edge on this line (B). This allows the Slave to wake up from
sleep or complete its other tasks before setting up the Shift Register to receive
the address. This is done by clearing the start condition flag and reset the
counter.
Slave samples the data and shift it into the Serial Register at the positive edge of
the SCL clock.
or write), the Slave counter overflows and the SCL line is forced low (D). If the
slave is not the one the Master has addressed, it releases the SCL line and waits
for a new start condition.
cycle before holding the SCL line low again (i.e., the Counter Register must be
set to 14 before releasing SCL at (D)). Depending of the R/W bit the Master or
Slave enables its output. If the bit is set, a master read operation is in progress
(i.e., the slave drives the SDA line) The slave can hold the SCL line low after the
acknowledge (E).
is given by the Master (F). Or a new start condition is given.
Write( USISIF)
S
A B
C
ADDRESS
SDA
SCL
1 - 7
R/W
8
D
ACK
9
E
DATA
1 - 8
D Q
CLR
ACK
9
ATmega165/V
D Q
CLR
DATA
1 - 8
USISIF
CLOCK
HOLD
ACK
9
F
P
180

Related parts for ATMEGA165-16AI