R8C/18 Group, R8C/19 Group
6. Programmable I/O Ports
Rev.1.30
Apr 14, 2006
Page 33 of 233
REJ09B0222-0130
Figure 6.5
Registers PD1, PD3, and PD4
Figure 6.6
Registers P1, P3, and P4
Port Pi Direction Register (i = 1, 3, 4)
(1, 2)
Symbol
Address
After Reset
PD1
00E3h
00h
PD3
00E7h
00h
PD4
00EAh
00h
Bit Symbol
Bit Name
Function
RW
NOTES:
1.
2.
PDi_3
Port Pi3 direction bit
PDi_5
Port Pi0 direction bit
Port Pi1 direction bit
Port Pi4 direction bit
Port Pi2 direction bit
PDi_4
RW
RW
Port Pi5 direction bit
RW
0 : Input mode
(functions as an input port)
1 : Output mode
(functions as an output port)
RW
RW
Port Pi6 direction bit
RW
b7 b6 b5 b4 b3 b2
PDi_2
b1 b0
PDi_1
PDi_0
PDi_6
RW
Bits PD4_0 to PD4_4, PD4_6, and PD4_7 in the PD4 register are unavailable on this MCU. If it is necessary to set bits
PD4_0 to PD4_4, PD4_6, and PD4_7, set to 0 (input mode). When read, the content is 0.
PDi_7
Port Pi7 direction bit
RW
Bits PD3_0 to PD3_2, and PD3_6 in the PD3 register are unavailable on this MCU.
If it is necessary to set bits PD3_0 to PD3_2, and PD3_6, set to 0 (input mode). When read, the content is 0.
Port Pi Register (i = 1, 3, 4)
(1, 2)
Symbol
Address
After Reset
P1
00E1h
Undefined
P3
00E5h
Undefined
P4
00E8h
Undefined
Bit Symbol
Bit Name
Function
RW
NOTES:
1.
2.
RW
Port Pi6 bit
RW
Port Pi2 bit
RW
The pin level of any I/O port w hich is set
to input mode can be read by reading the
corresponding bit in this register. The pin
level of any I/O port w hich is set to output
mode can be controlled by w riting to the
corresponding bit in this register.
0 : “L” level
1 : “H” level
(1)
RW
RW
RW
RW
Port Pi0 bit
Port Pi1 bit
Port Pi7 bit
Port Pi5 bit
Port Pi4 bit
Port Pi3 bit
b7 b6 b5 b4
b0
Pi_1
Pi_5
Pi_0
Pi_2
Pi_4
Pi_3
b3 b2 b1
Bits P4_0 to P4_1, and P4_3 to P4_4 in the P4 register are unavailable on this MCU.
If it is necessary to set bits P4_0 to PD4_1, and P4_3 to P4_4, set to 0 (“L” level). When read, the content is 0.
Bits P3_0 to P3_2, and P3_6 in the P3 register are unavailable on this MCU.
If it is necessary to set bits P3_0 to P3_2, and P3_6, set to 0 (“L” level). When read, the content is 0.
Pi_7
Pi_6
RW