R01UH0136EJ0210 Rev.2.10
Page 184 of 800
Jul 31, 2012
M16C/64A Group
13. Programmable I/O Ports
13.3.6
Port Pi Direction Register (PDi) (i = 0 to 10)
Write to the PD9 register in the next instruction after setting the PRC2 bit in the PRCR register to 1
(write enabled).
Select whether I/O ports are to be used for input or output by the PDi register. Each bit in the PDi
register has a corresponding port.
In memory expansion mode or microprocessor mode, the PDi register for the pins functioning as bus
control pins (A0 to A19, D0 to D15,
CS0
to
CS3
,
RD
,
WRL
/
WR
,
WRH
/
BHE
, ALE,
RDY
,
HOLD
,
HLDA
,
and BCLK) cannot be modified (writing a value has no effect).
b7 b6 b5 b4
b1
b2
b3
b0
Bit Symbol
Bit Name
RW
Function
PDi_0
Port Pi_0 direction bit
0 : Input mode
(functions as an input port)
1 : Output mode
(functions as an output port)
RW
PDi_1
Port Pi_1 direction bit
RW
PDi_2
Port Pi_2 direction bit
RW
PDi_3
Port Pi_3 direction bit
RW
PDi_4
Port Pi_4 direction bit
RW
PDi_5
Port Pi_5 direction bit
RW
PDi_6
Port Pi_6 direction bit
RW
PDi_7
Port Pi_7 direction bit
RW
Port Pi Direction Register (i = 0 to 10)
Symbol
Address
Reset Value
PD0 to PD3
03E2h, 03E3h, 03E6h, 03E7h
00h
PD4 to PD7
03EAh, 03EBh, 03EEh, 03EFh
00h
PD8 to PD10
03F2h, 03F3h, 03F6h
00h
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...