ATMEGA329P-20AN Atmel, ATMEGA329P-20AN Datasheet - Page 206

IC MCU AVR 32K 20MHZ 64TQFP

ATMEGA329P-20AN

Manufacturer Part Number
ATMEGA329P-20AN
Description
IC MCU AVR 32K 20MHZ 64TQFP
Manufacturer
Atmel
Series
AVR® ATmegar
Datasheets

Specifications of ATMEGA329P-20AN

Core Processor
AVR
Core Size
8-Bit
Speed
20MHz
Connectivity
SPI, UART/USART, USI
Peripherals
Brown-out Detect/Reset, LCD, POR, PWM, WDT
Number Of I /o
54
Program Memory Size
32KB (16K x 16)
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
2K 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
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATMEGA329P-20AN
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATMEGA329P-20ANR
Manufacturer:
Atmel
Quantity:
10 000
20.5
20.5.1
20.5.2
8021G–AVR–03/11
Register Description
USIDR – USI Data Register
USISR – USI Status Register
The USI uses no buffering of the Serial Register, i.e., when accessing the Data Register
(USIDR) the Serial Register is accessed directly. If a serial clock occurs at the same cycle the
register is written, the register will contain the value written and no shift is performed. A (left) shift
operation is performed depending of the USICS1...0 bits setting. The shift operation can be con-
trolled by an external clock edge, by a Timer/Counter0 Compare Match, or directly by software
using the USICLK strobe bit. Note that even when no wire mode is selected (USIWM1...0 = 0)
both the external data input (DI/SDA) and the external clock input (USCK/SCL) can still be used
by the Shift Register.
The output pin in use, DO or SDA depending on the wire mode, is connected via the output latch
to the most significant bit (bit 7) of the Data Register. The output latch is open (transparent) dur-
ing the first half of a serial clock cycle when an external clock source is selected (USICS1 = 1),
and constantly open when an internal clock source is used (USICS1 = 0). The output will be
changed immediately when a new MSB written as long as the latch is open. The latch ensures
that data input is sampled and data output is changed on opposite clock edges.
Note that the corresponding Data Direction Register to the pin must be set to one for enabling
data output from the Shift Register.
The Status Register contains Interrupt Flags, line Status Flags and the counter value.
• Bit 7 – USISIF: Start Condition Interrupt Flag
When Two-wire mode is selected, the USISIF Flag is set (to one) when a start condition is
detected. When output disable mode or Three-wire mode is selected, the flag is set when the 4-
bit counter is incremented.
An interrupt will be generated when the flag is set while the USISIE bit in USICR and the Global
Interrupt Enable Flag are set. The flag will only be cleared by writing a logical one to the USISIF
bit. Clearing this bit will release the start detection hold of USCL in Two-wire mode. A start con-
dition interrupt will wake up the processor from all sleep modes.
• Bit 6 – USIOIF: Counter Overflow Interrupt Flag
This flag is set (one) when the 4-bit counter overflows (i.e., at the transition from 15 to 0). An
interrupt will be generated when the flag is set while the USIOIE bit in USICR and the Global
Interrupt Enable Flag are set. The flag will only be cleared if a one is written to the USIOIF bit.
Clearing this bit will release the counter overflow hold of SCL in Two-wire mode. A counter over-
flow interrupt will wake up the processor from Idle sleep mode.
Bit
(0xBA)
Read/Write
Initial Value
Bit
(0xB9)
Read/Write
Initial Value
USISIF
R/W
MSB
7
0
R/W
7
0
USIOIF
R/W
6
0
R/W
6
0
USIPF
R/W
5
0
R/W
5
0
USIDC
R
4
0
R/W
4
0
USICNT3
R/W
3
0
R/W
3
0
ATmega329P/3290P
USICNT2
R/W
2
0
R/W
2
0
USICNT1
R/W
R/W
1
0
1
0
USICNT0
LSB
R/W
R/W
0
0
0
0
USIDR
USISR
206

Related parts for ATMEGA329P-20AN