209
8.5.3
Pin Functions
Port 4 pins also function as 14-bit PWM output pins (PWX1, PWX0), 8-bit timer 0 and 1
(TMR0, TMR1) I/O pins (TMCI0, TMRI0, TMO0, TMCI1, TMRI1, TMO1), timer connection
I/O pins (CSYNCI, HSYNCI, HSYNCO), SCI2 I/O pins (TxD2, RxD2, SCK2), IrDA interface
I/O pins (IrTxD, IrRxD), host interface output pins (HIRQ12, HIRQ1, HIRQ11), and the IIC1
I/O pin (SDA1). The port 4 pin functions are shown in table 8.10.
Table 8.10 Port 4 Pin Functions
Pin
Selection Method and Pin Functions
P47/PWX1
The pin function is switched as shown below according to the combination of bit OEB in
DACR of 14-bit PWM, and bit P47DDR.
OEB
0
1
P47DDR
0
1
—
Pin function
P47 input pin
P47 output pin
PWX1 output pin
P46/PWX0
The pin function is switched as shown below according to the combination of bit OEA in
DACR of 14-bit PWM, and bit P46DDR.
OEA
0
1
P46DDR
0
1
—
Pin function
P46 input pin
P46 output pin
PWX0 output pin
P45/TMRI1/
HIRQ12/CSYNCI
The pin function is switched as shown below according to the combination of the operating
mode and bit P45DDR.
P45DDR
0
1
Operating
mode
—
Not slave mode
Slave mode
Pin function
P45 input pin
P45 output pin
HIRQ12 output pin
TMRI1 input pin, CSYNCI input pin
When bits CCLR1 and CCLR0 in TCR1 of TMR1 are set to 1, this pin is used as the
TMRI1 input pin. It can also be used as the CSYNCI input pin.
P44/TMO1/
HIRQ1/HSYNCO
The pin function is switched as shown below according to the combination of the operating
mode, bits OS3 to OS0 in TCSR of TMR1, bit HOE in TCONRO of the timer connection
function, and bit P44DDR.
HOE
0
1
OS3 to OS0
All 0
Not all 0
—
P44DDR
0
1
—
Operating
mode
—
Not slave
mode
Slave
mode
——
Pin function
P44
input pin
P44
output pin
HIRQ1 output
pin
TMO1 output
pin
HSYNCO
output pin