English
Language : 

M16C62P_06 Datasheet, PDF (270/421 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES
M16C/62P Group (M16C/62P, M16C/62PT)
21. Programmable I/O Ports
21. Programmable I/O Ports
Note
There is no external connections for port P1_0 to P1_7, P4_4 to P4_7, P7_2 to P7_5 and P9_1 in the
M16C/62P (80-pin version) and the M16C/62PT (80-pin version). Set the direction bits in these ports to
“1” (output mode), and set the output data to “0” (“L”) using the program.
Moreover, P11_0 to P11_7, P12_0 to P12_7, P13_0 to P13_7, P14_0 and P14_1 pins do not exist.
Therefore, P11 to P13, PC14 and PUR13 register do not exist.
The programmable input/output ports (hereafter referred to simply as I/O ports) consist of 113 lines P0 to P14 for the
128-pin version, 87 lines P0 to P10 for the 100-pin version, or 70 lines P0 to P10 for the 80-pin version. Each port can
be set for input or output every line by using a direction register, and can also be chosen to be or not be pulled high
every 4 lines. P8_5 is an input-only port and does not have a pull-up resistor. Port P8_5 shares the pin with NMI, so
that the NMI input level can be read from the P8 register P8_5 bit.
Table 21.1 lists the Number of Pins of the Programmable I/O Ports of Each Package. Figure 21.1 to Figure 21.5 show
the I/O ports. Figure 21.6 shows the I/O Pins.
Each pin functions as an I/O port, a peripheral function input/output, or a bus control pin.
For details on how to set peripheral functions, refer to each functional description in this manual. If any pin is used as
a peripheral function input or D/A converter output pin, set the direction bit for that pin to “0” (input mode). Any pin
used as an output pin for peripheral functions other than the D/A converter is directed for output no matter how the
corresponding direction bit is set.
When using any pin as a bus control pin, refer to 8.2 Bus Control.
P0 to P5, P12, and P13 are capable of VCC2-level input/output; P6 to P11 and P14 are capable of VCC1- level input/
output.
Table 21.1 Number of Pins of the Programmable I/O Ports of Each Package
128-pin Version
100-pin Version
80-pin version (1)
Programmable P0_0 to P0_7,
P0_0 to P0_7,
P0_0 to P0_7,
I/O Ports
P1_0 to P1_7,
P1_0 to P1_7,
P2_0 to P2_7,
P2_0 to P2_7,
P2_0 to P2_7,
P3_0 to P3_7,
P3_0 to P3_7,
P3_0 to P3_7,
P4_0 to P4_3,
P4_0 to P4_7,
P4_0 to P4_7,
P5_0 to P5_7,
P5_0 to P5_7,
P5_0 to P5_7,
P6_0 to P6_7,
P6_0 to P6_7,
P6_0 to P6_7,
P7_0, P7_1, P7_6, P7_7,
P7_0 to P7_7,
P7_0 to P7_7,
P8_0 to P8_4, P8_6, P8_7
P8_0 to P8_4, P8_6, P8_7 P8_0 to P8_4, P8_6, P8_7 (P8_5 is an input port),
(P8_5 is an input port),
(P8_5 is an input port),
P9_0, P9_2 to P9_7,
P9_0 to P9_7,
P9_0 to P9_7,
P10_0 to P10_7,
P10_0 to P10_7,
P10_0 to P10_7,
P11_0 to P11_7,
P12_0 to P12_7,
P13_0 to P13_7,
P14_0, P14_1
Total
113 pins
87 pins
70 pins
NOTES:
1. There is no connections for port P1_0 to P1_7, P4_4 to P4_7, P7_2 to P7_5 and P9_1 in 80-pin
version.
Rev.2.41 Jan 10, 2006 Page 255 of 390
REJ09B0185-0241