Mitsubishi microcomputers
M16C / 6N0 / 6N1 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
9
Pin Description
Table 1.2.2. Pin description of M16C/6N group (2)
Signal name
Function
Pin name
I/O type
I/O port P5
Input/output
Input
I/O port P6
I/O port P7
I/O port P8
Input port P85
P50 to P57
P60 to P67
P70 to P77
P80 to P84,
P86,
P87,
P85
This is an 8-bit I/O port equivalent to P0. In single-chip mode, P57 in
this port outputs a divide-by-8 or divide-by-32 clock of XIN or a clock of
the same frequency as XCIN as selected by software.
Output
Input
Output
Input
Port 71 has an n-channel open drain output.
as timer A0 to A3, timer B5, UART2 I/O or CAN1 transmit/receive data
pins as selected by software.
(Note)
Input/output
I/O port P9
P90 to P97
This is an 8-bit I/O port equivalent to P6. Pins in this port also function
as S I/O3 I/O pins, Timer B0 to B4 input pins, D-A converter output pins,
A-D converter extended input pins, A-D trigger input pins or CAN0
transmit/receive data pins as selected by software.
Port 91 has an n-channel open drain output.
Input/output
I/O port P10
P100 to P107
This is an 8-bit I/O port equivalent to P6. Pins in this port also function
Note: Channel CAN1 is not available for M16C/6N1 group.
as A-D converter input pins. Furthermore, P104 to P107 also function
as input pins for the key input interrupt function.
WRL / WR,
WRH / BHE,
RD,
BCLK,
HLDA,
HOLD,
ALE,
RDY
Output WRL, WRH (WR and BHE), RD, BCLK, HLDA, and ALE
signals. WRL and WRH, and BHE and WR can be switched using
software control.
WRL, WRH, and RD selected
With a 16-bit external data bus, data is written to even addresses
when the WRL signal is "L" and to the odd addresses when the WRH
signal is "L". Data is read when RD is "L".
WR, BHE, and RD selected
Data is written when WR is "L". Data is read when RD is "L". Odd
addresses are accessed when BHE is "L". Use this mode when using
an 8-bit external data bus.
While the input level at the HOLD pin is "L", the microcomputer is
placed in the hold state. While in the hold state, HLDA outputs a "L"
level. ALE is used to latch the address. While the input level of the
RDY pin is "L", the microcomputer is in the ready state. BCLK outputs
a clock with the same cycle as the internal clock .
P80 to P84, P86 and P87 are I/O ports with the same functions as P6.
Using software, they can be made to function as the I/O pins for timer
A4 and the input pins for external interrupts. P86 and P87 can be set
using software to function as the I/O pins for a sub clock generation circuit.
In this case, connect a quartz crystal oscillator between P86 (XCOUT pin)
and P87 (XCIN pin).
P85 is an input-only port that also functions for NMI. The NMI interrupt
is generated when the input at this pin changes from "H" to "L". The NMI
function cannot be cancelled using software. P85 is not equipped with
a pull-up transistor.
This is an 8-bit I/O port equivalent to P6. Pins in this port also function
This is an 8-bit I/O port equivalent to P0. When used for input in single-
chip, memory expansion, and microprocessor modes, the port can be
set to have or not have a pull-up resistor in units of four bits by
software. Pins in this port also function as UART0 and UART1 I/O pins
as selected by software.