166
7.10.3 Pin Functions
The port A pins are also used for TPC output (TP
7
to TP
0
), ITU input/output (TIOCB
2
to TIOCB
0
,
TIOCA
2
to TIOCA
0
) and input (TCLKD, TCLKC, TCLKB, TCLKA), and as address bus pins
(A
23
to A
20
). Table 7-16 describes the selection of pin functions.
Table 7-16 Port A Pin Functions
Pin
Pin Functions and Selection Method
PA
7
/TP
7
/
TIOCB
2
/A
20
The mode setting, ITU channel 2 settings (bit PWM2 in TMDR and bits IOB2 to IOB0
in TIOR2), bit NDER7 in NDERA, and bit PA
7
DDR in PADDR select the pin function
as follows
Mode
1, 5 and 7
3 and 6
ITU channel 2
settings
(1) in table below
(2) in table below
—
PA
7
DDR
—
0
1
1
—
NDER7
—
—
0
1
—
Pin function
TIOCB
2
output
PA
7
input
PA
7
output
TP
7
output
A
20
output
TIOCB
2
input
*
Note:
*
TIOCB
2
input when IOB2 = 1 and PWM2 = 0.
ITU channel 2
settings
(2)
(1)
(2)
IOB2
0
1
IOB1
0
0
1
—
IOB0
0
1
—
—