Dear customers,
About the change in the name such as "Oki Electric Industry Co. Ltd." and
"OKI" in documents to OKI Semiconductor Co., Ltd.
The semiconductor business of Oki Electric Industry Co., Ltd. was succeeded to OKI
Semiconductor Co., Ltd. on October 1, 2008.
Therefore, please accept that although
the terms and marks of "Oki Electric Industry Co., Ltd.", “Oki Electric”, and "OKI"
remain in the documents, they all have been changed to "OKI Semiconductor Co., Ltd.".
It is a change of the company name, the company trademark, and the logo, etc. , and
NOT a content change in documents.
October 1, 2008
OKI Semiconductor Co., Ltd.
550-1 Higashiasakawa-cho, Hachioji-shi, Tokyo 193-8550, Japan
http://www.okisemi.com/en/
E2E0036-38-95
¡ Semiconductor
MSM64167
¡ Semiconductor
This version:
MSM64167
Sep. 1998
Previous version: Mar. 1996
4-Bit Microcontroller with Built-in Dual-Slope Type A/D Converter and LCD Driver
GENERAL DESCRIPTION
The MSM64167 is a low power 4-bit microcontroller that employs Oki's original CPU core nX-
4/20.
The MSM64167 contains a dual-slope type A/D converter with a 4-channel input, LCD driver for
up to 108 segments, and buzzer output port.
The MSM64167 is best suited for applications such as low power, high precision thermometers,
barometers, and hygrometers.
FEATURES
• Operating range
Operating frequencies
Operating voltage
Operating temperature
• Memory space
Internal program memory
Internal data memory
• Minimum instruction execution time
• Dual-slope type A/D converter
• LCD driver
(1) At 1/4 duty and 1/3 bias
(2) At 1/3 duty and 1/3 bias
(3) At 1/2 duty and 1/2 bias
• Buzzer driver
• Timer
Auto-reload mode
Capture mode
Clock frequency measuring mode
• Watchdog timer
• Clock
CPU clock
Time base clock
• Power supply voltage
• I/O port
Input-output port
Output port
:
:
:
:
:
:
:
:
:
:
:
:
:
32.768 kHz, 700 kHz
2.6 to 3.6 V
–40 to +85°C
4064 bytes
256 nibbles
4.3
ms
@ 700 kHz
91.6
ms
@ 32.768 kHz
4-channel input
31 outputs; duty ratio switchable by software
108 segments (max)
84 segments (max)
58 segments (max)
1 output (4 output modes selectable)
16-bit
¥
1
:
:
:
:
:
:
32.768 kHz crystal oscillator and 700 kHz RC
oscillator (with an external resistor)
32.768 kHz/700 kHz (switchable by software)
32.768 kHz
3V
3 ports
¥
4 bits
2 ports
¥
4 bits
(8 out of the 31 LCD driver outputs can be used
as output-only ports by mask option.)
Synchronous/asynchronous mode support
32.768 kHz/external clock
9600 bps/4800 bps/2400 bps/1200 bps
• Serial port
Synchronous mode
Asynchronous mode
:
:
:
1/28
¡ Semiconductor
• Interrupt sources
External interrupt
:
Internal interrupt
:
• Package:
80-pin plastic QFP (QFP80-P-1420-0.80-BK)
Chip
MSM64167
2 sources
8 sources
: (Product name : MSM64167-¥¥¥GS-BK)
: (Product name : MSM64167-¥¥¥)
¥¥¥
indicates a code number.
2/28
¡ Semiconductor
MSM64167
BLOCK DIAGRAM
CPU CORE: nX-4/20
BSR
TR2
TR0
(4)
HALT
C
ALU
PCM PCL
TR1
PCH
A11 to A8
A7 to A0
ROM
4064B
MIEF
B
A
(4)
(4)
H
L
X
DB7 to DB0
Y
(8)
RAM
256N
IR
DECODER
OSC2
OSC1
XT
XT
RESET
2CLK
TBC
IR
TIMING
CONTROLLER
SP
ROMR
(8)
INTC
INT
V
SS
P2.3
P2.2
P2.1
P2.0
P1.3
P1.2
P1.1
P1.0
P0.3
P0.2
P0.1
P0.0
RSTG
WDT
PORT2
V
SS
TST1
TST2
V
SSL
L0
L1
TST
3
INT
INT
INT
PORT1
SIOP
VR
2
INT
LCD
TM
L30
V
SS
V
SS1
V
SS2
V
SS3
C1
C2
V
DD
V
SS
BD
INT
V
SS
PORT0
BIAS
INT
PORT ADDRESS
DB7 to DB0
V
SS
V
SSA
OPP1
OPN1
OPO1
OPP0
OPN0
OPO0
VOF
ADC
V
DDA
VrA
AIN0
AIN1
AIN2
AIN3
RA
Rl
CZ1
Cl
CZ2
VG
RCM
BD
3/28
¡ Semiconductor
PIN CONFIGURATION (TOP VIEW)
78
P2.3
77
P2.2
76
P2.1
75
P2.0
80
L1
79
L0
,
74
P1.3
73
P1.2
72
P1.1
71
P1.0
MSM64167
65
V
SSA
70
P0.3
69
P0.2
68
P0.1
67
P0.0
66
V
SS
L2
L3
L4
L5
L6
L7
L8
L9
L10
L11
L12
L13
L14
L15
L16
L17
L18
L19
L20
L21
L22
L23
L24
L25
1
2
3
4
5
6
7
8
9
64
OPP1
63
OPN1
62
OPO1
61
OPP0
60
OPN0
59
OPO0
58
VG
57
CZ2
56
CI
55
CZ1
54
RCM
53
RI
52
RA
51
AIN3
50
AIN2
49
AIN1
48
AIN0
47
VrA
46
V
DDA
45
VOF
44
V
SSL
43
RESET
42
TST2
41
TST1
10
11
12
13
14
15
17
18
19
20
21
22
23
24
16
L26
25
L27
26
L28
27
L29
28
L30
29
OSC2
30
OSC1
31
V
DD
32
XT
33
XT
34
V
SS2
35
C2
36
C1
37
V
SS3
38
V
SS1
39
BD
40
80-Pin Plastic QFP
4/28