Table 9-19 Port A Pin Functions (cont)
Pin
Pin Functions and Selection Method
PA
4
/TP
4
/
The mode setting, bit A
23
E in BRCR, bit CS6E in CSCR, ITU channel 1 settings (bit
TIOCA
1
/
PWM1 in TMDR and bits IOA2 to IOA0 in TIOR1), bit NDER4 in NDERA, and bit
A
23
/
CS
6
PA
4
DDR in PADDR select the pin function as follows
Mode
1, 2, 5
3, 4, 6
7
CS6E
0
1
0
1
—
A
23
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
4
DDR
—
0
1
1
—
—
0
1
1
—
—
—
0
1
1
NDER
4
—
—
0
1
—
—
—
0
1
—
—
—
—
0
1
Pin TIOCA
1
PA
4
PA
4
TP
4
CS
6
TIOCA
1
PA
4
PA
4
TP
4
A
23
CS
6
TIOCA
1
PA
4
PA
4
TP
4
function
output input
output output output
output input
output output output output
output input
output output
TIOCA
1
input
*
TIOCA
1
input
*
TIOCA
1
input
*
Note:
*
TIOCA1 input when IOA2 = 1.
ITU channel 1
settings
(2)
(1)
(2)
(1)
PWM1
0
1
IOA2
0
1
—
IOA1
0
0
1
—
—
IOA0
0
1
—
—
—
PA
3
/TP
3
/
ITU channel 0 settings (bit PWM0 in TMDR and bits IOB2 to IOB0 in TIOR0), bits
TIOCB
0
/
TPSC2 to TPSC0 in TCR4 to TCR0, bit NDER3 in NDERA, and bit PA
3
DDR in PADDR
TCLKD
select the pin function as follows
ITU channel 0
settings
(1) in table below
(2) in table below
PA
3
DDR
—
0
1
1
NDER3
—
—
0
1
Pin function
TIOCB
0
output
PA
3
input PA
3
output TP
3
output
TIOCB
0
input
*
1
TCLKD input
*
2
Notes: 1. TIOCB
0
input when IOB2 = 1 and PWM0 = 0.
2. TCLKD input when TPSC2 = TPSC1 = TPSC0 = 1 in any of TCR4 to TCR0.
ITU channel 0
settings
(2)
(1)
(2)
IOB2
0
1
IOB1
0
0
1
—
IOB0
0
1
—
—
281
www.DataSheet4U.com