10.4
Register Description for I/O Ports
10.4.1
The Port B Data Register – PORTB
10.4.2
The Port B Data Direction Register – DDRB
10.4.3
The Port B Input Pins Address – PINB
10.4.4
The Port C Data Register – PORTC
10.4.5
The Port C Data Direction Register – DDRC
10.4.6
The Port C Input Pins Address – PINC
10.4.7
The Port D Data Register – PORTD
10.4.8
The Port D Data Direction Register – DDRD
2545E–AVR–02/05
Bit
7
PORTB7
PORTB6
Read/Write
R/W
R/W
Initial Value
0
Bit
7
DDB7
DDB6
Read/Write
R/W
R/W
Initial Value
0
Bit
7
PINB7
PINB6
Read/Write
R
Initial Value
N/A
N/A
Bit
7
–
PORTC6
Read/Write
R
R/W
Initial Value
0
Bit
7
–
DDC6
Read/Write
R
R/W
Initial Value
0
Bit
7
–
PINC6
Read/Write
R
Initial Value
0
N/A
Bit
7
PORTD7
PORTD6
Read/Write
R/W
R/W
Initial Value
0
Bit
7
DDD7
DDD6
Read/Write
R/W
R/W
Initial Value
0
6
5
4
PORTB5
PORTB4
R/W
R/W
0
0
0
6
5
4
DDB5
DDB4
R/W
R/W
0
0
0
6
5
4
PINB5
PINB4
R
R
R
N/A
N/A
6
5
4
PORTC5
PORTC4
R/W
R/W
0
0
0
6
5
4
DDC5
DDC4
R/W
R/W
0
0
0
6
5
4
PINC5
PINC4
R
R
R
N/A
N/A
6
5
4
PORTD5
PORTD4
R/W
R/W
0
0
0
6
5
4
DDD5
DDD4
R/W
R/W
0
0
0
ATmega48/88/168
3
2
1
PORTB3
PORTB2
PORTB1
R/W
R/W
R/W
0
0
0
3
2
1
DDB3
DDB2
DDB1
R/W
R/W
R/W
0
0
0
3
2
1
PINB3
PINB2
PINB1
R
R
R
N/A
N/A
N/A
3
2
1
PORTC3
PORTC2
PORTC1
R/W
R/W
R/W
0
0
0
3
2
1
DDC3
DDC2
DDC1
R/W
R/W
R/W
0
0
0
3
2
1
PINC3
PINC2
PINC1
R
R
R
N/A
N/A
N/A
3
2
1
PORTD3
PORTD2
PORTD1
R/W
R/W
R/W
0
0
0
3
2
1
DDD3
DDD2
DDD1
R/W
R/W
R/W
0
0
0
0
PORTB0
PORTB
R/W
0
0
DDB0
DDRB
R/W
0
0
PINB0
PINB
R
N/A
0
PORTC0
PORTC
R/W
0
0
DDC0
DDRC
R/W
0
0
PINC0
PINC
R
N/A
0
PORTD0
PORTD
R/W
0
0
DDD0
DDRD
R/W
0
81
Need help?
Do you have a question about the ATmega48/V and is the answer not in the manual?