Table 9-19 Port A Pin Functions (cont)
Pin
PA
6
/TP
6
/
TIOCA
2
/
A
21
/
CS
4
Pin Functions and Selection Method
The mode setting, bit A
21
E in BRCR, bit CS4E in CSCR, ITU channel 2 settings (bit
PWM2 in TMDR and bits IOA2 to IOA0 in TIOR2), bit NDER6 in NDERA, and bit
PA
6
DDR in PADDR select the pin function as follows
Mode
CS4E
A
21
E
ITU
channel 2
settings
PA
6
DDR
NDER
6
Pin
function
1, 2, 5
0
—
(2) in table
below
3, 4, 6
0
7
—
—
(2) in table
below
1
—
—
1
—
—
1
(2) in table
below
0
—
(1) in
table
below
—
—
TIOCA
PA
6
output input
output output output
output input
output output output output
output input
output output
TIOCA
2
input
*
TIOCA
2
input
*
(1) in
table
below
—
—
(1) in
table
below
—
—
0
—
1
0
1
1
—
—
0
—
1
0
1
1
—
—
A
21
—
—
CS
4
TIOCA
PA
6
0
—
1
0
1
1
PA
6
TP
6
CS
4
TIOCA
PA
6
PA
6
TP
6
PA
6
TP
6
TIOCA
2
input
*
Note:
*
TIOCA
2
input when IOA2 = 1.
ITU channel 2
settings
PWM2
IOA2
IOA1
IOA0
(2)
(1)
0
(2)
(1)
1
—
—
—
0
0
1
1
—
—
0
0
1
—
PA
5
/TP
5
/
TIOCB
1
/
A
22
/
CS
5
The mode setting, bit A
22
E in BRCR, bit CS5E in CSCR, ITU channel 1 settings (bit
PWM1 in TMDR and bits IOB2 to IOB0 in TIOR1), bit NDER5 in NDERA, and bit
PA
5
DDR in PADDR select the pin function as follows
Mode
CS5E
A
22
E
ITU
channel 1
settings
PA
5
DDR
NDER
5
Pin
function
1, 2, 5
0
—
(2) in table
below
3, 4, 6
0
7
—
—
(2) in table
below
1
—
—
1
—
—
1
(2) in table
below
0
—
(1) in
table
below
—
—
TIOCB
PA
5
output input
output output output
output input
output output output output
output input
output output
TIOCB
1
input
*
TIOCB
1
input
*
(1) in
table
below
—
—
(1) in
table
below
—
—
0
—
1
0
1
1
—
—
0
—
1
0
1
1
—
—
A
22
—
—
CS
5
TIOCB
PA
5
0
—
1
0
1
1
PA
5
TP
5
CS
5
TIOCB
PA
5
PA
5
TP
5
PA
5
TP
5
TIOCB
1
input
*
Note:
*
TIOCB
1
input when IOB2 = 1 and PWM1 = 0.
ITU channel 1
settings
IOB2
IOB1
IOB0
(2)
(1)
(2)
1
—
—
0
0
0
0
1
1
—
280