Datasheet

87
2490R–AVR–02/2013
ATmega64(L)
Register
Description for I/O
Ports
PORTA – Port A Data
Register
DDRA – Port A Data
Direction Register
PINA – Port A Input
Pins Address
PORTB – Port B Data
Register
DDRB – Port B Data
Direction Register
PINB – Port B Input
Pins Address
PORTC – Port C Data
Register
DDRC – Port C Data
Direction Register
Bit 76543210
0x1B (0x3B)
PORTA7 PORTA6 PORTA5 PORTA4 PORTA3 PORTA2 PORTA1 PORTA0 PORTA
Read/WriteR/WR/WR/WR/WR/WR/WR/WR/W
Initial Value00000000
Bit 76543210
0x1A (0x3A) DDA7 DDA6 DDA5 DDA4 DDA3 DDA2 DDA1 DDA0 DDRA
Read/WriteR/WR/WR/WR/WR/WR/WR/WR/W
Initial Value00000000
Bit 76543210
0x19 (0x39) PINA7 PINA6 PINA5 PINA4 PINA3 PINA2 PINA1 PINA0 PINA
Read/WriteRRRRRRRR
Initial Value N/A N/A N/A N/A N/A N/A N/A N/A
Bit 76543210
0x18 (0x38)
PORTB7 PORTB6 PORTB5 PORTB4 PORTB3 PORTB2 PORTB1 PORTB0 PORTB
Read/WriteR/WR/WR/WR/WR/WR/WR/WR/W
Initial Value00000000
Bit 76543210
0x17 (0x37) DDB7 DDB6 DDB5 DDB4 DDB3 DDB2 DDB1 DDB0 DDRB
Read/WriteR/WR/WR/WR/WR/WR/WR/WR/W
Initial Value00000000
Bit 76543210
0x16 (0x36) 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
0x15 (0x35)
PORTC7 PORTC6 PORTC5 PORTC4 PORTC3 PORTC2 PORTC1 PORTC0 PORTC
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value00000000
Bit 76543210
0x14 (0x34) DDC7 DDC6 DDC5 DDC4 DDC3 DDC2 DDC1 DDC0 DDRC
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value00000000