ATmega128(L)
Port F Data Direction
Register – DDRF
Bit
7
DDF7
R/W
0
6
DDF6
R/W
0
5
DDF5
R/W
0
4
DDF4
R/W
0
3
DDF3
R/W
0
2
DDF2
R/W
0
1
0
DDF1
R/W
0
DDF0
R/W
0
DDRF
Read/Write
Initial Value
Port F Input Pins
Address – PINF
Bit
7
PINF7
R
6
PINF6
R
5
PINF5
R
4
PINF4
R
3
PINF3
R
2
PINF2
R
1
PINF1
R
0
PINF0
R
PINF
Read/Write
Initial Value
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
Note that PORTF and DDRF Registers are not available in ATmega103 compatibility mode
where Port F serves as digital input only.
Port G Data Register –
PORTG
Bit
7
–
6
–
5
–
4
PORTG4
R/W
0
3
PORTG3
R/W
0
2
PORTG2
R/W
0
1
PORTG1
R/W
0
0
PORTG0
R/W
0
PORTG
DDRG
PING
Read/Write
Initial Value
R
0
R
0
R
0
Port G Data Direction
Register – DDRG
Bit
7
–
6
–
5
–
4
DDG4
R/W
0
3
DDG3
R/W
0
2
DDG2
R/W
0
1
DDG1
R/W
0
0
DDG0
R/W
0
Read/Write
Initial Value
R
0
R
0
R
0
Port G Input Pins
Address – PING
Bit
7
–
6
–
5
–
4
PING4
R
3
PING3
R
2
PING2
R
1
PING1
R
0
PING0
R
Read/Write
Initial Value
R
0
R
0
R
0
N/A
N/A
N/A
N/A
N/A
Note that PORTG, DDRG, and PING are not available in ATmega103 compatibility mode. In the
ATmega103 compatibility mode Port G serves its alternate functions only (TOSC1, TOSC2, WR,
RD and ALE).
89
2467P–AVR–08/07