Table 9-19 Port A Pin Functions (cont)
Pin
Pin Functions and Selection Method
PA
2
/TP
2
/
ITU channel 0 settings (bit PWM0 in TMDR and bits IOA2 to IOA0 in TIOR0), bits
TIOCA
0
/
TPSC2 to TPSC0 in TCR4 to TCR0, bit NDER2 in NDERA, and bit PA
2
DDR in PADDR
TCLKC
select the pin function as follows
ITU channel 0
settings
(1) in table below
(2) in table below
PA
2
DDR
—
0
1
1
NDER2
—
—
0
1
Pin function
TIOCA
0
output
PA
2
input PA
2
output TP
2
output
TIOCA
0
input
*
1
TCLKC input
*
2
Notes: 1. TIOCA
0
input when IOA2 = 1.
2. TCLKC input when TPSC2 = TPSC1 = 1 and TPSC0 = 0 in any of TCR4 to
TCR0.
ITU channel 0
settings
(2)
(1)
(2)
(1)
PWM0
0
1
IOA2
0
1
—
IOA1
0
0
1
—
—
IOA0
0
1
—
—
—
282
www.DataSheet4U.com