ATMEGA328P-20PU Atmel, ATMEGA328P-20PU Datasheet - Page 89

no-image

ATMEGA328P-20PU

Manufacturer Part Number
ATMEGA328P-20PU
Description
Manufacturer
Atmel
Datasheet

Specifications of ATMEGA328P-20PU

Cpu Family
ATmega
Device Core
AVR
Device Core Size
8b
Frequency (max)
20MHz
Interface Type
SPI/TWI/USART
Program Memory Type
Flash
Program Memory Size
32KB
Total Internal Ram Size
2KB
# I/os (max)
23
Number Of Timers - General Purpose
3
Operating Supply Voltage (typ)
3.3/5V
Operating Supply Voltage (max)
5.5V
Operating Supply Voltage (min)
2.7V
On-chip Adc
6-chx10-bit
Instruction Set Architecture
RISC
Operating Temp Range
-40C to 85C
Operating Temperature Classification
Industrial
Mounting
Through Hole
Pin Count
28
Package Type
PDIP
Lead Free Status / Rohs Status
Compliant
13.4
13.4.1
13.4.2
13.4.3
13.4.4
13.4.5
13.4.6
13.4.7
8025K–AVR–10/09
Register Description
MCUCR – MCU Control Register
PORTB – The Port B Data Register
DDRB – The Port B Data Direction Register
PINB – The Port B Input Pins Address
PORTC – The Port C Data Register
DDRC – The Port C Data Direction Register
PINC – The Port C Input Pins Address
• Bit 4 – PUD: Pull-up Disable
When this bit is written to one, the pull-ups in the I/O ports are disabled even if the DDxn and
PORTxn Registers are configured to enable the pull-ups ({DDxn, PORTxn} = 0b01). See
figuring the Pin” on page 73
Bit
0x35 (0x55)
Read/Write
Initial Value
Bit
0x05 (0x25)
Read/Write
Initial Value
Bit
0x04 (0x24)
Read/Write
Initial Value
Bit
0x03 (0x23)
Read/Write
Initial Value
Bit
0x08 (0x28)
Read/Write
Initial Value
Bit
0x07 (0x27)
Read/Write
Initial Value
Bit
0x06 (0x26)
Read/Write
Initial Value
PORTB7
PINB7
DDB7
R/W
R/W
N/A
R
7
0
R
R
R
R
7
0
7
0
7
7
0
7
0
7
0
PORTB6
PORTC6
PINB6
PINC6
BODS
DDB6
DDC6
R/W
R/W
R/W
R/W
N/A
N/A
R
R
R
6
0
6
0
6
6
0
6
0
6
6
0
for more details about this feature.
PORTB5
PORTC5
PINB5
PINC5
DDB5
DDC5
BODSE
R/W
R/W
R/W
R/W
N/A
N/A
R
R
5
0
5
0
5
5
0
5
0
5
R
5
0
PORTB4
PORTC4
PINB4
PINC4
DDB4
DDC4
R/W
R/W
R/W
R/W
N/A
N/A
R
R
4
0
4
0
4
4
0
4
0
4
PUD
R/W
4
0
PORTB3
PORTC3
PINB3
PINC3
DDB3
DDC3
R/W
R/W
R/W
R/W
N/A
N/A
R
R
3
0
3
0
3
3
0
3
0
3
ATmega48P/88P/168P
R
3
0
PORTB2
PORTC2
PINB2
PINC2
DDB2
DDC2
R/W
R/W
R/W
R/W
N/A
N/A
R
R
2
0
2
0
2
2
0
2
0
2
R
2
0
PORTB1
PORTC1
PINB1
PINC1
DDB1
DDC1
IVSEL
R/W
R/W
R/W
R/W
N/A
N/A
R/W
R
R
1
0
1
0
1
1
0
1
0
1
1
0
PORTB0
PORTC0
PINB0
PINC0
DDB0
DDC0
IVCE
R/W
R/W
R/W
R/W
R/W
N/A
N/A
R
R
0
0
0
0
0
0
0
0
0
0
0
0
MCUCR
PORTB
PORTC
DDRB
DDRC
PINB
PINC
”Con-
89

Related parts for ATMEGA328P-20PU