M16C/30P Group
1. Overview
Rev.1.22
REJ03B0088-0122
Mar 30, 2007
Page 13 of 53
I : Input O : Output I/O : Input and output
Table 1.9
Signal Name
Main clock
input
Main clock
output
Sub clock
input
Sub clock
output
Clock output
INT interrupt
input
NMI interrupt
input
Key input
interrupt input
Timer A
Pin Description (2)
Pin Name
XIN
I/O Type
I
Description
I/O pins for the main clock generation circuit. Connect a ceramic
resonator or crystal oscillator between XIN and XOUT. To use the
external clock, input the clock from XIN and leave XOUT open.
XOUT
O
XCIN
I
I/O pins for a sub clock oscillation circuit. Connect a crystal oscillator
between XCIN and XCOUT. To use the external clock, input the clock
from XCIN and leave XCOUT open.
XCOUT
O
CLKOUT
INT0 to INT4
O
I
The clock of the same cycle as fC, f8, or f32 is outputted.
Input pins for the INT interrupt.
NMI
I
Input pin for the NMI interrupt.
KI0 to KI3
I
Input pins for the key input interrupt.
TA0OUT to
TA2OUT
TA0IN to TA2IN
TB0IN to TB2IN
CTS0 to CTS2
RTS0 to RTS2
CLK0 to CLK2
RXD0 to RXD2
TXD0 to TXD2
I/O
These are timer A0 to timer A2 I/O pins. (however, the output of
TA0OUT for the N-channel open drain output.)
These are timer A0 to timer A2 input pins.
These are timer B0 to timer B2 input pins.
These are send control input pins.
These are receive control output pins.
These are transfer clock I/O pins.
These are serial data input pins.
These are serial data output pins. (however, TXD2 for the N-channel
open drain output.)
This is output pin for transfer clock output from multiple pins function.
These are serial data I/O pins. (however, SDA2 for the N-channel
open drain output.)
These are transfer clock I/O pins. (however, SCL2 for the N-channel
open drain output.)
Applies the reference voltage for the A/D converter.
I
I
I
Timer B
Serial
interface
O
I/O
I
O
CLKS1
SDA0 to SDA2
O
I/O
I
2
C mode
SCL0 to SCL2
I/O
Reference
voltage input
A/D converter
VREF
I
AN0 to AN7,
AN0_0 to AN0_7
I
Analog input pins for the A/D converter.
ADTRG
ANEX0
I
This is an A/D trigger input pin.
This is the extended analog input pin for the A/D converter, and is the
output in external op-amp connection mode.
This is the extended analog input pin for the A/D converter.
8-bit I/O ports in CMOS, having a direction register to select an input
or output.
Each pin is set as an input port or output port. An input port can be set
for a pull-up or for no pull-up in 4-bit unit by program. (however, P7_0
and P7_1 for the N-channel open drain output.)
I/O
ANEX1
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,
P9_0 to P9_7,
P10_0 to P10_7
P8_0 to P8_4,
P8_6, P8_7
P8_5
I
I/O port
I/O
I/O
I/O ports having equivalent functions to P0.
Input port
I
Input pin for the NMI interrupt. Pin states can be read by the P8_5 bit
in the P8 register.