Rev.3.01
REJ03B0158-0301
Aug 08, 2007
Page 8 of 134
38D5 Group
Table 4
Pin description (2)
Pin
Name
Function
Function except a port function
AD converter
input pins
P5
0
/AN
0
/RTP
0
P5
1
/AN
1
/RTP
1
P5
2
/AN
2
P5
6
/AN
6
P5
7
/AN
7
/ADKEY
0
I/O port P5
8-bit I/O port.
CMOS compatible input level.
CMOS 3-state output structure.
I/O direction register allows each pin to be
individually programmed as either input or output.
Pull-up control is enabled in a bit unit.
8-bit I/O port.
CMOS compatible input level.
CMOS 3-state output structure.
I/O direction register allows each pin to be
individually programmed as either input or output.
Pull-up control is enabled in a bit unit.
P6
2
to P6
7
(6 bits) are enabled to output large
current for LED drive.
Real time port
function pins
ADKEY input pin
P6
0
/X
CIN
P6
1
/X
COUT
P6
2
/INT
00
/(LED
0
)
P6
3
/T
XOUT2
/(LED
1
)
P6
4
/INT
2
/(LED
2
)
I/O port P6
Sub clock generating I/O pins
(oscillator connected)
External interrupt pin
Timer X output pin
External interrupt pin
Timer X output pin
Timer X, Timer Y
output pins
P6
5
/T
XOUT1
/(LED
3
)
P6
6
/INT
10
/CNTR
0
/
(LED
4
)
P6
7
/CNTR
1
/(LED
5
)
P7
0
/C
1
/INT
01
P7
1
/C
2
/INT
11
External interrupt
pins
Input port P7
2-bit input port.
CMOS input level.
External interrupt
pins
External
capacitor connect
pins for a voltage
multiplier of LCD.
Timer 2 output pin
Timer 3 output pin
Timer 4 output pin
P7
2
/T
2OUT
/CKOUT
P7
3
/PWM
0
/T
3OUT
P7
4
/PWM
1
/T
4OUT
I/O port P7
3-bit I/O port.
CMOS compatible input level.
CMOS 3-state output structure.
I/O direction register allows each pin to be
individually programmed as either input or output.
Pull-up control is enabled in 3-bit unit.
Whether oscillation starts by an oscillator between the X
IN
and X
OUT
pins or an on-chip
oscillator is selected.
V
PP
power source input pin in the QzROM writing mode.
Pin for controlling the operating mode of the chip. Connect to V
SS
.
Clock output pin
PWM output pins
OSCSEL
(Only QzROM
version)
CNV
SS
(Only flash memory
version)
V
REF
Oscillation start
selection pin
CNV
SS
Analog reference
voltage
Analog power
source
Reference voltage input pin for A/D converter.
AV
SS
Analog power source input pin for A/D converter. Connect to V
SS.