4-Bit Microcontroller with Built-in RC Oscillation Type A/D Converter and LCD Driver
GENERAL DESCRIPTION
The MSM64164C is a low power 4-bit microcontroller that employs Oki's original CPU core nX4/20.
The MSM64164C is best suitable for applications such as low power, high precision thermometers and hygrometers.
The MSM64P164 is a one-time-programmable ROM-version product having one-time PROM
(OTP) as internal program memory.
The MSM64P164 is used to evaluate the software development.
The MSM64P164 differs from the MSM64164C in the polarity of the power supply.
FEATURES
• Operating range
Operating frequencies:32.768 kHz, 400 kHz
Operating voltage:1.25 to 1.7 V (1.5 V spec.)
2.0 to 3.5 V (3 V spec.)
2.2 to 3.5 V (3 V spec., 1/2 duty)
Operating temperature:–40 to +85°C
• Memory space
Internal program memory:4064 bytes
Internal data memory:256 nibbles
• Minimum instruction execution time:7.5 ms @ 400 kHz
91.6 ms @ 32.768 kHz
• RC oscillation type A/D converter:2 channels
Time dividing 2-channel method
• Serial port:Synchronous 8-bit transfer
• LCD driver:34 outputs; duty ratio switchable by software
(1) At 1/4 duty and 1/3 bias:120 segments (max)
(2) At 1/3 duty and 1/3 bias:93 segments (max)
(3) At 1/2 duty and 1/2 bias:64 segments (max)
• Package options:
80-pin plastic QFP (QFP80-P-1420-0.80-BK) : (Product name : MSM64164C-¥¥¥GS-BK)
80-pin plastic QFP (QFP80-P-1414-0.65-K): (Product name : MSM64164C-¥¥¥GS-K)
80-pin plastic TQFP (TQFP80-P-1212-0.50-K) : (Product name : MSM64164C-¥¥¥TS-K)
Chip: (Product name : MSM64164C-¥¥¥)
¥¥¥ indicates a code number.
• OTP version
The MSM64P164 has one-time PROM (OTP) as internal program memory and is used to
evaluate the software development.
The MSM64P164 differs from the MSM64164C in the polarity of the power supply and
operating voltage.
Refer to the "MSM64P164 User's Manual" for details.
Chip Size: 5.39 mm ¥ 4.48 mm
Chip Thickness: 350 mm (typ.)
Coordinate Origin: Chip center
Pad Hole Size: 100 mm ¥ 100 mm
Pad Size: 120 mm ¥ 120 mm
Minimum Pad Pitch: 180 mm
Note: The chip substrate voltage is VDD.
Y
X
7/41
Page 8
¡ SemiconductorMSM64164C
Pad Coordinates
Pad No.Y (µm)X (µm)Pad Name
1–2090–2545L0
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
L1
L2
L3
L4
L5
L6
L7
L8
L9
L10
L11
L12
L13
L14
L15
L16
18P2.0
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
P2.1
P2.2
P2.3
P3.0
P3.1
P3.2
P3.3
P4.0
P4.1
P4.2
P4.3
BD
V
SSL
V
DD
RT0
CRT0
RS0
36CS0
37IN0
38IN1
39CS1
40RS1
Pad No.Y (µm)X (µm)Pad Name
4118802545RT1
–23142545
–20832314
–18522083
–16211852
–1390
–1159
–928
–697
–466
–235
0
235
466
697
928
1159
1390
1621
1852
2083
2314
2545
2545
2545
2545
2545
2545
2545
2545
2545
2545
2545
2545
2545
2545
2545
2545
2545
2545
–2090
–2090
–2090
–2090
–2090
–2090
–2090
–2090
–2090
–2090
–2090
–2090
–2090
–2090
–2090
–2090
–2090
–2090
–2090
–2090
–2090
–2090
–1880
–1670
–1460
–1250
–1040
–830
–620
–431
–74
200
410
620
830
1040
1250
1460
1670
422090V
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72TST2207
73P1.0–207
74P1.1–431
75P1.2–655
76P1.3–879
77P0.0–1103
78P0.1–1327
79P0.2–1551
80P0.3–1747
SS1
V
SS
V
SS2
V
SS3
C1
C2
L17
L18
L19
L20
L21
L22
L23
L24
L25
L26
L27
L28
L29
L30
L31
L32
L33
OSC2
OSC1
V
DD
XT
XT
RESET
TST1
1621
1390
1159
928
697
466
235
–235
–466
–697
–928
–1159
–1390
–1621
–1852
–2083
–2314
–2545
–2545
–2545
–2545
–2545
–2545
–2545
–2545
–2545
–2545
–2545
–2545
–2545
–2545
–2545
–2545
–2545
2090
2090
2090
2090
2090
2090
2090
2090
2090
2090
0
2090
2090
2090
2090
2090
2090
2090
2090
2090
2090
2090
2090
1775
1551
1327
1103
879
655
431
8/41
Page 9
¡ SemiconductorMSM64164C
PIN DESCRIPTIONS
Basic Functions
Function
Power
Supply
Oscillation
Ports
A/D
Converter
Reset
Test
SymbolTypeDescription
V
DD
V
SS1
V
SS2
V
SS3
V
SS
—
—
—
—
—
0 V power supply
Bias output for driving LCD (–1.5 V), or negative power supply at 1.5 V spec.
Bias output for driving LCD (–3.0 V), or negative power supply at 3.0 V spec.
Bias output for driving LCD (–4.5 V).
Negative power supply for I/O port interface
Negative power supply pin for internal logic (internally generated constant
V
SSL
C1, C2—
—
voltage)
Pins for connecting a capacitor for generating V
XTI
XTO
OSC1I
OSC2O
P1.0 to P1.3O
P0.0 to P0.3I
P2.0 to P4.3I/O
BDO
L0 to L25O
L26/P5.0 to
L33/P6.3
RT0O
32.768 kHz crystal connection pins
External 400 kHz oscillation resistor (R
Output port (P1.0 : high current output)
Input port
Input-output ports
Output pin for the buzzer driver
LCD driver pins
LCD driver pins, or output ports by mask option
O
Resistance temperature sensor connection pin
OS
Resistance/capacitance temperature sensor
CRT0O
RS0
CS0
IN0
RT1
RS1
CS1
IN1
RESETI
TST1I
connection pin
Reference resistor connection pin
O
Reference capacitor connection pin
O
Input pin for RC oscillator circuit
I
Resistance temperature sensor connection pin
O
Reference resistor connection pin
O
Reference capacitor connection pin
O
Input pin for RC oscillator circuit
I
Reset pin
Input pins for testing
TST2I
, V
SS1
SS2
) connection pins
RC oscillation pins
for A/D converter
(channel 0)
(CROSC0)
RC oscillation pins
for A/D converter
(channel 1)
(CROSC1)
, and V
SS3
.
9/41
Page 10
¡ SemiconductorMSM64164C
Secondary Functions
Function
External
Interrupt
Capture
Trigger
Serial Port
RC Oscillation
Monitor
SymbolTypeDescription
P0.0I
P0.1
P0.2
P0.3
P2.0I
P2.1
P2.2
P2.3
P3.0
P3.1
P3.2
P3.3
P4.0
P4.1
P4.2
P4.3
P0.0
P0.1
P3.3I
P4.0O
P4.1O
P4.2I/O
P4.3O
Secondary functions of P0.0 to P0.3:
Level-triggered external interrupt input pins.
The change of input signal level causes an interrupt to occur.
Secondary functions of P2.0 to P2.3, P3.0 to P3.3, and P4.0 to P4.3:
Level-triggered external interrupt input pins.
The change of input signal level causes an interrupt to occur.
Secondary functions of P0.0 and P0.1:
I
Capture circuit trigger input pins.
Secondary functions of P3.3:
This pin is assigned the data input of a serial port (SIN).
Secondary functions of P4.0:
This pin is assigned the data output of a serial port (SOUT).
Secondary functions of P4.1:
This pin is assigned the ready output of a serial port (SPR).
Secondary functions of P4.2:
This pin is assigned the clock I/O of a serial port (SCLK).
Secondary functions of P4.3:
This pin is a monitor output (MON) of an RC oscillation clock (OSCCLK) for
an A/D converter and a 400 kHz RC oscillation clock for a system clock.
10/41
Page 11
¡ SemiconductorMSM64164C
,
,
,
MEMORY MAPS
Program Memory
Test program area
0FFFH
0FE0H
03EH
020H
,,,,,,,,,,,
,,,,,,,,,,,
,,,,,,,,,,,
Interrupt area
32 bytes
4064 bytes
03BH
038H
035H
032H
02FH
02CH
029H
026H
023H
020H
Contents of interrupt area
Watchdog interrupt
External interrupt (0)
Serial port interrupt
External interrupt (1)
ADC interrupt
256 Hz interrupt
32 Hz interrupt
16 Hz interrupt
1 Hz interrupt
0.1 Hz interrupt
CZP area
010H
Start address
000H
8 bits
Program Memory Map
Address 000H is the instruction execution start address by the system reset.
The CZP area from address 010H to address 01FH is the start address for the CZP subroutine of
1-byte call instruction.
The start address of interrupt subroutine is assigned to the interrupt address from address 020H
to 03DH.
The user area has 4064 bytes of address 000H to address 0FDF. No program can be stored in the
test program area.
11/41
Page 12
¡ SemiconductorMSM64164C
Data Memory
The data memory area consists of 8 banks and each bank has 256 nibbles (256 ¥ 4 bits).
The data RAM is assigned to BANK 7 and peripheral ports are assigned to BANK 0.
7FFH
780H
700H
6FFH
BANK7
Data RAM area
(256 nibbles)
Inaccessible area
Data/Stack area (128 nibbles)
Contents of 000H to 07FH
07FH
SFR area
100H
0FFH
080H
07FH
000H
Unused area
BANK 0
000H
4 bits
Data Memory Map
Half the data RAM area (128 nibbles) is shared by the stack area. The stack is a memory starting
from address 7FFH toward the low-order addresses where 4 nibbles are used by Subroutine Call
Instruction and 8 nibbles are used by an interrupt.
The addresses 080H to 0FFH of BANK 0 are not assigned as the data memory, so access to these
addresses has no effect. Moreover, it is impossible to access BANK 1 to BANK 6.
12/41
Page 13
¡ SemiconductorMSM64164C
ABSOLUTE MAXIMUM RATINGS (1.5 V Spec.)
(V
= 0 V)
DD
ParameterSymbolConditionRatingUnit
Power Supply Voltage 1V
Power Supply Voltage 2V
Power Supply Voltage 3V
Power Supply Voltage 4V
Power Supply Voltage 5V
Input Voltage 1V
Input Voltage 2V
Input Voltage 3V
Output Voltage 1V
Output Voltage 2V
Output Voltage 3V
Output Voltage 4V
Output Voltage 5V
Storage TemperatureT
SS1
SS2
SS3
SSL
SS
IN1
IN2
IN3
OUT1
OUT2
OUT3
OUT4
OUT5
STG
Ta = 25°C–2.0 to +0.3V
Ta = 25°C–4.0 to +0.3V
Ta = 25°C–5.5 to +0.3V
Ta = 25°C–2.0 to +0.3V
Ta = 25°C–5.5 to +0.3V
V
Input, Ta = 25°CV
SS1
V
Input, Ta = 25°CV
SS
V
Input, Ta = 25°CV
SSL
V
Output, Ta = 25°CV
SS1
V
Output, Ta = 25°CV
SS2
V
Output, Ta = 25°CV
SS3
V
Output, Ta = 25°CV
SS
V
Output, Ta = 25°CV
SSL
—
– 0.3 to +0.3V
SS1
– 0.3 to +0.3V
SS
– 0.3 to +0.3V
SSL
– 0.3 to +0.3V
SS1
– 0.3 to +0.3V
SS2
– 0.3 to +0.3V
SS3
– 0.3 to +0.3V
SS
– 0.3 to +0.3V
SSL
–55 to +150°C
RECOMMENDED OPERATING CONDITIONS (1.5 V Spec.)
ParameterSymbolConditionRangeUnit
Operating Temperature
Operating Voltage
External 400 kHz RC Oscillator
Resistance
Crystal Oscillation Frequency
T
op
V
SS1
V
SS
R
OS
f
XT
—
—
—
—
—
= 0 V)
(V
DD
–40 to +85°C
–1.7 to –1.25V
–5.25 to V
SS1
250 to 500kW
30 to 35kHz
V
13/41
Page 14
¡ SemiconductorMSM64164C
ELECTRICAL CHARACTERISTICS (1.5 V Spec.)
DC Characteristics
(VDD = 0 V, V
= VSS = –1.5 V, Ta = –40 to +85°C unless otherwise specified)
SS1
Parameter
V
VoltageV
SS2
VoltageV
V
SS3
VoltageV
V
SSL
Crystal Oscillation
Start Voltage
Crystal Oscillation
Hold Voltage
Crystal Oscillation
Stop Detection Time
Internal Crystal
Oscillator Capacitance
External Crystal
Oscillator Capacitance
Internal Crystal
Oscillator Capacitance
Internal 400k RC
Oscillator Capacitance
400k RC Oscillation
Frequency
POR Generation
Voltage
POR Non-generation
Voltage
Symbol
SS2Ca
SS3Ca
SSL
V
STA
V
HOLD
T
STOP
C
G
C
GEX
C
D
C
OS
f
OSC
V
POR1
V
POR2
ConditionMin.Typ.Max.Unit
+100%
, Cb, C
= 0.1 mF–3.2–3.0–2.8V
12
–50%
+100%
, Cb, C
= 0.1 mF–4.7–4.5–4.3V
12
–50%
—–1.5–1.3–0.6V
Oscillation start time:
within 5 seconds
——–1.45V
———–1.25V
—0.1—1000ms
—101520pF
When external CG used10—30pF
—101520pF
—81216pF
External resistor R
= –1.25 to –1.7 V
V
SS1
When V
is between V
SS1
and –1.5 V
No POR when V
and –1.5 V
V
POR2
= 300 kW
OS
is between
SS1
POR1
80220350kHz
–0.4—0V
–1.5—–1.2V
Measuring
Circuit
1
Notes: 1. "POR" denotes Power On Reset.
2. "T
" indicates that if the crystal oscillator stops over the value of T
STOP
system reset occurs.
STOP
, the
14/41
Page 15
¡ SemiconductorMSM64164C
DC Characteristics (continued)
Parameter
Symbol
Supply Current 1I
Supply Current 2I
Supply Current 3I
Supply Current 4I
Supply Current 5I
(VDD = 0 V, V
SS1
ConditionMin.Typ.Max.Unit
CPU in halt state
DD1
(400k RC oscillation halt)
CPU in operating state
DD2
(400k RC oscillation halt)
CPU in operating state
(400k RC oscillation in operation)
DD3
R
= 300 kW
OS
Serial transfer,
f
= 300 kHz,
SCK
DD4
CPU in operating state
(400k RC oscillaiton halt)
CPU in halt state
(400k RC oscillation
halt), RC oscillator for
DD5
A/D converter is in
operating state
= VSS = –1.5 V, Ta = –40 to +85°C unless otherwise specified)
Measuring
Circuit
Ta = –40 to +40°C
Ta = +40 to +85°C
Ta = –40 to +40°C
Ta = +40 to +85°C
—2 5mA
—230mA
—515mA
—540mA
—4080mA
Ta = –40 to +40°C
Ta = +40 to +85°C
RT0 = 10 kW
RT0 = 2 kW
—725mA
—750mA
—150230mA
—600900mA
1
15/41
Page 16
¡ SemiconductorMSM64164C
DC Characteristics (continued)
(V
DD
= 0 V, V
SS1
= V
= V
SSL
= –1.5 V, V
SS
= –3.0 V, V
SS2
Ta = –40 to +85°C unless otherwise specified)
= –4.5 V,
SS3
Parameter
(Pin Name)
Output Current 1
(P1.0)
Output Current 2
(P1.1 to P1.3)
(P2.0 to P2.3)
(P3.0 to P3.3)
(P4.0 to P4.3)
Output Current 3
(BD)
Output Current 4
(RT0, RT1, RS0, RS1,
CRT0, CS0, CS1)
Output Current 5
(When L26 to L33 are
configured as output
ports)
Symbol
I
OH1
I
OL1
I
OH1SVSS
I
OL1S
I
OH2
I
OL2
I
OH2SVSS
I
OL2S
I
OH3
I
OL3
I
OH4
I
OL4
I
OH5
I
OL5
I
OH5SVSS
I
OL5S
ConditionUnit
V
= –0.5 V
OH1
V
= VSS + 0.5 V1.03.09.0mA
OL1
= –5 V, V
V
= –5 V, V
SS
= –0.5 V
V
OH2
V
= V
OL2
SS
= –5 V, V
V
= –5 V, V
SS
V
= –0.7 V–1.8–0.6–0.2mA
OH3
V
= V
OL3
SS1
V
= –0.1 V–1.1–0.6–0.3mA
OH4
V
= V
OL4
SS1
V
= –0.5 V–1.5–0.5–0.1mA
OH5
V
= V
OL5
SS
= –5 V, V
V
= –5 V, V
SS
= –0.5 V–36–12–4.0mA
OH1S
= V
OL1
+ 0.5 V4.01236mA
SS
+ 0.5 V0.20.72.1mA
= –0.5 V–9.0–3.0–1.0mA
OH2S
= V
OL2
+ 0.5 V1.03.09.0mA
SS
+ 0.7 V0.20.61.8mA
+ 0.1 V0.30.61.1mA
+ 0.5 V0.10.51.5mA
= –0.5 V–2.0–0.7–0.2mA
OH5S
= V
OL5S
+ 0.5 V0.20.72.0mA
SS
Min.Typ.Max.
–2.1–0.7–0.2mA
–2.1–0.7–0.2mA
Measuring
Circuit
2
Output Current 6
(OSC2)
Output Current 7
(L0 to L33)
Output Leakage Current
(P1.0 to P1.3)
(P2.0 to P2.3)
(P3.0 to P3.3)
(P4.0 to P4.3)
(RT0, RT1, RS0, RS1,
CRT0, CS0, CS1)
I
OH6
I
I
OH7
I
OMH7VOMH7
I
OMH7SVOMH7S
I
OML7VOML7
I
OML7SVOML7S
I
I
OOH
I
OOL
OL6
OL7
V
V
V
V
V
V
OH6
OL6
OH7
OL7
OH
OL
= V
= V
= V
= –0.5 V–2.1–0.7–0.2mA
= V
+ 0.5 V0.20.72.1mA
SS1
= –0.2 V
= V
SS1
= V
SS1
= V
SS2
= V
SS2
+ 0.2 V
SS3
DD
SS1
+ 0.2 V
– 0.2 V
+ 0.2 V
– 0.2 V
(VDD level)
(V
level)
SS1
level)
(V
SS1
(V
level)
SS2
(V
level)
SS2
(V
level)
SS3
——–4.0mA
4.0——mA
——–4.0mA
4.0——mA
——–4.0mA
4.0——mA
——0.3mA
–0.3——mA
16/41
Page 17
¡ SemiconductorMSM64164C
DC Characteristics (continued)
Parameter
(Pin Name)
Input Current 1
(P0.0 to P0.3)
(P2.0 to P2.3)
(P3.0 to P3.3)
(P4.0 to P4.3)
Input Current 2
(IN0, IN1)
Input Current 3
(OSC1)
Symbol
I
IH1
I
IL1
I
IH1S
I
IL1S
I
IH1Z
I
IL1Z
I
IH2
I
IH2Z
I
IL2Z
I
IL3
I
IH3Z
I
IL3Z
(V
= 0 V, V
DD
SS1
= V
SSL
= V
= –1.5 V, V
SS
= –3.0 V, V
SS2
= –4.5 V,
SS3
Ta = –40 to +85°C unless otherwise specified)
ConditionUnit
V
= V
IH1
V
IL1
V
= V
IH1
V
IL1
V
IH1
V
IL1
V
IH2
V
IH2
V
IL2
V
IL3
V
IH3
V
IL3
(when pulled down)
DD
= V
(when pulled up)–60–18–5.0mA
SS
, V
= –5 V (when pulled down)
DD
SS
= V
= –5 V (when pulled up)
SS
= V
(in a high impedance state)
DD
= V
(in a high impedance state)
SS
= V
(when pulled down)5.01860mA
DD
(in a high impedance state)
= V
DD
= V
(in a high impedance state)
SS1
= V
(when pulled up)–60–22–6.0mA
SS1
= V
(in a high impedance state)
DD
= V
(in a high impedance state)
SS1
Min.Typ.Max.
5.01860mA
70250660mA
–660–250–70mA
0—1.0mA
–1.0—0mA
0—1.0mA
–1.0—0mA
0—1.0mA
–1.0—0mA
Measuring
Circuit
3
Input Current 4
(RESET, TST1, TST2)
Input Voltage 1
(P0.0 to P0.3)
(P2.0 to P2.3)
(P3.0 to P3.3)
(P4.0 to P4.3)
Input Voltage 2
(IN0, IN1, OSC1)
Input Voltage 3
(RESET, TST1, TST2)
V
V
I
I
V
V
IH1S
V
V
V
V
IH4
IL4
IH1
IL1
IL1S
IH2
IL2
IH3
IL3
V
V
V
V
IH4
IL4
SS
SS
= V
DD
= V
SS1
= –5 V
= –5 V
0—1.0mA
–1.5–0.75–0.3mA
—–0.3—0V
—–1.5—–1.2V
–1.0—0V
–5.0—–4.0V
4
—–0.3—0V
—–1.5—–1.2V
—–0.3—0V
—–1.5—–1.2V
17/41
Page 18
¡ SemiconductorMSM64164C
DC Characteristics (continued)
(V
DD
= 0 V, V
SS1
= V
= V
SSL
= –1.5 V, V
SS
= –3.0 V, V
SS2
= –4.5 V,
SS3
Ta = –40 to +85°C unless otherwise specified)
Parameter
(Pin Name)
Hysteresis Width
(P0.0 to P0.3)
(P2.0 to P2.3)
(P3.0 to P3.3)
(P4.0 to P4.3)
Hysteresis Width
(RESET, TST1, TST2)
Input Pin Capacitance
(P0.0 to P0.3)
(P2.0 to P2.3)
(P3.0 to P3.3)
(P4.0 to P4.3)
Symbol
DV
T1
DV
T1S
DV
T2
C
IN
V
SS
ConditionUnit
Min.Typ.Max.
—0.050.10.3V
= –5 V
0.251.01.5V
—0.050.10.3V
———5.0pF
Measuring
Circuit
4
1
18/41
Page 19
¡ SemiconductorMSM64164C
Measuring circuit 1
CS0
RT0RI0
R
OS
C
l
V
Measuring circuit 2
OSC1
OSC2
V
SSL
RT0CS0IN0
XT
Crystal
32.768 kHz
XT
C1
C
12
C2
V
DD
V
SS1
V
SS2
A
C
a
V
SS3
C
b
VV
V
SS
Ca, Cb, C12, C
R
OS
RT0
CS0
RI0
: 0.1 mF
l
: 300 kW
: 10 kW/2 kW
: 820 pF
: 10 kW
(*2)
V
IH
(*1)
OUTPUT
A
INPUT
V
IL
V
DD
V
SS1
V
SS2
V
SS3
V
SSL
V
SS
19/41
Page 20
¡ SemiconductorMSM64164C
Measuring circuit 3
(*3)
A
Measuring circuit 4
V
IH
(*3)
V
IL
INPUT
INPUT
OUTPUT
V
DD
V
SS1
V
SS2VSS3
V
SSL
V
SS
Waveform
OUTPUT
Monitoring
DD
V
V
SS1
V
SS2VSS3
V
SSL
V
*1 Input logic circuit to determine the specified measuring conditions.
*2 Measured at the specified output pins.
*3 Measured at the specified input pins.
SS
20/41
Page 21
¡ SemiconductorMSM64164C
(
)
A/D Converter Characteristics
= 0 V, V
(V
DD
ParameterSymbolCondition
RS0, RS1,
Resistor
for Oscillation
RT0,
RT0-1,
CS0, CT0, CS1 ≥ 740 pF
RT1
Input Current
Limiting Resistor
Oscillation
Frequency
RI0, RI1
f
OSC1
f
OSC2
f
OSC3
Kf1
Resistor for oscillation = 2 kW
Resistor for oscillation = 10 kW
Resistor for oscillation = 200 kW
RT0, RT0-1, RT1 = 2 kW
RS•RT Oscillation
Frequency Ratio
(*)
Kf2
Kf3
RT0, RT0-1, RT1 = 10 kW
RT0, RT0-1, RT1 = 200 kW
SS1
—
= V
= –1.5 V, Ta = –40 to +85°C unless otherwise specified)
SS
Min.Typ.Max.
2.0
1.0
165
41.8
2.55
3.89
0.990
0.0561
——
10
221
52.2
3.04
4.18
1.0
0.0584
—
256
60.6
3.53
4.35
1.010
0.0637
Unit
kW
kW
kHz
kHz
kHz
—
—
—
Measur-
ing
Circuit
5
*Kfx is the ratio of the oscillation frequency by a sensor resistor to the oscillation frequency
*1 Input logic circuit to determine the specified measuring conditions.
*2 Measured at the specified output pins.
*3 Measured at the specified input pins.
31/41
Page 32
¡ SemiconductorMSM64164C
(
)
A/D Converter Characteristics
(V
= 0 V, V
DD
SS2
= V
= –3.0 V, Ta = –40 to +85°C unless otherwise specified)
SS
ParameterSymbolCondition
Min.Typ.Max.
Unit
Measur-
ing
Circuit
RS0, RS1,
Resistor
for Oscillation
RT0,
RT0-1,
CS0, CT0, CS1 ≥ 740 pF
1.0
——
kW
RT1
Input Current
Limiting Resistor
RI0, RI1
—
1.0
10
—
kW
5
Oscillation
Frequency
f
OSC1
f
OSC2
f
OSC3
Kf1
Resistor for oscillation = 2 kW
Resistor for oscillation = 10 kW
Resistor for oscillation = 200 kW
RT0, RT0-1, RT1 = 2 kW
200
46.5
2.79
4.115
239
55.4
3.32
4.22
277
64.3
3.85
4.326
kHz
kHz
kHz
—
RS•RT Oscillation
Frequency Ratio
(*)
Kf2
Kf3
RT0, RT0-1, RT1 = 10 kW
RT0, RT0-1, RT1 = 200 kW
0.990
0.0573
1.0
0.0616
1.010
0.0659
—
—
*Kfx is the ratio of the oscillation frequency by a sensor resistor to the oscillation frequency
The MSM64164C has a built-in 2-channel RC oscillation type A/D converter. The A/D converter
is composed of a 2-channel oscillation circuit, Counter A (CNTA0-4, a 4.8-digit decade counter),
Counter B (CNTB0-3, a 14-bit binary counter), and A/D Converter Control Registers 0 and 1
(ADCON0, ADCON1).
By counting oscillation frequencies that vary depending on a resistor or capacitor connected to
the RC oscillation circuit, the A/D converter converts resistance values or capacitance values to
corresponding digital values. By using a thermistor or humidity sensor as a resistance, a
thermometer or a hygrometer can be constructed. By applying a separate sensor to each channel
of the 2-channel RC oscillation circuit, it is also possible to extend measure ranges or measure at
two places.
• Serial port (SIOP)
The MSM64164C has an 8-bit synchronous serial port. Receive/transmit operation of the serial
port is performed simultaneously and the serial transfer clock can select either internal or
external mode. Direction of transfer data can be big endian or little endian. Each pin of the serial
port is assigned as secondary functions of P3.3 and P4.0 to P4.2. Setting each bit of SIN, SOUT,
SPR and SCLK of P33CON and P40CON to P42CON to "1" makes each pin valid.
• LCD driver (LCD)
The MSM64164C has a built-in LCD driver for 34 outputs.
The LCD driver consists of 31 ¥ 4-bit display registers (DSPR0-30), the Display Control Register
(DSPCON), a 34-output LCD driver circuit, and a bias generation circuit (BIAS).
There are three types of driving methods: 1/4 duty, 1/3 duty and 1/2 duty. Software selects the
duty mode.
A mask option can select either a common driver or a segment driver for each LCD driver pin.
A mask option can also specify assignment of each bit of the display register to each segment.
All the display registers must be selected by a mask option.
L26 to L33 of the LCD driver can be configured to be output ports by a mask option.
The relationship between the duty, the bias method, and the maximum segment number follows:
The MSM64164C has a built-in buzzer driver with 15 buzzer output frequencies and 4 buzzer
output modes. Each buzzer output is selected by the Buzzer Control Register (BDCON) and the
Buzzer Frequency Control Register (BFCON).
• Capture circuit (CAPR)
The MSM64164C captures 32 Hz to 256 Hz output of the time base counter at the falling of Port
0.0 or 0.1 (P0.0 or P0.1) to "L" level when the pull-up resistor input is chosen, or at the rising to
"H" level when the pull-down resistor input is chosen. The capture circuit is composed of the
Capture Control Register (CAPCON) and the Capture Registers (CAPR0, CAPR1) that fetch
output from the time base counter.
35/41
Page 36
¡ SemiconductorMSM64164C
• Watchdog timer (WDT)
The MSM64164C has a built-in watchdog timer to detect CPU malfunction. The watchdog timer
is composed of a 6-bit watchdog timer counter (WDTC) to count a 16 Hz output and a watchdog
timer control register (WDTCON) to reset WDTC.
• Clock generation circuit (2CLK)
The clock generation circuit (2CLK) in the MSM64164C contains a 32.768 kHz crystal oscillation
circuit, a 400 kHz RC oscillation circuit, and a clock control port. This circuit generates the system
clock (CLK) and the time base clock (32.768 kHz).
The system clock drives the CPU while the time base clock drives the time base counter and the
buzzer driver.
Via the contents of the frequency Control Register (FCON), the system clock can be switched
between 32.768 kHz (the output of the crystal oscillation circuit) and 400 kHz (the output of the
RC oscillation circuit).
Note:The oscillation frequency of the RC oscillation circuit varies depending on the value of
an external resistor (ROS), operating power supply voltage (VDD), and ambient
temperatures (Ta).
• Time base counter (TBC)
The MSM64164C has a built-in time base counter (TBC) that generates clocks to be supplied to
internal peripheral circuits. The time base counter is composed of 15 binary counters and a 1/
10 frequency dividing circuit. The count clock of the time base is driven by the oscillation clock
(32.768 kHz) of the crystal oscillation circuit. The output of the time base counter is used for the
buzzer driver, the system reset circuit, the watchdog timer, the time base interrupt, the sampling
clocks of each port, and the capture circuit.
impedance input, CMOS output or NMOS
open drain output: these can be specified for
each bit; external 0 interrupt
Input port (P0) (4 bits): Pull-up (pull-down) resistor input or high-
impedance input; external 1 interrupt
Output port (P1) (4 bits): CMOS output or NMOS open drain output
• Interrupt (INTC)
The MSM64164C has ten interrupt sources (10 vector addresses), of which two are external
interrupts from ports and eight are internal interrupts.
Of the ten interrupt sources, only the watchdog interrupt cannot be disabled (non-maskable
interrupt). The other nine interrupts are controlled by the master interrupt enable flag (MI) and
the interrupt enable registers (IE0, IE1 and IE2). When an interrupt condition is met, the CPU
branches to a vector address corresponding to the interrupt source.
36/41
Page 37
37/41
¡ SemiconductorMSM64164C
APPLICATION CIRCUITS
3.0 V Spec. Application Circuit
RT1 RS1 CS1 RI1
L33L0OSC2
OSC1
XT
XT
RESET
P1.0
P1.1
P1.2
P1.3
P0.0
P0.1
P0.2
P0.3
TST1
TST2
V
SSL
V
SS1
V
SS2
V
SS3
C1
C2
V
DD
3 V
C2
C
12
C
b
C
a
C
l
R
OS
Crystal
32.768 kHz
C
GEX
RI0
RT0
Buzzer
OSC monitor
IN0
CS0
RS0
CRT0
RT0
IN1
CS1
RS1
RT1
BD
P4.3
P4.2
MSM64164C-xxx
(3.0 V spec.)
L C D
CS0
RS0
• With 5 V interface
• Temperature
measurement
by two thermistors
• C
GEX
of crystal
oscillator : External
Switch matrix (4 ¥ 4)
V
SS
5 V
C
S
P4.1
P4.0
P3.3
SCLK
SPR
SOUT
SIN
To serial communication
interface (to 5 V (V
SS
) system)
Page 38
38/41
¡ SemiconductorMSM64164C
APPLICATION CIRCUITS (continued)
1.5 V Spec. Application Circuit
L33L0
OSC2
OSC1
XT
XT
RESET
P1.0
P1.1
P1.2
P1.3
P0.0
P0.1
P0.2
P0.3
TST1
TST2
V
SSL
V
SS1
V
SS2
V
SS3
C1
C2
V
DD
1.5 V
C1
C
12
C
b
C
l
R
OS
Crystal
32.768 kHz
Switch matrix (4 ¥ 4)
RT1 RS1 CS1 RI1
RS0
RT0
Buzzer
IN0
CS0
RS0
CRT0
RT0
IN1
CS1
RS1
RT1
BD
P4.3
MSM64164C-xxx
(1.5 V spec.)
L C D
C
a
RI0
CS0
• Without 5 V interface
• Temperature
measurement
by two thermistors
• C
G
of crystal oscillator :
Internal
V
SS
P4.2
P4.1
P4.0
P3.3
Page 39
¡ SemiconductorMSM64164C
PACKAGE DIMENSIONS
(Unit : mm)
QFP80-P-1420-0.80-BK
Mirror finish
Package material
Lead frame material
Pin treatment
Solder plate thickness
Package weight (g)
Epoxy resin
42 alloy
Solder plating
5 mm or more
1.27 TYP.
Notes for Mounting the Surface Mount Type Package
The SOP, QFP, TSOP, 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 for the
product name, package name, pin number, package code and desired mounting conditions
(reflow method, temperature and times).
39/41
Page 40
¡ SemiconductorMSM64164C
(Unit : mm)
QFP80-P-1414-0.65-K
Mirror finish
Package material
Lead frame material
Pin treatment
Solder plate thickness
Package weight (g)
Epoxy resin
42 alloy
Solder plating
5 mm or more
0.85 TYP.
Notes for Mounting the Surface Mount Type Package
The SOP, QFP, TSOP, 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 for the
product name, package name, pin number, package code and desired mounting conditions
(reflow method, temperature and times).
40/41
Page 41
¡ SemiconductorMSM64164C
(Unit : mm)
TQFP80-P-1212-0.50-K
Mirror finish
Package material
Lead frame material
Pin treatment
Solder plate thickness
Package weight (g)
Epoxy resin
42 alloy
Solder plating
5 mm or more
0.40 TYP.
Notes for Mounting the Surface Mount Type Package
The SOP, QFP, TSOP, 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 for the
product name, package name, pin number, package code and desired mounting conditions
(reflow method, temperature and times).
41/41
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.