
R8C/3JM Group
7. I/O Ports
R01UH0285EJ0100 Rev.1.00
Aug 08, 2011
7.
I/O Ports
There are 31 I/O ports P0_1 to P0_4, P0_6, P0_7, P1, P2_0 to P2_5, P3_1, P3_3 to P3_5, P3_7, P4_3 to P4_7, and
P6_6 (P4_3 and P4_4 can be used as I/O ports if the XCIN clock oscillation circuit is not used. P4_6 and P4_7 can be
used as I/O ports if the XIN clock oscillation circuit is not used.).
If the A/D converter and the D/A converter are not used, P4_2 can be used as an input-only port.
Notes:
1. In input mode, whether an internal pull-up resistor is connected or not can be selected by registers PUR0 and
PUR1.
2. Whether the drive capacity of the output transistor is set to low or high can be selected using registers P1DRR
and P2DRR.
3. Whether the drive capacity of the output transistor is set to low or high can be selected using registers DRR0
and DRR1.
4. The input threshold value can be selected among three voltage levels (0.35 VCC, 0.50 VCC, and 0.70 VCC)
using registers VLT0 and VLT1.
5. When the XCIN clock oscillation circuit is not used, these ports can be used as an I/O ports.
6. When the XIN clock oscillation circuit is not used, these ports can be used as I/O ports.
7. When the A/D converter and the D/A converter are not used, this port can be used as an input-only ports.
Table 7.1
Overview of I/O Ports
Ports
I/O
Type of Output
I/O Setting
Internal Pull-Up
Resister
Drive Capacity
Switch
Input Level Switch
P0_1 to P0_3
I/O
Set in 1-bit units Set in 3-bit units
(1) Set in 3-bit units
(3) Set in 6-bit units
(4)P0_4, P0_6,
P0_7
I/O
CMOS3 state
Set in 1-bit units Set in 3-bit units
(1) Set in 3-bit units
(3)P1
I/O
CMOS3 state
Set in 1-bit units Set in 4-bit units
(1) Set in 1-bit units
(2) Set in 8-bit units
(4)P2_0 to P2_3
I/O
CMOS3 state
Set in 1-bit units Set in 4-bit units
(1) Set in 1-bit units
(2) Set in 6-bit units
(4)P2_4, P2_5
I/O
CMOS3 state
Set in 1-bit units Set in 2-bit units
(1) Set in 1-bit units
(2)P3_1, P3_3
I/O
CMOS3 state
Set in 1-bit units Set in 2-bit units
(1) Set in 2-bit units
(3) Set in 5-bit units
(4)P3_4, P3_5,
P3_7
I/O
CMOS3 state
Set in 1-bit units Set in 3-bit units
(1) Set in 3-bit units
(3)I/O
CMOS3 state
Set in 1-bit units Set in 1-bit units
(1) Set in 1-bit units
(3) Set in 6-bit units
(4)I/O
CMOS3 state
Set in 1-bit units Set in 4-bit units
(1) Set in 4-bit units
(3)I
(No output
function)
None
P6_6
I/O
CMOS3 state
Set in 1-bit units Set in 1-bit units
(1) Set in 1-bit units
(3) Set in 1-bit units
(4)