Table 7.19 Port A Pin Functions (Modes 1, 2, 6, and 7)
Pin
Pin Functions and Selection Method
PA
/TP
/
Bit PWM2 in TMDR, bits IOB2 to IOB0 in TIOR2, bit NDER7 in NDERA, and bit
7
7
TIOCB
PA 7 DDR select the pin function as follows.
2
16-bit timer
channel 2 settings
PA
DDR
7
NDER7
Pin function
Note: * TIOCB
16-bit timer
channel 2 settings
IOB2
IOB1
IOB0
PA
/TP
/
Bit PWM2 in TMDR, bits IOA2 to IOA0 in TIOR2, bit NDER6 in NDERA, and bit
6
6
TIOCA
PA
DDR select the pin function as follows.
2
6
16-bit timer
channel 2 settings
PA
DDR
6
NDER6
Pin function
Note: * TIOCA
16-bit timer
channel 2 settings
PWM2
IOA2
IOA1
IOA0
204
(1) in table below
—
—
TIOCB
2
input when IOB2 = 1 and PWM2 = 0.
2
(2)
0
0
0
(1) in table below
—
—
TIOCA
2
input when IOA2 = 1.
2
(2)
0
0
0
0
1
0
—
output
PA
input
(1)
0
1
1
—
0
—
output
PA
input
(1)
0
1
—
(2) in table below
1
1
0
1
PA
TP
7
7
output
output
input *
TIOCB
2
(2)
1
—
—
(2) in table below
1
1
0
1
PA
TP
6
6
output
output
input *
TIOCA
2
(2)
(1)
1
1
—
—
—
—
—
7
6