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