4-Bit Microcontroller with Built-in RC Oscillation Type A/D Converter and LCD Driver
GENERAL DESCRIPTION
The MSM64162A is a low power 4-bit microcontroller that employs Oki's original CPU core nX4/20.
The MSM64162A has 2-channel RC oscillation type A/D converter, LCD driver for up to 80
segments, and buzzer output port. It is best suited for applications such as low power, high
precision thermometers and hygrometers.
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:2016 bytes
Internal data memory:128 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 division 2-channel method
• LCD driver:24 outputs
(1) At 1/4 duty and 1/3 bias:80 segments (max)
(2) At 1/3 duty and 1/3 bias:63 segments (max)
(3) At 1/2 duty and 1/2 bias:44 segments (max)
Voltage Regulator for LCD Driver (selectable by mask option)
The LCD panel display is stable regardless of temporary supply voltage drop, because
the voltage generated by the voltage regulator for LCD driver is supplied to the bias
voltage generator as a reference voltage.
LCD Operating Voltage
When the voltage regulator for LCD driver is used
:3.6 V (Duty cycle = 1/4 or 1/3)
2.4 V (Duty cycle = 1/2)
When the voltage regulator for LCD driver is not used
Chip Size: 3.96 mm ¥ 4.32 mm
Chip Thickness: 350 mm (typ.)
Coordinate Origin: Chip center
Pad Hole Size: 110 mm ¥ 110 mm
Pad Size: 120 mm ¥ 120 mm
Minimum Pad Pitch: 180 mm
Note: The chip substrate voltage is VDD.
X
5/40
Page 6
¡ SemiconductorMSM64162A
Pad Coordinates
Pad No.Y (µm)X (µm)Pad NamePad No.Y (µm)X (µm)Pad Name
1P0.01828.80–1940.40
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
201769.70
211589.70
221317.60
P0.1
P0.2
P0.3
RT0
CRT0
RS0
CS0
IN0
IN1
CS1
RS1
RT1
P2.0
P2.1
P2.2
P2.3
P3.0
P3.1
P3.2
P3.3
BD
1828.80
1828.80
1828.80
1828.80
1828.80
1828.80
1828.80
1828.80
1828.80
1828.80
1828.80
1828.80
1828.80
1828.80
1828.80
1828.80
1828.80
1828.80
23P1.0999.30
24P1.1674.70
25P1.2354.90
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
P1.3
V
SS
V
SS1
V
SS2
V
SSL
V
SS3
C1
C2
L0
L1
L2
L3
L4
L5
L6
30.30
–231.00
–411.00
–647.10
–1289.40
–1469.40
–1649.40
–1829.40
–1829.40
–1829.40
–1829.40
–1829.40
–1829.40
–1829.40
–1829.40
–1719.30
–1539.30
–1310.10
–1048.50
–831.30
–651.30
–396.00
–208.20
–12.90
175.50
390.30
580.50
794.10
1001.70
1194.00
1374.00
1555.20
1735.20
1957.80
1957.80
1957.80
1957.80
1957.80
1957.80
1957.80
1957.80
1957.80
1957.80
1957.80
1957.80
1957.80
1957.80
1704.00
1524.00
1344.00
1111.20
919.50
739.50
559.50
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
L7
L8
L9
L10
L11
L12
L13
L14
L15
L16
L17
–1829.40
–1829.40
–1829.40
–1829.40
–1829.40
–1829.40
–1829.40
–1829.40
–1829.40
–1829.40
–1829.40–1710.00
L18–1829.40
L19
L20
L21
L22
L23
OSC1
OSC2
V
DD
XT
XT
RESET
TST1
TST2
–1495.20
–1226.70
–958.80
–694.80
–448.80
–243.00
24.90
300.60
480.60
660.60
979.50
1247.70
1599.90
379.50
199.50
10.20
–232.20
–412.20
–592.20
–772.20
–1008.00
–1290.00
–1470.00
–1928.10
–1957.50
–1957.50
–1957.50
–1957.50
–1957.50
–1957.50
–1957.50
–1957.50
–1957.50
–1957.50
–1957.50
–1957.50
–1957.50
6/40
Page 7
¡ SemiconductorMSM64162A
PIN DESCRIPTIONS
Basic Functions
Function SymbolPinPadTypeDescription
V
DD
74
60
—0 V power supply
Negative power supply:
V
SS
34
27
—
Ground V
Ground V
. (for 1.5 V spec.)
SS1
. (for 3.0 V spec.)
SS2
Negative power supply (for 1.5 V spec.)
Bias output for drivig LCD (–1.5 V) (for 3.0 V spec.)
Power
Supply
V
SS1
V
SS2
V
SS3
C1
C2
35
37
40
41
42
28
—
29—
31
32
33
—
—
—
Bias output for driving LCD (–1.2 V) (when the voltage
regulator for LCD driver is used)
Negative power supply (for 3.0 V spec.)
Bias output for driving LCD (–3.0 V) (for 1.5 V spec.)
Bias output for driving LCD (–4.5 V).
Pins for connecting a capacitor for generating LCD
driving bias
Negative power supply for internal logic
V
SSL
3930
—
(An internally generated constant voltage is present at
this pin.)
61
62
58
59
I
O
I
O
Low-speed clock oscillation input and output pins:
Connect to a crystal (32.768 kHz).
High-speed clock oscillation input and output pins:
Connect to an external resistor for oscillation (R
Input pins for testing.
A pull-up resistor is internally connected to these pins.
Oscillation
Test
XT
XT
OSC1
OSC2
TST1
TST2
76
77
71
72
8064I
165 I
System reset input pin.
Setting this pin to "L" level puts this device into a reset state.
Reset
RESET
79
63
I
Then, setting this pin to "H" level starts executing an
instruction from address 000H.
A pull-up resistor is internally connected to this pin.
OS
).
7/40
Page 8
¡ SemiconductorMSM64162A
Basic Functions (continued)
Function SymbolPinPadTypeDescription
P0.021I
P0.132I
P0.243I
P0.354I
4-bit input port (P0):
Selectable as pull-up resistor input, pull-down resistor
input, or high impedance input by the port 01 control
register (P01CON).
As secondary functions, P0.0 to P0.3 are assigned
external interrupt functions, P0.0 and P0.1 are assigned
a capture trigger function, and P0.3 is assigned an
1210IIN1Input pin for RC oscillator circuit (for channel 1)
4-bit output port (P1):
Selectable as NMOS open drain output or CMOS output
by the port 01 control register (P01CON). P1.0 is a
high current drive output port.
4-bit input-output port (P2):
Following can be specified for each bit by the port 2
control registers 0 to 3 (P20CON to P23CON): (1) input
or output, (2) pull-up/pull-down resistor input or high
impedance input, and (3) NMOS open drain output or
CMOS output.
As secondary functions, P2.0 to P2.3 are assigned
external interrupt functions.
4-bit input-output port (P3):
Following can be specified for each bit by the port 3
control registers 0 to 3 (P30CON to P33CON): (1) input
or output, (2) pull-up/pull-down resistor input or high
impedance input, and (3) NMOS open drain output or
CMOS output.
As secondary functions, P3.0 to P3.3 are assigned
external interrupt functions, P3.3 is assigned a function
that monitors the RC oscillation clock for A/D converter.
Resistance temperature sensor connection pin
(for channel 0)
Resistance/capacitance temperature sensor connection
pin (for channel 0)
Resistance temperature sensor connection pin
(for channel 1)
8/40
Page 9
¡ SemiconductorMSM64162A
Basic Functions (continued)
Function SymbolPinPadTypeDescription
LCD
Driver
L1
4334OL0
4435O
4536OL2
4637OL3
4738OL4
4839OL5
4940OL6
5041OL7
5142OL8
5243OL9
5444OL10
5545OL11
5646OL12
5747OL13
5848OL14
6049OL15
LCD segment and common signals output pins.
6150OL16/P5.0
6251OL17/P5.1
6352OL18/P5.2
6453OL19/P5.3
6554OL20/P6.0
6655OL21/P6.1
6856OL22/P6.2
6957OL23/P6.3
LCD segment and common signals output pins.
Functions as output ports by mask option.
9/40
Page 10
¡ SemiconductorMSM64162A
Secondary Functions
Function SymbolPinPadTypeDescription
14
15
16
17
18
19
20
21
21
1
2
3
4
4
I
I
I
O
I
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 and P3.0 to P3.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:
Capture circuit trigger input pins.
Secondary function of P3.3:
Monitor output pin for an RC oscillation clock for A/D
converter and a 400 kHz RC oscillation clock for the
system clock.
Secondary function of P0.3:
Analog comparator input pin for battery check.
External
Interrupt
Capture
Trigger
RC Oscillation
Monitor
Battery
Check
P0.0
P0.1
P0.2
P0.3
P2.0
P2.1
P2.2
P2.3
P3.0
P3.1
P3.2
P3.3
P0.0
P0.1
P3.3
P0.3
2
3
4
5
17
18
19
20
21
22
24
25
21
32
25
5
10/40
Page 11
¡ SemiconductorMSM64162A
,
,
,
MEMORY MAPS
Program Memory
Test program area
07FFH
07E0H
03EH
,,,,,,,,,,,
,,,,,,,,,,,
,,,,,,,,,,,
Interrupt area
32 bytes
2016 bytes
03BH
038H
032H
02FH
02CH
029H
026H
023H
020H
Contents of interrupt area
Watchdog interrupt
External interrupt (0)
External interrupt (1)
ADC interrupt
256 Hz interrupt
32 Hz interrupt
16 Hz interrupt
1 Hz interrupt
4 Hz interrupt
020H
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 2016 bytes of address 000H to address 07DFH. No program can be stored in
the test program area.
11/40
Page 12
¡ SemiconductorMSM64162A
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
77FH
700H
BANK 7
Data RAM area
Unused area
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
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 and the addresses 700H to 77FH of BANK 7 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/40
Page 13
¡ SemiconductorMSM64162A
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
SS
SS1
SS2
SS3
SSL
IN1
IN2
IN3
OUT1
OUT2
OUT3
OUT4
OUT5
STG
Ta = 25°C–2.0 to +0.3V
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
V
Input, Ta = 25°CV
SS
V
Input, Ta = 25°CV
SS1
V
Input, Ta = 25°CV
SSL
V
Output, Ta = 25°CV
SS
V
Output, Ta = 25°CV
SS1
V
Output, Ta = 25°CV
SS2
V
Output, Ta = 25°CV
SS3
V
Output, Ta = 25°CV
SSL
—
– 0.3 to +0.3V
SS
– 0.3 to +0.3V
SS1
– 0.3 to +0.3V
SSL
– 0.3 to +0.3V
SS
– 0.3 to +0.3V
SS1
– 0.3 to +0.3V
SS2
– 0.3 to +0.3V
SS3
– 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
, V
SS
SS1
R
OS
f
XT
V
SS1
—
is grounded
—
—
(V
= 0 V)
DD
–40 to +85°C
–1.7 to –1.25V
250 to 500k
30 to 35kHz
W
13/40
Page 14
¡ SemiconductorMSM64162A
ELECTRICAL CHARACTERISTICS (1.5 V Spec.)
DC Characteristics
(VDD = 0 V, VSS = V
= –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
Battery Check
Reference Voltage
Temperature
V
RB
Variation
Symbol
SS2Ca
SS3Ca
SSL
V
STA
V
HOLD
T
STOP
C
G
C
GEX
C
D
C
OS
f
OSC
V
POR1
V
POR2
V
RB
DV
RB
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
—8.01216pF
External resistor R
= –1.25 to –1.7 V
V
SS
When VSS is between V
and –1.5 V
= 300 kW
OS
POR1
80220350kHz
–0.4—0V
No POR when VSS is between
V
POR2
and –1.5 V
–1.5—–1.2V
Ta = 25°C–0.73–0.63–0.53V
—–2.0—mV/°C—
Measuring
Circuit
1
2
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/40
Page 15
¡ SemiconductorMSM64162A
DC Characteristics (continued)
(VDD = 0 V, VSS = V
= –1.5 V, Ta = –40 to +85°C unless otherwise specified)
SS1
ParameterSymbolConditionMin.Typ.Max.Unit
Supply Current 1I
Supply Current 2I
CPU in halt state
DD1
(400k RC oscillation halt)
CPU in operating state
DD2
(400k RC oscillation halt)
Ta = –40 to +40°C
Ta = +40 to +85°C
Ta = –40 to +40°C
Ta = +40 to +85°C
—2.05.0mA
—2.030mA
—5.015mA
—5.040mA
CPU in operating state
Supply Current 3I
Supply Current 4I
(400k RC oscillation in operation)
DD3
R
= 300 kW
OS
CPU in halt state
(400k RC oscillation
halt), RC oscillator for
DD4
A/D converter is in
operating state
RT0 = 10 kW
RT0 = 2 kW
—4080mA
—150230mA
—600900mA
Battery check circuit in operating
Supply Current 5I
state, CPU in operating state
DD5
—25125mA
(400k RC oscillation halt)
Measuring
Circuit
1
15/40
Page 16
¡ SemiconductorMSM64162A
DC Characteristics (continued)
(V
= 0 V, V
DD
SS
= V
SS1
= V
= –1.5 V, V
SSL
= –3.0 V, V
SS2
SS3
Ta = –40 to +85°C unless otherwise specified)
= –4.5 V,
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)
Output Current 3
(BD)
Output Current 4
(RT0, RT1, RS0, RS1,
CRT0, CS0, CS1)
Output Current 5
(When L16 to L23 are
configured as output
ports)
Output Current 6
(OSC2)
Symbol
I
OH1
I
OL1
I
OH2
I
OL2
I
OH3
I
OL3
I
OH4
I
OL4
I
OH5
I
OL5
I
OH6
I
OL6
ConditionUnit
V
= –0.5 V
OH1
V
= VSS + 0.5 V1.03.09.0mA
OL1
= –0.5 V
V
OH2
V
= V
+ 0.5 V0.10.52.1mA
SS
= –0.7 V–1.8–0.4–0.1mA
= V
+ 0.7 V0.10.41.8mA
SS
= –0.1 V–1.1–0.4–0.2mA
= V
+ 0.1 V0.20.41.1mA
SS
= –0.5 V–1.5–0.4–0.08mA
= V
+ 0.5 V0.080.41.5mA
SS
= –0.5 V–2.1–0.5–0.1mA
= V
+ 0.5 V0.10.52.1mA
SS
V
V
V
V
V
V
V
V
OL2
OH3
OL3
OH4
OL4
OH5
OL5
OH6
OL6
Min.Typ.Max.
–2.1–0.5–0.1mA
–2.1–0.5–0.1mA
Measuring
Circuit
2
Output Current 7
(L0 to L23)
Output Leakage Current
(P1.0 to P1.3)
(P2.0 to P2.3)
(P3.0 to P3.3)
(RT0, RT1, RS0, RS1,
CRT0, CS0, CS1)
I
OH7
I
OMH7VOMH7
I
OMH7SVOMH7S
I
OML7VOML7
I
OML7SVOML7S
I
I
OOH
I
OOL
OL7
V
V
V
V
OH7
OL7
OH
OL
= V
= V
= V
= –0.2 V
= V
SS1
= V
SS1
= V
SS2
= V
SS2
+ 0.2 V
SS3
DD
SS
+ 0.2 V
– 0.2 V
+ 0.2 V
– 0.2 V
(VDD level)
(V
level)
SS1
(V
level)
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/40
Page 17
¡ SemiconductorMSM64162A
DC Characteristics (continued)
(V
= 0 V, V
DD
SS
= V
SS1
= V
= –1.5 V, V
SSL
= –3.0 V, V
SS2
SS3
Ta = –40 to +85°C unless otherwise specified)
= –4.5 V,
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)
Input Current 4
(RESET, TST1, TST2)
SymbolConditionUnit
I
I
I
IH1Z
I
IL1Z
I
I
IH2Z
I
IL2Z
I
I
IH3Z
I
IL3Z
I
I
IH1
IL1
IH2
IL3
IH4
IL4
V
= V
IH1
V
IL1
V
IH1
V
IL1
V
IH2
V
IH2
V
IL2
V
IL3
V
IH3
V
IL3
V
IH4
V
IL4
(when pulled down)
DD
= V
(when pulled up)–60–10–2.0
SS
(in a high impedance state)
= V
DD
= V
(in a high impedance state)
SS
= V
(when pulled down)2.01060
DD
(in a high impedance state)
= V
DD
= V
(in a high impedance state)
SS
= V
(when pulled up)–60–18–4.0
SS
(in a high impedance state)
= V
DD
= V
(in a high impedance state)
SS
= V
DD
= V
SS
Min.Typ.Max.
2.01060
m
m
0—1.0
–1.0—0
m
m
m
0—1.0
–1.0—0
m
m
m
0—1.0
–1.0—0
m
m
0—1.0mA
–1.5–0.75–0.3mA
A
A
A
A
A
A
A
A
A
A
Measuring
Circuit
3
Input Voltage 1
(P0.0 to P0.3)
(P2.0 to P2.3)
(P3.0 to P3.3)
Input Voltage 2
(IN0, IN1, OSC1)
Input Voltage 3
(RESET, TST1, TST2)
V
IH1
V
IL1
V
IH2
V
IL2
V
IH3
V
IL3
—–0.3—0V
—–1.5—–1.2V
—–0.3—0V
—–1.5—–1.2V
—–0.3—0V
—–1.5—–1.2V
4
17/40
Page 18
¡ SemiconductorMSM64162A
DC Characteristics (continued)
(V
= 0 V, V
DD
SS
= V
SS1
= V
= –1.5 V, V
SSL
= –3.0 V, V
SS2
Ta = –40 to +85°C unless otherwise specified)
= –4.5 V,
SS3
Parameter
(Pin Name)
Hysteresis Width
(P0.0 to P0.3)
(P2.0 to P2.3)
(P3.0 to P3.3)
Hysteresis Width
(RESET, TST1, TST2)
Input Pin Capacitance
(P0.0 to P0.3)
(P2.0 to P2.3)
(P3.0 to P3.3)
Symbol
DV
T1
DV
T2
C
IN
ConditionUnit
Min.Typ.Max.
—0.050.10.3V
—0.050.10.3V
———5.0pF
Measuring
Circuit
4
1
18/40
Page 19
¡ SemiconductorMSM64162A
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
SS
A
V
V
SS1
SS2
C
a
V
SS3
C
b
VV
C
l
Ca, Cb, C
R
OS
RT0
CS0
RI0
12
: 0.47 mF
: 0.1 mF
W
: 300 k
: 10 kW/2 k
: 820 pF
W
: 10 k
W
(*2)
V
IH
(*1)
OUTPUT
A
INPUT
V
IL
V
DD
V
SS
V
SS1VSS2
V
SS3
V
SSL
19/40
Page 20
¡ SemiconductorMSM64162A
Measuring circuit 3
(*3)
A
Measuring circuit 4
V
IH
(*3)
V
IL
INPUT
V
INPUT
DD
OUTPUT
V
SS
V
SS1
V
SS2
V
SS3
V
SSL
Waveform
OUTPUT
Monitoring
DD
V
V
SS
V
SS1
V
SS2
V
SS3
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.
SSL
20/40
Page 21
¡ SemiconductorMSM64162A
(
)
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
SS
—
= V
= –1.5 V, Ta = –40 to +85°C unless otherwise specified)
SS1
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.
V
SSL
30/40
Page 31
¡ SemiconductorMSM64162A
(
)
A/D Converter Characteristics
(V
= 0 V, V
DD
SS
= V
= –3.0 V, Ta = –40 to +85°C unless otherwise specified)
SS2
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
RECOMMENDED OPERATING CONDITIONS (When Voltage Regulator for LCD
Driver Used)
(V
= 0 V)
DD
ParameterSymbolConditionRangeUnit
Operating TemperatureT
Operating VoltageV
External 400 kHz RC Oscillator
Resistance
Crystal Oscillation Frequencyf
op
SS
V
= –1.7 V to –1.25 V250 to 500
R
OS
XT
SS
= –3.5 V to –2.0 V90 to 500
V
SS
—–40 to +85°C
—–3.5 to –1.25V
kW
—30 to 66kHz
ELECTRICAL CHARACTERISTICS (When Voltage Regulator for LCD Driver Used)
DC Characteristics
(V
= 0 V, V
DD
Parameter SymbolConditionUnit
Voltage
V
SS1
VoltageV
V
SS2
V
VoltageV
SS3
Supply
Current 1
Supply
Current 2
V
SS1VSS
DV
SS1
SS2VSS
SS3VSS
I
DD1
I
DD2
= –3.5 to –1.25, Ta = 25°CV
—
= –3.5 to –1.25VTyp. – 0.1 2 ¥ V
= –3.5 to –1.25VTyp. – 0.2 3 ¥ V
= –1.5 V
V
SS
(CPU in halt state)
= –3.0 V
V
SS
(CPU in halt state)
= –1.5 V
V
SS
(CPU in operating state)
= –3.0 V
V
SS
(CPU in operating state)
Ta = –40 to +40°C
Ta = +40 to +85°C
Ta = –40 to +40°C
Ta = +40 to +85°C
Ta = –40 to +40°C
Ta = +40 to +85°C
Ta = –40 to +40°C
Ta = +40 to +85°C
= –3.0 V, Ta = –40 to +85°C unless otherwise specified)
SS
Min.Typ.Max.
–1.35–1.2–1.05
—–4—
Typ. + 0.1
SS1
Typ. + 0.2
SS1
mV/°C
—2.57.5
—2.535
mA
—2.37.5
—2.335
—515
—540
mA
—515
—540
Mea-
suring
Circuit
1
*The other electrical characteristics are the same as those for the 1.5 V and 3.0 V specifications.
33/40
Page 34
¡ SemiconductorMSM64162A
Measuring circuit 1
CS0
RT0RI0
RT0CS0IN0
OSC1
XT
Crystal
32.768 kHz
R
OS
OSC2
XT
C1
C
12
C2
V
SSL
V
C
l
V
DD
V
SS
V
A
C
a
SS1
V
SS2VSS3
C
b
C
V
l
Ca, Cb, Cc, C
R
OS
C
c
RT0
CS0
RI0
: 0.47 mF
: 0.1 mF
12
: 100 kW
: 10 kW/2 kW
: 820 pF
: 10 kW
34/40
Page 35
¡ SemiconductorMSM64162A
FUNCTIONAL DESCRIPTION
• A/D converter (ADC)
The MSM64162A 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.
• LCD driver (LCD)
The MSM64162A has a built-in LCD driver for 24 outputs.
The LCD driver consists of 21 ¥ 4-bit display registers (DSPR0-20), the Display Control Register
(DSPCON), a 24-output LCD driver circuit, and a bias generation circuit (BIAS).
The bias generation circuit for LCD driver (BIAS) generates bias voltages for the LCD driver by
rising or dropping the power supply voltage by externally installing capacitors. Alternatively,
it generates bias voltages by rising the constant voltage (V
regulator for LCD driver. Which way is to be used is specified by mask option.
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.
L16 to L23 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 MSM64162A has a built-in buzzer driver with 2 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 MSM64162A 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.
• Watchdog timer (WDT)
The MSM64162A 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.
35/40
Page 36
¡ SemiconductorMSM64162A
• Clock generation circuit (2CLK)
The clock generation circuit (2CLK) in the MSM64162A 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 MSM64162A 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. 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 MSM64162A has 9 interrupt sources (9 vector addresses), of which two are external
interrupts from ports and seven are internal interrupts.
Of the nine interrupt sources, only the watchdog interrupt cannot be disabled (non-maskable
interrupt). The other eight 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.
• Battery check circuit (BC)
The battery check circuit (BC) detects the level of the supply voltage by comparing the voltage
generated by an external supply-voltage dividing resistor (RBLD) with the internal reference
voltage (Vrb).
36/40
Page 37
37/40
¡ SemiconductorMSM64162A
APPLICATION CIRCUITS
1.5 V Spec. Application Circuit
L23L0
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
OSC monitor
IN0
CS0
RS0
CRT0
RT0
IN1
CS1
RS1
RT1
BD
P3.3
MSM64162A-xxx
(1.5 V spec.)
L C D
C
a
RI0
CS0
• Temperature
measurement
by two thermistors
• C
G
of crystal
oscillator : Internal
V
SS
Page 38
38/40
¡ SemiconductorMSM64162A
RT1 RS1 CS1 RI1
L23L0OSC2
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
RBLD
Buzzer
OSC monitor
IN0
CS0
RS0
CRT0
RT0
IN1
CS1
RS1
RT1
BD
P3.3
P3.1
MSM64162A-xxx
(3.0 V spec.)
L C D
CS0
RS0
• Temperature
measurement
by two thermistors
• Battery check
circuit is used
• C
GEX
of crystal
oscillator : External
Switch matrix (4 ¥ 4)
V
SS
APPLICATION CIRCUITS (continued)
3.0 V Spec. Application Circuit
Page 39
39/40
¡ SemiconductorMSM64162A
APPLICATION CIRCUITS (continued)
RT1 RS1 CS1 RI1
L23L0OSC2
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
c
C
a
C
l
R
OS
Crystal
32.768 kHz
C
GEX
RI0
RT0
RBLD
Buzzer
OSC monitor
IN0
CS0
RS0
CRT0
RT0
IN1
CS1
RS1
RT1
BD
P3.3
P3.1
MSM64162A-xxx
(3.0 V spec.)
L C D
CS0
RS0
• Temperature
measurement
by two thermistors
• Battery check
circuit is used
• C
GEX
of crystal
oscillator : External
Switch matrix (4 ¥ 4)
V
SS
C
b
3.0 V Spec. Application Circuit
(Voltage Regulator for LCD Driver Used)
Page 40
¡ SemiconductorMSM64162A
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).
40/40
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.