R8C/1A Group, R8C/1B Group
5. Programmable I/O Ports
Rev.1.30
Dec 08, 2006
Page 29 of 315
REJ09B0252-0130
Figure 5.5
Registers PD1, PD3, and PD4
Figure 5.6
Registers P1 and P3
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)
(1)
Symbol
Address
After Reset
P1
00E1h
Undefined
P3
00E5h
Undefined
Bit Symbol
Bit Name
Function
RW
NOTE :
1. 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
b3 b2 b1 b0
Pi_1
Pi_5
Pi_0
Pi_2
Pi_4
Pi_3
b7 b6 b5 b4
Port Pi0 bit
Port Pi1 bit
Port Pi7 bit
Port Pi5 bit
Port Pi4 bit
Port Pi3 bit
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