E2E0053-59-71
¡ Semiconductor
ML63187/63189B
¡ Semiconductor
This version: Jul. 1999
ML63187/63189B
Previous version: Mar. 1999
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
High-speed clock
: Crystal oscillation or RC oscillation selected with
mask option (30 to 80 kHz)
: 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
• Data memory space
• ML63187 : 1024 nibbles
• ML63189B : 1536 nibbles
1/35
¡ Semiconductor
• Stack level
Call stack level
Register stack level
ML63187/63189B
: 16 levels
: 16 levels
• 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
Input-output port
: 2 ports
¥
4 bits
ML63189B
Input port
: 1 port
¥
4 bits
Input-output port
: 4 ports
¥
4 bits
• Melody output
Melody frequency
Tone length
Tempo
Melody data
Buzzer driver signal output
:
:
:
:
:
529 to 2979 Hz
63 types
15 types
Resides in the program memory
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
¡ Semiconductor
ML63187/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
Data length
• Interrupt sources
ML63187
External interrupt
Internal interrupt
ML63189B
External interrupt
Internal interrupt
: 1
¥
or 1/2
¥
system clock, timer 1 overflow,
external clock
: 8 bits
: 2
: 12 (watchdog timer interrupt is a nonmask-
able interrupt)
: 3
: 12 (watchdog timer interrupt is a nonmask-
able interrupt)
• Operating temperature
–20 to +70°C
• Operating voltage
When backup used
When backup not 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)
: 1.8 to 5.5 V
(Operating frequency: 200 kHz to 2 MHz)
• Package:
128-pin plastic QFP (QFP128-P-1420-0.50-K) : (Product name: ML63187-xxxGA,
ML63189B-xxxGA)
Chip
: ML63187-xxx, ML63189B-xxx
xxx indicates a code number.
3/35
¡ Semiconductor
ML63187/63189B
BLOCK DIAGRAM (ML63187)
An asterisk (*) indicates the port secondary function.
indicates that the power is supplied
to the circuits corresponding to the signal names inside
from V
DDI
(power supply for
interface).
nX-4/250
CBR
H
L
RA
PC
TIMING
CON-
TROL
ROM
16KW
EBR
SP
RSP
X
Y
C
A
G
MIE
Z
BUS
CON-
TROL
ALU
STACK
CAL : 16-level
REG : 16-level
INSTRUCTION
DECODER
IR
INT
4
RAM
1024N
TIMER
8bit
¥
4
TM0CAP/TM1CAP*
TM0OVF/TM1OVF*
T02CK*
T13CK*
RESET
RST
INT
INT187
INT
1
TBC
SFT
SCLK*
SIN*
SOUT*
BLD
DATA BUS
4
TST1
TST2
TST
XT0
XT1
OSC0
OSC1
INT
1
OSC
INT
1
100HzTC
INT
1
MELODY
MD
MDB
WDT
V
DDH
V
DD
CB1
CB2
V
DD1
V
DD2
V
DD3
V
DD4
V
DD5
C1
C2
V
DDL
V
DDI
V
SS
BIAS
LCD
&
DSPR
COM1-16
SEG0-63
BACK
UP
INT
2
I/O
PORT
PB.0-PB.3
PE.0-PE.3
4/35
¡ Semiconductor
ML63187/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
DDI
(power supply for
interface).
nX-4/250
CBR
H
L
RA
PC
TIMING
CON-
TROL
ROM
32KW
EBR
SP
RSP
X
Y
C
A
G
MIE
Z
BUS
CON-
TROL
ALU
STACK
CAL : 16-level
REG : 16-level
INSTRUCTION
DECODER
IR
INT
4
RAM
1536N
TIMER
8bit
¥
4
TM0CAP/TM1CAP*
TM0OVF/TM1OVF*
T02CK*
T13CK*
INT
RESET
RST
INT
4
TST1
TST2
TST
TBC
INT
1
MELODY
INT189
1
SFT
SCLK*
SIN*
SOUT*
DATA BUS
MD
MDB
BLD
XT0
XT1
OSC
OSC0
OSC1
INT
1
INT
1
WDT
100HzTC
INT
1
INPUT
PORT
P0.0-P0.3
V
DDH
V
DD
CB1
CB2
V
DD1
V
DD2
V
DD3
V
DD4
V
DD5
C1
C2
V
DDL
BIAS
LCD
&
DSPR
INT
2
BACK
UP
P9.0-P9.3
I/O
PORT
PA.0-PA.3
PB.0-PB.3
PE.0-PE.3
COM1-16
SEG0-63
V
DDI
V
SS
5/35