Programmable I/O Ports - Renesas M16C/62P Hardware Manual

Renesas 16-bit single-chip microcomputer
Hide thumbs Also See for M16C/62P:
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)

21. Programmable I/O Ports

Note
21. Programmable I/O Ports is described in the M16C/62P (128-pin version and 100-pin
version) and M16C/62PT (100-pin version) only as an example.
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 port of each package. Figures 21.1 to 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
P r o g r a m m a b l e
I / O P o r t s
T o t a l
N O T E S :
1 . T h e r e i s n o e x t e r n a l c o n n e c t i o n s f o r p o r t P 1 _ 0 t o P 1 _ 7 , P 4 _ 4 t o P 4 _ 7 , P 7 _ 2 t o P 7 _ 5 a n d P 9 _ 1 i n 8 0 - p i n
v e r s i o n .
R
e
. v
2
3 .
0
S
e
p
0
, 1
2
0
0
4
R
E
J
0
9
B
0
1
8
5
0 -
2
3
0
Z
_______
1 2 8 - p i n v e r s i o n
P 0 _ 0 t o P 0 _ 7 ,
P 1 _ 0 t o P 1 _ 7 ,
P 2 _ 0 t o P 2 _ 7 ,
P 3 _ 0 t o P 3 _ 7 ,
P 4 _ 0 t o P 4 _ 7 ,
P 5 _ 0 t o P 5 _ 7 ,
P 6 _ 0 t o P 6 _ 7 ,
P 7 _ 0 t o P 7 _ 7 ,
P 8 _ 0 t o P 8 _ 4 , P 8 _ 6 , P 8 _ 7
( P 8 _ 5 i s a n i n p u t p o r t ) ,
P 9 _ 0 t o P 9 _ 7 ,
P 1 0 _ 0 t o P 1 0 _ 7 ,
P 1 1 _ 0 t o P 1 1 _ 7 ,
P 1 2 _ 0 t o P 1 2 _ 7 ,
P 1 3 _ 0 t o P 1 3 _ 7 ,
P 1 4 _ 0 , P 1 4 _ 1
1 1 3 p i n s
page 228
f o
3
6
4
______
100-pin version
P0_0 to P0_7,
P1_0 to P1_7,
P2_0 to P2_7,
P3_0 to P3_7,
P4_0 to P4_7,
P5_0 to P5_7,
P6_0 to P6_7,
P7_0 to P7_7,
P8_0 to P8_4, P8_6, P8_7
(P8_5 is an input port),
P9_0 to P9_7,
P10_0 to P10_7
8 7 p i n s
21. Programmable I/O Ports
( 1 )
8 0 - p i n v e r s i o n
P0_0 to P0_7,
P2_0 to P2_7,
P3_0 to P3_7,
P4_0 to P4_3,
P5_0 to P5_7,
P6_0 to P6-7,
P7_0, P7_1, P7_6, P7_7,
P8_0 to P8_4, P8_6, P8_7
(P8_5 is an input port),
P9_0, P9_2 to P9_7,
P10_0 to P10_7
7 0 p i n s

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pt

Table of Contents