Table 7.20 Port A Pin Functions (Modes 3 to 5)
Pin
Pin Functions and Selection Method
PA
/TP
/
Modes 3 and 4: Always used as A
7
7
TIOCB
/ A
Pin function
2
20
Mode 5: Bit PWM2 in TMDR, bits IOB2 to IOB0 in TIOR2, bit NDER7 in NDERA, bit
A20E in BRCR, and bit PA
A20E
16-bit timer
channel 2 settings
PA
DDR
7
NDER7
Pin function
Note: * TIOCB
16-bit timer channel 2 settings
IOB2
IOB1
IOB0
206
20
DDR select the pin function as follows.
7
(1) in table below
—
—
TIOCB
output
2
input when IOB2 = 1 and PWM2 = 0.
2
output.
A
output
20
1
(2) in table below
0
1
—
0
PA
PA
7
input
output
TIOCB
2
(2)
0
0
0
0
1
0
—
1
—
1
—
TP
A
7
7
output
output
input *
(1)
(2)
1
1
—
—
—
20