OKI MSM64164C-xxxGS-K, MSM64164C-xxx, MSM64164C-xxxGS-BK, MSM64164C-xxxTS-K Datasheet

E2E0035-38-94
¡ Semiconductor MSM64164C
¡ Semiconductor
This version: Sep. 1998
Previous version: Apr. 1998
MSM64164C
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 nX­4/20. The MSM64164C is best suitable for applications such as low power, high precision thermome­ters 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)
• Buzzer driver : 1 output (4 output modes selectable)
• Capture circuit : 2 channels
• Watchdog timer
• Clock : 32.768 kHz crystal oscillator and 400 kHz RC
oscillator (with an external resistor) CPU clock : 32.768 kHz/400 kHz (switchable by software) Time base clock : 32.768 kHz
• Power supply voltage : 1.5 V/3 V (selectable by mask option)
• I/O port Input-output port : 3 ports ¥ 4 bits Input port : 1 port ¥ 4 bits Output port : 1 port ¥ 4 bits
(8 out of the 34 LCD driver outputs can be used as output-only ports by mask option.)
1/41
¡ Semiconductor MSM64164C
• Interrupt sources External interrupt : 2 sources Internal interrupt : 8 sources
• 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.
2/41
¡ Semiconductor MSM64164C
BLOCK DIAGRAM
CPU CORE: nX-4/20
OSC2 OSC1
XT
XT
RESET
TST1 TST2
V
SSL
L0 L1
L33
V
SS1
V
SS2
V
SS3
C1 C2
V
DD
V
SS
BSR
HALT
MIEF
CONTROLLER
V
SS
TIMING
2CLK
RSTG
TST
VR
LCD
BIAS
TR2 TR0
(4)
C
BA H L XY
ALU
(4) (4)
PCM
PCL
TR1
PCH
DB7 to DB0 (8)
SP
IR
IR
ROMR
DECODER
TBC
INTC
WDT
5
INT
INT
SIOP
INT
CAPR
PORT ADDRESS
DB7 to DB0
(8)
A11 to A8
A7 to A0
INT
INT
PORT4
INT
PORT3
INT
PORT2
PORT1
INT
PORT0
ROM 4064B
RAM 256N
V
SS
P4.3 P4.2 P4.1 P4.0
V
SS
P3.3 P3.2 P3.1 P3.0
V
SS
P2.3 P2.2 P2.1 P2.0
V
SS
P1.3 P1.2 P1.1 P1.0
V
SS
P0.3 P0.2 P0.1 P0.0
BD
RT1
RS1
CS1
ADCBD
IN1
RT0
RS0
CRT0
CS0
IN0
3/41
¡ Semiconductor MSM64164C
PIN CONFIGURATION (TOP VIEW)
DD
OSC2
OSC1
V
XT
XT
RESET
TST1
TST2
P1.0
P1.1
P1.2
P1.3
P0.0
P0.2
79
P0.1
78
77
76
75
74
73
72
71
70
69
68
67
66
65
P0.3
80
L0 L1 L2 L3 L4 L5 L6 L7 L8 L9
L10 L11 L12 L13 L14 L15
L16 P2.0 P2.1 P2.2 P2.3 P3.0 P3.1 P3.2
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
1
2
3
4
5
6
7
8
9
64
63
62
61
60
59
58 57
56
55
54 53
52
51
50
49
48
47
46
45
44
43
42
41
L33/P6.3 L32/P6.2 L31/P6.1 L30/P6.0 L29/P5.3 L28/P5.2 L27/P5.1 L26/P5.0 L25 L24 L23 L22 L21 L20 L19 L18 L17 C2 C1 V
SS3
V
SS2
V
SS
V
SS1
RT1
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
P3.3
P4.0
P4.1
P4.2
P4.3
BD
SSL
V
V
DD
RT0
CRT0
RS0
CS0
IN0
IN1
CS1
RS1
(QFP80-P-1420-0.80-BK)
80-Pin Plastic QFP
Note: Because pin 32 and pin 67 are internally connected with each other, VDD can be supplied
from either pin 32 or pin 67.
4/41
¡ Semiconductor MSM64164C
PIN CONFIGURATION (TOP VIEW) (continued)
VDDXT
XT
RESET
TST1
TST2
P1.0
P1.1
P1.2
P1.3
P0.0
P0.1
P0.2
P0.3
L1
80
L0
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
OSC1
64
63
L33/P6.3
OSC2
62
L32/P6.2
61
L2 L3 L4 L5 L6 L7 L8 L9
L10 L11 L12 L13 L14 L15
L16 P2.0 P2.1 P2.2 P2.3 P3.0
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
59
57
55
53
52
L31/P6.160 L30/P6.0 L29/P5.358 L28/P5.2 L27/P5.156 L26/P5.0 L2554 L24 L23 L2251
50
L21
49
L20
48
L19
47
L18 L1746
45
C2
44
C1
43
V
SS3
42
V
SS2
41
V
SS
21
P3.1
22
P3.2
23
P3.3
24
P4.0
25
P4.1
33
32
31
30
29
28
27
26
DD
BD
SSL
V
RT0
P4.2
P4.3
V
CRT0
RS0
(QFP80-P-1414-0.65-K)
80-Pin Plastic QFP
34
CS0
35
IN0
36
IN1
37
CS1
38
RS1
39
RT1
40
V
SS1
5/41
¡ Semiconductor MSM64164C
PIN CONFIGURATION (TOP VIEW) (continued)
VDDXT
XT
RESET
TST1
TST2
P1.0
P1.1
P1.2
P1.3
P0.0
P0.1
P0.2
L0
79
P0.3
78
77
76
75
74
73
72
71
70
69
68
67
66
65
OSC1
64
OSC2
63
L32/P6.2
L33/P6.3
61
62
L1
80
L2 L3 L4 L5 L6 L7 L8 L9
L10 L11 L12 L13 L14 L15
L16 P2.0 P2.1 P2.2 P2.3 P3.0
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
60
59
58 57
56
55
54 53
52
51
50
49
48
47
46
45
44
43
42
41
L31/P6.1 L30/P6.0 L29/P5.3 L28/P5.2 L27/P5.1 L26/P5.0 L25 L24 L23 L22 L21 L20 L19 L18 L17 C2 C1 V
SS3
V
SS2
V
SS
21
P3.1
22
P3.2
23
P3.3
24
P4.0
32
31
30
29
28
27
26
25
P4.1
P4.2
P4.3
BD
SSL
V
DD
V
RT0
CRT0
(TQFP80-P-1212-0.50-K)
80-Pin Plastic TQFP
33
RS0
34
CS0
35
IN0
36
IN1
37
CS1
38
RS1
39
RT1
40
SS1
V
6/41
¡ Semiconductor MSM64164C
PAD CONFIGURATION
Pad Layout
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
¡ Semiconductor MSM64164C
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
18 P2.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
36 CS0
37 IN0
38 IN1
39 CS1
40 RS1
Pad No. Y (µm)X (µm)Pad Name
41 18802545RT1
–2314 2545
–2083 2314
–1852 2083
–1621 1852
–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
42 2090V
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 72 TST2 207
73 P1.0 –207
74 P1.1 –431
75 P1.2 –655
76 P1.3 –879
77 P0.0 –1103
78 P0.1 –1327
79 P0.2 –1551
80 P0.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
¡ Semiconductor MSM64164C
PIN DESCRIPTIONS
Basic Functions
Function
Power
Supply
Oscillation
Ports
A/D
Converter
Reset
Test
Symbol Type Description
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
XT I XT O
OSC1 I
OSC2 O
P1.0 to P1.3 O
P0.0 to P0.3 I
P2.0 to P4.3 I/O
BD O
L0 to L25 O
L26/P5.0 to
L33/P6.3
RT0 O
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
CRT0 O
RS0
CS0
IN0
RT1
RS1
CS1
IN1
RESET I
TST1 I
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
TST2 I
, 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
¡ Semiconductor MSM64164C
Secondary Functions
Function
External
Interrupt
Capture
Trigger
Serial Port
RC Oscillation
Monitor
Symbol Type Description
P0.0 I
P0.1
P0.2
P0.3
P2.0 I
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.3 I
P4.0 O
P4.1 O
P4.2 I/O
P4.3 O
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
¡ Semiconductor MSM64164C
,
,
,
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
¡ Semiconductor MSM64164C
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
¡ Semiconductor MSM64164C
ABSOLUTE MAXIMUM RATINGS (1.5 V Spec.)
(V
= 0 V)
DD
Parameter Symbol Condition Rating Unit
Power Supply Voltage 1 V
Power Supply Voltage 2 V
Power Supply Voltage 3 V
Power Supply Voltage 4 V
Power Supply Voltage 5 V
Input Voltage 1 V
Input Voltage 2 V
Input Voltage 3 V
Output Voltage 1 V
Output Voltage 2 V
Output Voltage 3 V
Output Voltage 4 V
Output Voltage 5 V
Storage Temperature T
SS1
SS2
SS3
SSL
SS
IN1
IN2
IN3
OUT1
OUT2
OUT3
OUT4
OUT5
STG
Ta = 25°C –2.0 to +0.3 V
Ta = 25°C –4.0 to +0.3 V
Ta = 25°C –5.5 to +0.3 V
Ta = 25°C –2.0 to +0.3 V
Ta = 25°C –5.5 to +0.3 V
V
Input, Ta = 25°C V
SS1
V
Input, Ta = 25°C V
SS
V
Input, Ta = 25°C V
SSL
V
Output, Ta = 25°C V
SS1
V
Output, Ta = 25°C V
SS2
V
Output, Ta = 25°C V
SS3
V
Output, Ta = 25°C V
SS
V
Output, Ta = 25°C V
SSL
– 0.3 to +0.3 V
SS1
– 0.3 to +0.3 V
SS
– 0.3 to +0.3 V
SSL
– 0.3 to +0.3 V
SS1
– 0.3 to +0.3 V
SS2
– 0.3 to +0.3 V
SS3
– 0.3 to +0.3 V
SS
– 0.3 to +0.3 V
SSL
–55 to +150 °C
RECOMMENDED OPERATING CONDITIONS (1.5 V Spec.)
Parameter Symbol Condition Range Unit
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.25 V
–5.25 to V
SS1
250 to 500 kW
30 to 35 kHz
V
13/41
Loading...
+ 28 hidden pages