Pdi Register; Pi Register, Pc14 Register; Purj Register; Pcr Register - Renesas M16C/6NK Hardware Manual

16-bit single-chip microcomputer m16c family / m16c/60 series
Table of Contents

Advertisement

Under development
This document is under development and its contents are subject to change.
M16C/6N Group (M16C/6NK, M16C/6NM)
20.1 PDi Register (100-pin Version: i = 0 to 10, 128-pin Version: i = 0 to 13)
Figure20.7 shows the PDi register.
This register selects whether the I/O port is to be used for input or output. The bits in this register correspond
one for one to each port.
During memory expansion and microprocessor modes
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.
No direction register bit for P8_5 is available.
NOTE:
1. Not available memory expansion and microprocessor modes in T/V-ver..
20.2 Pi Register (100-pin Version: i = 0 to 10, 128-pin Version: i = 0 to 13), PC14 Register
Figure20.8 shows the Pi register.
Data input/output to and from external devices are accomplished by reading and writing to the Pi register.
The Pi register consists of a port latch to hold the input/output data and a circuit to read the pin status. For
ports set for 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 for 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. The bits in the Pi register correspond one for one to each port.
During memory expansion and microprocessor modes
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.
About the port P14 (128-pin version), Figure20.8 shows the PC14 register.
NOTE:
1. Not available memory expansion and microprocessor modes in T/V-ver..
20.3 PURj Register (100-pin Version: j = 0 to 2, 128-pin Version: j = 0 to 3)
Figures 20.9 and 20.10 show the PURj register.
The PURj register bits can be used to select whether or not to pull the corresponding port high in 4-bit unit.
The port selected to be pulled high has a pull-up resistor connected to it when the direction bit is set for input
mode.
However, the pull-up control register has no effect on P0 to P3, P4_0 to P4_3, and P5 during memory
expansion and microprocessor modes
are connected.
When using the ports P11 to P14, set the PUR37 bit in the PUR3 register to "1" (P11 to P14 are usable).
NOTE:
1. Not available memory expansion and microprocessor modes in T/V-ver..

20.4 PCR Register

Figure20.11 shows the PCR register.
When the P1 register is read after setting the PCR0 bit in the PCR register to "1", the corresponding port
latch can be read no matter how the PD1 register is set.
Tables 20.2 and 20.3 list an example connection of unused pins. Figure20.12 shows an example connection
of unused pins.
Rev.2.00
Nov 28, 2005
REJ09B0124-0200
_______
_______
_______
_______
(1)
. Although the register contents can be modified, no pull-up resistors
page 248 of 378
(1)
, the PDi registers for the pins functioning as bus
_____
________ ______
_________ ________
(1)
, the Pi registers for the pins functioning as bus
_____
________ ______
_________ ________
20. Programmable I/O Ports
________ __________
__________
________ __________
__________

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/6nm

Table of Contents