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
¡ 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
¡ 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