English
Language : 

ATMEGA8_14 Datasheet, PDF (65/331 Pages) ATMEL Corporation – High-performance, Low-power Atmel
ATmega8(L)
Register Description for I/O Ports
The Port B Data
Register – PORTB
Bit
Read/Write
Initial Value
7
PORTB7
R/W
0
6
PORTB6
R/W
0
5
PORTB5
R/W
0
4
PORTB4
R/W
0
3
PORTB3
R/W
0
2
PORTB2
R/W
0
1
PORTB1
R/W
0
0
PORTB0
R/W
0
PORTB
The Port B Data
Direction Register –
DDRB
Bit
Read/Write
Initial Value
7
DDB7
R/W
0
6
DDB6
R/W
0
5
DDB5
R/W
0
4
DDB4
R/W
0
3
DDB3
R/W
0
2
DDB2
R/W
0
1
DDB1
R/W
0
0
DDB0
R/W
0
DDRB
The Port B Input Pins
Address – PINB
Bit
Read/Write
Initial Value
7
PINB7
R
N/A
6
PINB6
R
N/A
5
PINB5
R
N/A
4
PINB4
R
N/A
3
PINB3
R
N/A
2
PINB2
R
N/A
1
PINB1
R
N/A
0
PINB0
R
N/A
PINB
The Port C Data
Register – PORTC
Bit
Read/Write
Initial Value
7
6
5
4
3
2
1
0
–
PORTC6 PORTC5 PORTC4 PORTC3 PORTC2 PORTC1 PORTC0 PORTC
R
R/W
R/W
R/W
R/W
R/W
R/W
R/W
0
0
0
0
0
0
0
0
The Port C Data
Direction Register –
DDRC
Bit
7
6
5
4
3
2
1
0
–
DDC6
DDC5
DDC4
DDC3
DDC2
DDC1
DDC0
DDRC
Read/Write
R
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
0
0
0
0
0
0
0
0
The Port C Input Pins
Address – PINC
Bit
7
6
5
4
3
2
1
0
–
PINC6 PINC5 PINC4 PINC3 PINC2 PINC1 PINC0
PINC
Read/Write
R
R
R
R
R
R
R
R
Initial Value
0
N/A
N/A
N/A
N/A
N/A
N/A
N/A
The Port D Data
Register – PORTD
Bit
Read/Write
Initial Value
7
PORTD7
R/W
0
6
PORTD6
R/W
0
5
PORTD5
R/W
0
4
PORTD4
R/W
0
3
PORTD3
R/W
0
2
PORTD2
R/W
0
1
PORTD1
R/W
0
0
PORTD0
R/W
0
PORTD
The Port D Data
Direction Register –
DDRD
Bit
Read/Write
Initial Value
7
DDD7
R/W
0
6
DDD6
R/W
0
5
DDD5
R/W
0
4
DDD4
R/W
0
3
DDD3
R/W
0
2
DDD2
R/W
0
1
DDD1
R/W
0
0
DDD0
R/W
0
DDRD
The Port D Input Pins
Address – PIND
Bit
Read/Write
Initial Value
7
PIND7
R
N/A
6
PIND6
R
N/A
5
PIND5
R
N/A
4
PIND4
R
N/A
3
PIND3
R
N/A
2
PIND2
R
N/A
1
PIND1
R
N/A
0
PIND0
R
N/A
PIND
65
2486AA–AVR–02/2013