Pin
Selection Method and Pin Functions
P20/TIOCA3
Switches as follows according to the combinations of the TPU channel 3
setting made using bits MD3 to MD0 of TMDR3, bits IOA3 to IOA0 of TIOR3L,
and bits CCR2 to CCR0 of TCR3, as well as the P20DDR bit.
TPU Channel
3 Setting
P20DDR
Pin function
TPU Channel
0 Setting
MD3 to MD0
IOA3 to IOA0
CCLR2 to
CCLR0
Output
function
Note: * TIOCB3 output prohibited.
Table Below (1)
—
TIOCA3 output
(2)
(1)
B'0000
B'0000
B'0001 to
B'0011
B'0100
B'0101 to
B'1xxx
B'0111
—
—
—
Output
compare
output
Table Below (2)
0
P20 input
TIOCA3 input
(2)
(1)
B'001x
B'0010
B'xx00
Other than B'xx00
—
—
—
PWM
mode 1
mode 2
output *
1
P20 output
(1)
(2)
B'0011
Other
B'001
than
B'001
PWM
—
output
241