Download Print this page

Renesas M16C/50 Series User Manual page 198

Advertisement

M16C/5L Group, M16C/56 Group
11.3.12 Port Pi Direction Register (PDi) (i = 0 to 3, 6 to 10)
Port Pi Direction Register (i=0 to 3, 6 to 8, 10)
b7 b6 b5 b4
b3
b2
b1
b0
Port P9 Direction Register
b7 b6 b5 b4
b3
b2
b1
Write to the PD9 register in the next instruction after setting the PRC2 bit in the PRCR register to 1
(write enabled).
These registers select whether I/O ports are to be used for input or output. Each bit in the PDi register
corresponds to one port.
To use I/O pins shared with the following peripheral functions, set the corresponding port direction bit to
0 (input mode):
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Symbol
PD0 to PD3
PD6 to PD7
PD8
PD10
Bit Symbol
Bit Name
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
b0
Symbol
PD9
Bit Symbol
Bit Name
PD9_0
Port P9_0 direction bit
PD9_1
Port P9_1 direction bit
PD9_2
Port P9_2 direction bit
PD9_3
Port P9_3 direction bit
No register bit. If necessary, set to 0. The read value is undefined.
(b4)
PD9_5
Port P9_5 direction bit
PD9_6
Port P9_6 direction bit
PD9_7
Port P9_7 direction bit
Address
03E2h, 03E3h, 03E6h, 03E7h
03EEh, 03EFh
03F2h
03F6h
0 : Input mode
(functions as an input port)
1 : Output mode
(functions as an output port)
Address
03F3h
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)
11. Programmable I/O Ports
After Reset
00h
00h
00h
00h
Function
RW
RW
RW
RW
RW
RW
RW
RW
RW
Reset Value
000X 0000b
Function
Page 161 of 803
RW
RW
RW
RW
RW
RW
RW
RW

Advertisement

loading