Datasheet

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