![](http://datasheet.mmic.net.cn/110000/M32186F8VFP_datasheet_3496152/M32186F8VFP_204.png)
8
INPUT/OUTPUT PORTS AND PIN FUNCTIONS
8-2
32185/32186 Group Hardware Manual
Rev.1.10 REJ09B0235-0110 May 15, 07
8.1 Outline of Input/Output Ports
The 32185/32186 has a total of 97 input/output ports from P0–P13, P15, P17 and P22 (except P5, which is reserved
for future use). These input/output ports can be used as input or output ports by setting the respective direction
registers.
Each input/output port has double or triple functions shared with other internal peripheral I/O or external bus
interface related signal lines, or multiple functions shared with multi-function peripheral I/Os. Pin functions are
selected depending on the operation mode of the CPU or by setting the operation mode register and peripheral
function select register for the input/output port. (If any internal peripheral I/O has still another function, it is also
necessary to set the register provided for that internal peripheral I/O.)
Abundant port functions are incorporated, including a port input level switching function, port output drive capa-
bility setting function, and noise canceller control function.
Note that before any ports can be used in input mode, this port input function enable bit must be set accordingly.
The input/output ports are outlined below.
Table 8.1.1 Outline of Input/Output Ports
Item
Specification
Number of ports
Total 97 ports
P0
:
P00–P07
(8 ports)
P1
:
P10–P17
(8 ports)
P2
:
P20–P27
(8 ports)
P3
:
P30–P37
(8 ports)
P4
:
P41–P47
(7 ports)
P6
:
P61–P63
(3 ports)
P7
:
P70–P77
(8 ports)
P8
:
P82–P87
(6 ports)
P9
:
P93–P97
(5 ports)
P10
:
P100–P107
(8 ports)
P11
:
P110–P117
(8 ports)
P12
:
P124–P127
(4 ports)
P13
:
P130–P137
(8 ports)
P15
:
P150, P153
(2 ports)
P17
:
P174, P175
(2 ports)
P22
:
P220, P221, P224, P225
(4 ports)
Port function
The input/output ports can individually be set for input or output mode using the direction control register
provided for each input/output port. (However, P221 is an input-only port.)
Pin function
Shared with peripheral I/O or external bus interface signals to serve dual-functions (or shared with two
or more peripheral I/O functions to serve multiple functions)
Note: P5, P14, P16, P18-P21 are nonexist.
8.1 Outline of Input/Output Ports