English
Language : 

M16C65 Datasheet, PDF (245/829 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/60
Under development
M16C/65 Group
Preliminary Specification
This is a preliminary specification and is subject to change.
13.3.6 Port Pi Registers (Pi) (i = 0 to 14)
13. Programmable I/O Ports
Port Pi Register (i = 0 to 13)
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
P0 to P3
P4 to P7
P8 to P11
P12 to P13
Address
03E0h, 03E1h, 03E4h, 03E5h
03E8h, 03E9h, 03ECh, 03EDh
03F0h, 03F1h, 03F4h, 03F5h
03F8h, 03F9h
After Reset
Undefined
Undefined
Undefined
Undefined
Bit Symbol
Bit Name
Pi_0
Pi_1
Pi_2
Pi_3
Pi_4
Pi_5
Pi_6
Pi_7
Port Pi_0 bit
Port Pi_1 bit
Port Pi_2 bit
Port Pi_3 bit
Port Pi_4 bit
Port Pi_5 bit
Port Pi_6 bit
Port Pi_7 bit
Function
RW
The pin level of any I/O port which is set RW
to input mode can be read by reading the
corresponding bit in this register.
RW
The pin level of any I/O port which is set
RW
to output mode can be controlled by
writing to the corresponding bit in this
RW
register
0 : Low level
RW
1 : High level
RW
RW
RW
Port P14 Register
b7 b6 b5 b4 b3 b2 b1 b0
Symbol
P14
Address
03FCh
After Reset
Undefined
Bit Symbol
Bit Name
P14_0 Port P14_0 bit
P14_1 Port P14_1 bit
Function
RW
The pin level of any I/O port which is set
to input mode can be read by reading the
corresponding bit in this register.
RW
The pin level of any I/O port which is set
to output mode can be controlled by
writing to the corresponding bit in this
register
0 : Low level
RW
1 : High level
—
(b7-b2)
No register bit. If necessary, set to 0. Read as undefined value
—
Data input/output to and from external devices are accomplished by reading and writing to the Pi
register.
Each bit of the Pi register consists of a port latch to hold the output data and a circuit to read the pin
status.
For ports set to input mode, the input level of the pin can be read by reading the corresponding Pi
register, and data can be written to the port latch by writing to the Pi register.
For ports set to output mode, the port latch can be read by reading the corresponding Pi register, and
data can be written to the port latch by writing to the Pi register. The data written to the port latch is
output from the pin. Each bit in the Pi register corresponds to one port.
In memory expansion and microprocessor modes, the Pi 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).
Since P7_0, P7_1, and P8_5 are N-channel open- drain ports, when set to 1, the pin status becomes
high-impedance.
When the CM04 bit in the CM0 register is 1 (XCIN-XCOUT oscillation function) and bits PD8_6 and
PD8_7 in the PD8 register are 0 (input mode), values of bits P8_6 and P8_7 in the P8 register are
undefined.
REJ09B0484-0030 Rev.0.30 Sep 09, 2008
Page 210 of 791