Download Print this page

Renesas M16C/50 Series User Manual page 197

Advertisement

M16C/5L Group, M16C/56 Group
11.3.11 Port Pi Register (Pi) (i = 0 to 3, 6 to 10)
Port Pi Register (i=0 to 3, 6 to 8, 10)
b7 b6 b5 b4
b3
b2
b1
Port P9 Register
b7 b6 b5 b4
b3
b2
b1
Note:
1. No register bit. If necessary, set to 0. The read value is undefined.
Data input/output to and from external devices are accomplished by reading and writing to the Pi
register.
Each bit in 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.
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Symbol
b0
P0 to P3
P6 to P7
P8
P10
Bit Symbol
Bit Name
Pi_0
Port Pi_0 bit
Pi_1
Port Pi_1 bit
Pi_2
Port Pi_2 bit
Pi_3
Port Pi_3 bit
Pi_4
Port Pi_4 bit
Pi_5
Port Pi_5 bit
Pi_6
Port Pi_6 bit
Pi_7
Port Pi_7 bit
b0
Symbol
P9
Bit Symbol
Bit Name
P9_0
Port P9_0 bit
P9_1
Port P9_1 bit
P9_2
Port P9_2 bit
P9_3
Port P9_3 bit
No register bit
(b4)
P9_5
Port P9_5 bit
P9_6
Port P9_6 bit
P9_7
Port P9_7 bit
Address
03E0h, 03E1h, 03E4h, 03E5h
03ECh, 03EDh
03F0h
03F4h
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.
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
1 : High level
Address
03F1h
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.
The pin level of any I/O port which is set
to output mode can be controlled by
(1)
writing to the corresponding bit in this
register
0 : Low level
1 : High level
11. Programmable I/O Ports
Reset Value
XXh
XXh
XXh
XXh
Function
RW
RW
RW
RW
RW
RW
RW
RW
RW
Reset Value
XXh
Function
RW
RW
RW
RW
RW
RW
RW
RW
Page 160 of 803

Advertisement

loading