Renesas M16C/6NM Laptop User Manual


 
Rev.1.10 Jul 01, 2005 page 233 of 318
REJ09B0124-0110
M16C/6N Group (M16C/6NK, M16C/6NM) 19. Programmable I/O Ports
Under development
This document is under development and its contents are subject to change.
Figure19.7 PD0 to PD13 Registers
Nothing is assigned. When write, set to "0".
When read, its content is indeterminate.
Port Pi Direction Register (i = 0 to 7, 9 to 13)
(1) (2)
Bit NameBit Symbol RW
b7 b6 b5 b4 b3 b2 b1 b0
PD0 to PD3
PD4 to PD7
PD9 to PD12
(3)
PD13
(3)
03E2h, 03E3h, 03E6h, 03E7h
03EAh, 03EBh, 03EEh, 03EFh
03F3h, 03F6h, 03F7h, 03FAh
03FBh
00h
00h
00h
00h
Symbol Address After Reset
Symbol Address After Reset
NOTES:
1. Make sure the PD7 and PD9 registers are written to by the next instruction after setting the PRC2 bit in the
PRCR register to "1" (write enabled).
2. When using the ports P11 to P13, set the PU37 bit in the PUR3 register to "1" (usable).
3. The PD11 to PD13 registers are only in the 128-pin version.
PDi_0
PDi_1
PDi_2
PDi_3
PDi_4
PDi_5
PDi_6
PDi_7
Port Pi_0 Direction Bit
Port Pi_1 Direction Bit
Port Pi_2 Direction Bit
Port Pi_3 Direction Bit
Port Pi_4 Direction Bit
Port Pi_5 Direction Bit
Port Pi_6 Direction Bit
Port Pi_7 Direction Bit
0 : Input mode
(Functions as an input port)
1 : Output mode
(Functions as an output port)
RW
RW
RW
RW
RW
RW
RW
RW
Function
Port P8 Direction Register
Bit NameBit Symbol RW
b7 b6 b5 b4 b3 b2 b1 b0
PD8
03F2h
00X00000b
PD8_0
PD8_1
PD8_2
PD8_3
PD8_4
-
(b5)
PD8_6
PD8_7
Port P8_0 Direction Bit
Port P8_1 Direction Bit
Port P8_2 Direction Bit
Port P8_3 Direction Bit
Port P8_4 Direction Bit
Port P8_6 Direction Bit
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)
RW
RW
RW
RW
RW
-
RW
RW
Function