4-Bit Microcontroller with Built-in 1024-Dot Matrix LCD Drivers and Melody Circuit,
Operating at 0.9 V (Min.)
GENERAL DESCRIPTION
The ML63187/63189B is a CMOS 4-bit microcontroller with built-in 1024-dot matrix LCD drivers
and operates at 0.9 V (min.). The ML63187/63189B is suitable for applications such as games,
toys, watches, etc. which are provided with an LCD display.
The ML63187/63189B is an M6318x series mask ROM-version product of OLMS-63K family,
which employs Oki's original CPU core nX-4/250.
FEATURES
• Rich instruction set
408 instructions
Transfer, rotate, increment/decrement, arithmetic operations, comparison, logic operations,
mask operations, bit operations, ROM table reference, stack operations, flag operations,
branch, conditional branch, call/return, control.
• Rich selection of addressing modes
Indirect addressing of four data memory types, with current bank register, extra bank
register, HL register and XY register.
Data memory bank internal direct addressing mode.
• Processing speed
Two clocks per machine cycle, with most instructions executed in one machine cycle.
Minimum instruction execution time: 61 ms (@ 32.768 kHz system clock)
1 ms (@ 2 MHz system clock)
• Clock generation circuit
Low-speed clock: Crystal oscillation or RC oscillation selected with
mask option (30 to 80 kHz)
High-speed clock: Ceramic oscillation or RC oscillation selected with
software (2 MHz max.)
• Program memory space
• ML63187: 16K words
• ML63189B : 32K words
Basic instruction length is 16 bits/1 word
• I/O ports
Input ports: Selectable as input with pull-up resistor/input with pull-down resistor/high-
impedance input
Input-output ports: Selectable as input with pull-up resistor/input with pull-down resistor/
high-impedance input
Selectable as P-channel open drain output/N-channel open drain
output/CMOS output/high-impedance output
Can be interfaced with external peripherals that use a different power supply than this device
uses.
Number of ports:
ML63187
• Melody output
Melody frequency: 529 to 2979 Hz
Tone length: 63 types
Tempo: 15 types
Melody data: Resides in the program memory
Buzzer driver signal output: 4 kHz
• LCD driver
Number of segments: 1024 Max. (64 SEG ¥ 16 COM)
1/1 to 1/16 duty
1/4 or 1/5 bias (regulator built-in)
Selectable as all-ON mode/all-OFF mode/power down mode/normal display mode
Adjustable contrast
• Reset function
Reset through RESET pin
Power-on reset
Reset by low-speed oscillation halt
• Battery check
Low-voltage supply check
The value of the judgment voltage is selected by the software by setting the LD1 and LD0 bits
of BLDCON.
LD1
0
0
1
1
LD0
0
1
0
1
Judgment Voltage (V)
1.05 ±0.10
1.20 ±0.10
1.80 ±0.10
2.40 ±0.10
Remarks
Ta = 25°C
Ta = 25°C
Ta = 25°C
Ta = 25°C
2/35
Page 3
¡ SemiconductorML63187/63189B
• Power supply backup
Backup circuit (voltage multiplier) enables operation at 0.9 V minimum
• Timers and counter
8-bit timer ¥ 4
Selectable as auto-reload mode/capture mode/clock frequency measurement mode
Watchdog timer ¥ 1
100 Hz timer ¥ 1
Measurable in steps of 1/100 sec.
15-bit time base counter ¥ 1
1, 2, 4, 8, 16, 32, 64, and 128 Hz signals can be read
• Shift register
Shift clock: 1 ¥ or 1/2 ¥ system clock, timer 1 overflow,
external clock
Data length: 8 bits
• Interrupt sources
ML63187
External interrupt: 2
Internal interrupt: 12 (watchdog timer interrupt is a nonmask-
able interrupt)
ML63189B
External interrupt: 3
Internal interrupt: 12 (watchdog timer interrupt is a nonmask-
able interrupt)
• Operating temperature
–20 to +70°C
• Operating voltage
When backup used: 0.9 to 2.7 V
(Operating frequency: 30 to 80 kHz)
1.2 to 2.7 V
(Operating frequency: 300 to 500 kHz)
1.5 to 2.7 V
(Operating frequency: 200 kHz to 1 MHz)
An asterisk (*) indicates the port secondary function. indicates that the power is supplied
to the circuits corresponding to the signal names inside from V
interface).
nX-4/250
H
TIMING
CONTROL
SP
RSP
CBR
EBR
ALU
L
YX
RA
A
C G
MIE
PC
Z
BUS
CONTROL
ROM
16KW
(power supply for
DDI
RESET
TST1
TST2
XT0
XT1
OSC0
OSC1
STACK
CAL : 16-level
REG : 16-level
RST
TST
OSC
V
CB1
CB2
V
V
V
V
V
V
DDH
V
DD1
DD2
DD3
DD4
DD5
DDL
INSTRUCTION
DECODER
INT
4
INT
1
INT
1
DD
BACK
UP
BIAS
RAM
1024N
INT187
TBC
BLD
100HzTC
WDT
IR
INT
DATA BUS
4
TIMER
8bit ¥ 4
INT
1
SFT
INT
1
MELODY
INT
2
I/O
PORT
LCD
&
DSPR
TM0CAP/TM1CAP*
TM0OVF/TM1OVF*
T02CK*
T13CK*
SCLK*
SIN*
SOUT*
MD
MDB
PB.0-PB.3
PE.0-PE.3
COM1-16
SEG0-63
C1
V
C2
DDI
V
SS
4/35
Page 5
¡ SemiconductorML63187/63189B
BLOCK DIAGRAM (ML63189B)
An asterisk (*) indicates the port secondary function. indicates that the power is supplied
to the circuits corresponding to the signal names inside from V
interface).
Chip size: 4.238 mm ¥ 4.914 mm
Chip thickness: 350 mm (280 mm: available as required)
Coordinate origin: center of chip
Pad hole size: 100 mm ¥ 100 mm
Pad size: 110 mm ¥ 110 mm
Minimum pad pitch: 140 mm
Chip size: 4.81 mm ¥ 5.20 mm
Chip thickness: 350 mm (280 mm: available as required)
Coordinate origin: center of chip
Pad hole size: 100 mm ¥ 100 mm
Pad size: 110 mm ¥ 110 mm
Minimum pad pitch: 140 mm
The basic functions of each pin of the ML63187/ML63189B are described in Table 1.
A symbol with a slash (/) denotes a pin that has a secondary function.
Refer to Table 2 for secondary functions.
For type, "—" denotes a power supply pin, "I" an input pin, "O" an output pin, and "I/O" an inputoutput pin.
Table 1 Pin Descriptions (Basic Functions)
Function Symbol
V
DD
V
SS
V
DD1
V
DD2
V
DD3
V
DD4
V
DD5
C1—
C2—
V
Power
DDI
Supply
V
DDL
V
DDH
CB1—
CB2—
XT0I
XT1O
Oscillation
OSC0I
OSC1O
Pin No.
ML63187
54
43
44
45
46
47
48
49
50
70
55
51
52
53
60
59
57
56
ML63189B
56
45
46
47
48
49
50
51
52
69
57
53
54
55
62
61
59
58
Pad No.
ML63187
72
61
62
63
64
65
66
67
68
83
73
69
70
71
78
77
75
74
ML63189B
82
71
72
73
74
75
76
77
78
93
83
79
80
81
88
87
85
84
Type
Positive power supply
—
—
Negative power supply
Description
Power supply pins for LCD bias (internally generated).
Capacitors (0.1 mF) should be connected between these
—
pins and V
.
SS
Capacitor connection pins for LCD bias generation.
A capacitor (0.1 mF) should be connected between C1 and C2.
Positive power supply pin for external interface
—
(power supply for input, and input-output ports)
Positive power supply pin for internal logic (internally
generated).
—
A capacitor (0.1 mF) should be connected between this
pin and V
.
SS
Voltage multiplier pin for power supply backup
(internally generated).
—
A capacitor (1.0 mF) should be connected between this
pin and V
.
SS
Pins to connect a capacitor for voltage multiplier.
A capacitor (1.0 mF) should be connected between CB1
and CB2.
Low-speed clock oscillation pins.
An option for using crystal oscillation or RC oscillation
is chosen by the mask option.
If the crystal oscillation is chosen, a crystal should be
connected between XT0 and XT1, and capacitor (C
should be connected between XT0 and V
.
SS
If the RC oscillation is chosen, external oscillation
resistor (R
) should be connected between XT0 and
OSL
XT1.
High-speed clock oscillation pins.
A ceramic resonator and capacitors (C
oscillation resistor (R
Input pins for testing.
A pull-down resistor is internally connected to these pins.
The user cannot use these pins.
Reset input pin.
Setting this pin to "H" level puts this device into a
reset state.
Then, setting this pin to "L" level starts executing an
instruction from address 0000H.
A pull-down resistor is internally connected to this pin.
high-impedance input is selectable for each bit.
Applied to the ML63189B only.
4-bit input-output ports.
In input mode, pull-up resistor input, pull-down
I/O
resistor input, or high-impedance input is selectable
for each bit.
In output mode, P-channel open drain output,
N-channel open drain output, CMOS output, or
I/O
high-impedance output is selectable for each bit.
P9.0 to P9.3 and PA.0 to PA.3 are applied to the
ML63189B only.
Shift register clock input-output pin.
Clock output when this device is used as a master
I/O
processor.
Clock input when this device is used as a slave
processor.
17/35
Page 18
¡ SemiconductorML63187/63189B
ABSOLUTE MAXIMUM RATINGS
= 0 V)
(V
SS
ParameterSymbolConditionRatingUnit
Power Supply Voltage 6
V
V
V
V
V
V
T
DD1
DD2
DD3
DD4
DD5
DD
DDI
DDH
DDL
IN1
IN2
OUT1
OUT2
OUT3
OUT4
OUT5
OUT6
OUT7
OUT8
STG
DDI
DD1
DD2
DD3
DD4
DD5
DDI
DDH
–0.3 to +1.6Power Supply Voltage 1Ta = 25°CV
–0.3 to +2.9Power Supply Voltage 2Ta = 25°C
–0.3 to +4.2Power Supply Voltage 3Ta = 25°C
–0.3 to +5.5Power Supply Voltage 4Ta = 25°C
–0.3 to +6.8Power Supply Voltage 5Ta = 25°C
–0.3 to +6.0Ta = 25°CV
–0.3 to +6.0Power Supply Voltage 7Ta = 25°CV
–0.3 to +6.0Power Supply Voltage 8Ta = 25°C
–0.3 to +6.0Power Supply Voltage 9Ta = 25°CV
–0.3 to V
Input, Ta = 25°CV
Output, Ta = 25°CV
Output, Ta = 25°CV
Output, Ta = 25°CV
Output, Ta = 25°CV
Output, Ta = 25°CV
–0.3 to V
–0.3 to V
–0.3 to V
–0.3 to V
–0.3 to V
–0.3 to V
–0.3 to V
Output, Ta = 25°CV
Output, Ta = 25°CV
–0.3 to V
–0.3 to V
DD
DDI
DD1
DD2
DD3
DD4
DD5
DD
DDI
DDH
+ 0.3Input Voltage 1VDD Input, Ta = 25°CV
+ 0.3Input Voltage 2V
+ 0.3Output Voltage 1V
+ 0.3Output Voltage 2V
+ 0.3Output Voltage 3V
+ 0.3Output Voltage 4V
+ 0.3Output Voltage 5V
+ 0.3Output Voltage 6VDD Output, Ta = 25°CV
+ 0.3Output Voltage 7V
+ 0.3Output Voltage 8V
–55 to +150Storage Temperature—
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
°C
18/35
Page 19
¡ SemiconductorML63187/63189B
RECOMMENDED OPERATING CONDITIONS
• When backup is used
(V
= 0 V)
SS
ParameterSymbolConditionRangeUnit
Operating TemperatureT
Operating Voltage
Crystal Oscillation Frequencyf
Low-speed RC Oscillation
Frequency
f
Ceramic Oscillation Frequency
High-speed RC Oscillation
Frequency
f
op
V
DD
V
DDI
XT
ROSL
f
CM
ROSH
= 5 to 25 pF
C
G
= 1.5 MW
OSL
= 700 kW
OSL
= 500 kW
OSL
VDD = 0.9 to 1.2 V
= 1.5 to 2.7 V
DD
= 0.9 to 1.2 V
V
DD
VDD = 1.2 to 2.7 V
—
—0.9 to 2.7V
—
= 400 kW
R
OSH
= 100 kW
R
OSH
R
= 75 kW1M ±30%
OSH
–20 to +70°C
0.9 to 5.5V
32.768 to 76.8kHz
32 ±30%R
60 ±30%R
kHz
80 ±30%R
Not applied
300k to 500kVDD = 1.2 to 2.7 V
Hz
200k to 1MV
Not applied
200k ±30%
700k ±30%
Hz
• When backup is not used
ParameterSymbolConditionRangeUnit
Operating TemperatureT
Operating Voltage
Crystal Oscillation Frequencyf
Low-speed RC Oscillation
Frequency
Ceramic Oscillation Frequency
High-speed RC Oscillation
Frequency
V
V
f
ROSL
f
CM
f
ROSH
op
DD
DDI
XT
VDD = 1.8 to 5.5 V
C
G
R
OSL
R
OSL
R
OSL
= 1.8 to 3.5 V, R
V
DD
—
–20 to +70°C
—1.8 to 5.5V
—
= 5 to 25 pF
= 1.5 MW
= 700 kW
= 500 kW
1.8 to 5.5V
32.768 to 76.8kHz
32 ±30%
60 ±30%
80 ±30%
200k to 2MVDD = 1.8 to 5.5 V
= 100 kW
OSH
R
= 75 kW
OSH
= 51 kW
OSH
= 30 kW2M ±30%
OSH
700k ±30%R
1M ±30%
1.35M ±30%R
(V
SS
= 0 V)
kHz
Hz
Hz
19/35
Page 20
¡ SemiconductorML63187/63189B
• Typical characteristics of low-speed RC oscillation
When backup is used/backup is not used (VDD = V
1000
[kHz]
ROSL
f
100
10
100100010000
= 1.5 V/VDD = V
DDI
R
OSL
[kW]
DDI
= 3.0 V)
• Typical characteristics of high-speed RC oscillation
When backup is used (VDD = V
10000
[kHz]
ROSH
f
1000
100
101001000
DDI
= 1.5 V)
R
OSH
[kW]
20/35
Page 21
¡ SemiconductorML63187/63189B
• Typical characteristics of high-speed RC oscillation
When backup is not used (VDD = V
•RC oscillation is selected as high-speed
oscillation.
•Ports are powered from external memory
power source.
•C
is an IC power supply bypass capacitor.
v
•Values of C
C
, and CG, are for reference only.
h
, Cb, Cc, Cd, Ce, Cl, C
a
OSC0
R
OSH
OSC1
PE.3
PE.2
PE.1
PE.0
PB.3
PB.2
PB.1
PB.0
V
DDI
b12
, C12,
V
DD
Note: V
MDB
V
SS
is the power supply pin for the input-output ports.
DDI
Be sure to connect the V
pin either to the positive power supply pin (VDD) of this
DDI
device or to the positive power supply pin of the external memory.
Application Circuit Example with Power Supply Backup
31/35
Page 32
¡ SemiconductorML63187/63189B
APPLICATION CIRCUITS (ML63187)
•Crystal oscillation is selected as low-speed
oscillation.
•Ceramic oscillation is selected as high-speed
oscillation.
•Ports, external memory, and IC share their
power supply.
•C
is an IC power supply bypass capacitor.
v
•Values of C
C
, and CL1 are for reference only.
L0
, Cb, Cc, Cd, Ce, Cl, C12, CG,
a
CL0 30 pF
OSC0
Ceramic
Resonator
(Example: 1 MHz)
OSC1
C
PE.3
PE.2
L1
30 pF
PE.1
PE.0
PB.3
PB.2
PB.1
PB.0
V
DDI
V
DD
C
V
DD
G
5 to 25 pF
5.0 V
C
v
C
l
C
e
C
d
C
c
C
b
C
a
Buzzer
Crystal
32.768 kHz
Open
0.1 mF
0.1 mF
0.1 mF
0.1 mF
0.1 mF
0.1 mF
0.1 mF
C
12
Push SW
0.1 mF
XT0
XT1
V
DDH
V
DD
CB1
CB2
V
DDL
V
DD5
V
DD4
V
DD3
V
DD2
V
DD1
C1
C2
RESET
TST1
TST2
MD
COM1-16
ML63187
LCD
SEG0-63
Note: V
MDB
V
SS
is the power supply pin for the input-output ports.
DDI
Be sure to connect the V
pin either to the positive power supply pin (VDD) of this
DDI
device or to the positive power supply pin of the external memory.
Application Circuit Example with No Power Supply Backup
32/35
Page 33
¡ SemiconductorML63187/63189B
APPLICATION CIRCUITS (ML63189B)
•Crystal oscillation is selected as low-speed
LCD
Crystal
32.768 kHz
C
G
5 to
25 pF
C
1.0 mF
h
1.5 V
C
0.1 mF
v
C
C
l
C
e
C
d
C
c
C
b
C
a
b12
1.0 mF
0.1 mF
0.1 mF
0.1 mF
0.1 mF
0.1 mF
0.1 mF
XT0
XT1
V
DDH
V
DD
CB1
CB2
V
DDL
V
DD5
V
DD4
V
DD3
V
DD2
V
DD1
COM1-16
ML63189B
SEG0-63
C1
C
0.1 mF
12
Push SW
C2
RESET
TST1
Buzzer
TST2
MD
oscillation.
•RC oscillation is selected as high-speed
oscillation.
•Ports are powered from external memory
power source.
•C
is an IC power supply bypass capacitor.
v
•Values of C
C
, and CG, are for reference only.
h
, Cb, Cc, Cd, Ce, Cl, C
a
OSC0
R
OSH
OSC1
PE.3
PE.2
PE.1
PE.0
PB.3
PB.2
PB.1
PB.0
PA.3
PA.2
PA.1
PA.0
P9.3
P9.2
P9.1
P9.0
P0.3
P0.2
P0.1
P0.0
V
DDI
b12
, C12,
V
DD
Note: V
MDB
V
SS
is the power supply pin for the input and input-output ports.
DDI
Be sure to connect the V
pin either to the positive power supply pin (VDD) of this
DDI
device or to the positive power supply pin of the external memory.
Application Circuit Example with Power Supply Backup
33/35
Page 34
¡ SemiconductorML63187/63189B
APPLICATION CIRCUITS (ML63189B)
•Crystal oscillation is selected as low-speed
oscillation.
•Ceramic oscillation is selected as high-speed
oscillation.
•Ports, external memory, and IC share their
power supply.
•C
is an IC power supply bypass capacitor.
v
•Values of C
C
, and CL1 are for reference only.
L0
, Cb, Cc, Cd, Ce, Cl, C12, CG,
a
CL0 30 pF
OSC0
Ceramic
Resonator
(Example: 1 MHz)
OSC1
C
PE.3
PE.2
L1
30 pF
PE.1
PE.0
PB.3
PB.2
PB.1
PB.0
PA.3
PA.2
PA.1
PA.0
P9.3
P9.2
P9.1
P9.0
P0.3
P0.2
P0.1
P0.0
V
DDI
V
DD
C
V
DD
G
5 to 25 pF
5.0 V
0.1 mF
C
v
C
l
C
e
C
d
C
c
C
b
C
a
C
Buzzer
Crystal
32.768 kHz
Open
0.1 mF
0.1 mF
0.1 mF
0.1 mF
0.1 mF
0.1 mF
0.1 mF
12
Push SW
XT0
XT1
V
DDH
V
DD
CB1
CB2
V
DDL
V
DD5
V
DD4
V
DD3
V
DD2
V
DD1
C1
C2
RESET
TST1
TST2
MD
LCD
COM1-16
ML63189B
SEG0-63
Note: V
MDB
V
SS
is the power supply pin for the input and input-output ports.
DDI
Be sure to connect the V
pin either to the positive power supply pin (VDD) of this
DDI
device or to the positive power supply pin of the external memory.
Application Circuit Example with No Power Supply Backup
34/35
Page 35
¡ SemiconductorML63187/63189B
PACKAGE DIMENSIONS
(Unit : mm)
QFP128-P-1420-0.50-K
Mirror finish
Notes for Mounting the Surface Mount Type Package
Package material
Lead frame material
Pin treatment
Solder plate thickness
Package weight (g)
Epoxy resin
42 alloy
Solder plating
5 mm or more
1.19 TYP.
The SOP, QFP, TSOP, TQFP, LQFP, SOJ, QFJ (PLCC), SHP, and BGA are surface mount type
packages, which are very susceptible to heat in reflow mounting and humidity absorbed in
storage. Therefore, before you perform reflow mounting, contact Oki’s responsible sales person
on the product name, package name, pin number, package code and desired mounting conditions
(reflow method, temperature and times).
35/35
Page 36
E2Y0002-29-62
NOTICE
1.The information contained herein can change without notice owing to product and/or
technical improvements. Before using the product, please make sure that the information
being referred to is up-to-date.
2.The outline of action and examples for application circuits described herein have been
chosen as an explanation for the standard action and performance of the product. When
planning to use the product, please ensure that the external conditions are reflected in the
actual circuit, assembly, and program designs.
3.When designing your product, please use our product below the specified maximum
ratings and within the specified operating ranges including, but not limited to, operating
voltage, power dissipation, and operating temperature.
4.Oki assumes no responsibility or liability whatsoever for any failure or unusual or
unexpected operation resulting from misuse, neglect, improper installation, repair, alteration
or accident, improper handling, or unusual physical or electrical stress including, but not
limited to, exposure to parameters beyond the specified maximum ratings or operation
outside the specified operating range.
5.Neither indemnity against nor license of a third party’s industrial and intellectual property
right, etc. is granted by us in connection with the use of the product and/or the information
and drawings contained herein. No responsibility is assumed by us for any infringement
of a third party’s right which may result from the use thereof.
6.The products listed in this document are intended for use in general electronics equipment
for commercial applications (e.g., office automation, communication equipment,
measurement equipment, consumer electronics, etc.). These products are not authorized
for use in any system or application that requires special or enhanced quality and reliability
characteristics nor in any system or application where the failure of such system or
application may result in the loss or damage of property, or death or injury to humans.
Such applications include, but are not limited to, traffic and automotive equipment, safety
devices, aerospace equipment, nuclear power control, medical equipment, and life-support
systems.
7.Certain products in this document may need government approval before they can be
exported to particular countries. The purchaser assumes the responsibility of determining
the legality of export of these products and will take appropriate and necessary steps at their
own expense for these.
8.No part of the contents contained herein may be reprinted or reproduced without our prior
permission.
9.MS-DOS is a registered trademark of Microsoft Corporation.
Copyright 1999 Oki Electric Industry Co., Ltd.
Printed in Japan
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.