Datasheet
M16C/6S Group Programmable I/O Ports
R01DS0201EJ0502 Rev.5.02 page 143 of 203
Dec 25, 2012
Figure 1.18.6. PD1, PD4 to PD9 Registers
Port Pi direction register (i=1, 4 to 7 and 9) (Note 1)
Symbol
Address
(Note 2)
After reset
PD1
03E316
0016
PD4 to PD7 03EA16, 03EB16, 03EE16, 03EF16
0016
PD9 03F316 0016
Bit name FunctionBit symbol RW
b7 b6 b5 b4 b3 b2 b1 b0
PDi_0 Port Pi
0
direction bit
PDi_1 Port Pi
1
direction bit
PDi_2 Port Pi
2
direction bit
PDi_3 Port Pi
3
direction bit
PDi_4 Port Pi
4
direction bit
PDi_5 Port Pi
5
direction bit
PDi_6 Port Pi
6
direction bit
PDi_7 Port Pi
7
direction bit
0 : Input mode
(Functions as an input port)
1 : Output mode
(Functions as an output port)
(i = 0 to 7 and 9 to 13)
Port P8 direction register
Symbol
Address
After reset
PD8
03F216
00X000002
Bit name FunctionBit symbol
b7 b6 b5 b4 b3 b2 b1 b0
PD8_0 Port P8
0
direction bit
PD8_1 Port P8
1
direction bit
PD8_2 Port P8
2
direction bit
PD8_3 Port P8
3
direction bit
PD8_4 Port P8
4
direction bit
Nothing is assigned. In an attempt to write to this bit, write “0”.
The value, if read, turns out to be indeterminate.
PD8_6 Port P8
6
direction bit
PD8_7 Port P8
7
direction bit
0 : Input mode
(Functions as an input port)
1 : Output mode
(Functions as an output port)
0 : Input mode
(Functions as an input port)
1 : Output mode
(Functions as an output port)
Note 1: Make sure the PD9 register is written to by the next instruction after setting the PRCR
Note 2: Set PD1_0 and PD1_1 bits to “0.”
register’s PRC2 bit to “1” (write enabled).
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
(b5)