Pin
Selection Method and Pin Functions
P25/TIOCB4
Switches as follows according to the combinations of the TPU channel 4
setting made using bits MD3 to MD0 of TMDR4, bits IOB3 to IOB0 of TIOR4,
and bits CCR1 and CCR0 of TCR4, as well as the P25DDR bit.
TPU Channel
4 Setting
P25DDR
Pin function
TPU Channel
4 Setting
MD3 to MD0
IOB3 to IOB0
CCLR1,
CCLR0
Output
function
236
Table Below (1)
—
TIOCB4 output
(2)
(1)
B'0000, B'01xx
B'0000
B'0001 to
B'0011
B'0100
B'0101 to
B'1xxx
B'0111
—
—
—
Output
compare
output
Table Below (2)
0
P25 input
TIOCB4 input
(2)
(2)
B'0010
B'0011
—
B'xx00
Other than B'xx00
—
—
—
—
mode 2
1
P25 output
(1)
(2)
Other
B'10
than
B'10
PWM
—
output