background image
1/27
¡ Semiconductor
MSM65524A/65P524
GENERAL DESCRIPTION
The MSM65524A is a high-performance 8-bit microcontroller that employs OKI original nX-8/
50 CPU core. With a minimum instruction execution time of 400 ns (10MHz clock), the
MSM65524A is capable of high-speed processing, and includes 16K bytes of program memory,
384 bytes of data memory, timers, serial ports, an A/D converter and PWMs on chip. Also
available are the MSM65P524, which replaces the on-chip program memory with one-time
PROM, and the MSM65X524A, which uses the external program memory.
FEATURES
• Operating range
Operating frequency
: 0 to 10MHz (V
DD
=4.5 to 5.5V)
0 to 5MHz (V
DD
=2.7 to 5.5V)
Operating voltage
: 2.7 to 5.5V
Operating temperature
: –40 to +85
°
C
• Memory space
: 64K bytes
Internal program memory
: 16K bytes
Internal data memory
: 384 bytes
• Minimum instruction execution time
: 400ns @ 10 MHz
• Powerful instruction set
: 83 basic instructions
8/16-bit operation instructions
Bit manipulation instructions
Compound function instructions
• Abundant addressing modes
• Multiplication/division operation functions
: 8 ¥ 8 Æ 16
16
÷
8 Æ 16 ... 8
• I/O port
Input-output port
: 5 ports ¥ 8 bits
1 port ¥ 4 bits
Input port
: 1 port ¥ 8 bits
• Timers
: 8-bit auto-reload timer ¥ 2
16-bit auto-reload timer ¥ 1
Watchdog timer ¥ 1
• Counters
: Time base counter ¥ 1
16-bit free-running counter ¥ 1
• Capture input
: 1 channel
• Compare output
: 2 channels
• Serial ports
: Shift register ¥ 1
Serial port with baud rate generator
(UART/Synchronous) ¥ 1
• A/D converter
: 8 bits ¥ 8 channels
• PWM
: 8 bits ¥ 2 channels
PWM with auto-reload timer for period
setting
¡ Semiconductor
MSM65524A/65P524
8-Bit Microcontroller with A/D Converter
E2E1016-27-Y6
This version: Jan. 1998
Previous version: Nov. 1996
background image
2/27
¡ Semiconductor
MSM65524A/65P524
• External interrupts
: 3
• Interrupt sources
: 19
• Package options
64-pin plastic shrink DIP (SDIP64-P-750-1.78) : (Product name: MSM65524A-¥¥¥SS,
MSM65P524-¥¥¥SS)
64-pin plastic QFP (QFP64-P-1414-0.80-BK)
: (Product name: MSM65524A-¥¥¥GS-BK,
MSM65P524-¥¥¥GS-BK)
68-pin plastic QFJ (PLCC) (QFJ68-P-S950-1.27): (Product name: MSM65524A-¥¥¥JS,
MSM65P524-¥¥¥JS)
¥¥¥ indicates the code number.
background image
3/27
¡ Semiconductor
MSM65524A/65P524
BLOCK DIAGRAM
OSC 0
OSC 1
RESET
HSTOP*
V
DD
GND
OSC
CONT.
ROM
(16K bytes)
EXT.MEM.
CONT.
CPU CORE
INST.
DEC.
T/C
IR
ALU
GMAR
PC
AR
BR
PSW
SP
LMAR
BUS
CONT.
I/O PORT
RAM
(384 bytes)
TBC
WDT
16-bit TIMER
16-bit FRC
CAP¥1, CMP¥2
SIO
AD0-7*
A8-15*
RD
WR*
ALE
EA
T2CK*
GATE*
CAP*
CMP0*
CMP1*
TXD*
RXD*
P2 P3 P4 P5
* Secondary functions of ports
8
8
8
8
8
8-bit TIMER¥4**
T1OUT*
T0CK*
8-bit SHIFT-REG.
INTERRUPT CONT.
SFTO*
SFTI*
SFTCK*
INT0*
INT1*
INT2*
MUL/DIV
P1
P0
P6
8-bit PWM¥2
PWM0*
PWM1*
8-bit A/D C ¥ 8ch
** One timer doubles as the SIO baud rate
generator, another doubles as a PWM
clock source.
AV
DD
V
RH
V
RL
AGND
AI0*- AI7*
background image
4/27
¡ Semiconductor
MSM65524A/65P524
PIN CONFIGURATION (TOP VIEW)
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
P3.7/SFTCK
P5.0/PWM0
P5.1/PWM1
P5.2
P5.3
P4.0
P4.1
P4.2
P4.3
P4.4
P4.5
P4.6
P4.7
P3.0/T2CK
P3.1/CAP
P3.2/CMP0
P3.3/CMP1
P3.4/INT2
P3.5/SFTO
P3.6/SFTI
P0.6/AD6
V
DD
AV
DD
V
RH
V
RL
P6.7/AI7
P6.6/AI6
P6.5/AI5
P6.4/AI4
P6.3/AI3
P6.2/AI2
P6.1/AI1
P6.0/AI0
AGND
P0.0/AD0
P0.1/AD1
P0.2/AD2
P0.3/AD3
P0.4/AD4
P0.5/AD5
45
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
21
22
23
24
25
26
27
28
29
30
31
32
44
43
42
41
40
39
38
37
36
35
34
33
RESET
P0.7/AD7
P2.0/RXD
EA
P2.1/TXD
ALE
P2.2/INT0
RD
P2.3/INT1/GATE
P1.7/A15
P2.4/T0CK
P1.6/A14
P2.5/HSTOP
P1.5/A13
P2.6/WR
P1.4/A12
P2.7/T1OUT
P1.3/A11
OSC1
P1.2/A10
OSC0
P1.1/A9
GND
P1.0/A8
64-Pin Plastic Shrink DIP
background image
5/27
¡ Semiconductor
MSM65524A/65P524
PIN CONFIGURATION (TOP VIEW) (Continued)
48
47
46
45
44
43
42
41
40
39
38
1
2
3
4
5
6
7
8
9
10
11
P4.4
P4.5
P4.6
P4.7
P3.0/T2CK
P3.1/CAP
P3.2/CMP0
P3.3/CMP1
P3.4/INT2
P3.5/SFTO
P3.6/SFTI
P6.3/AI3
P6.2/AI2
P6.1/AI1
P6.0/AI0
AGND
P0.0/AD0
P0.1/AD1
P0.2/AD2
P0.3/AD3
P0.4/AD4
P0.5/AD5

64
63
62
61
60
59
58
57
56
55
54
P4.3
P4.2
P4.1
P4.0
P5.3
P5.2
P5.1/PWM1
P5.0/PWM0
V
DD
AV
DD
V
RH
17
18
19
20
21
22
23
24
25
26
27
P2.3/INT1/GATE
P2.4/T0CK
P2.5/
HSTOP
P2.6/
WR
P2.7/T1OUT
OSC1
OSC0
GND
P1.0/A8
P1.1/A9
P1.2/A10
12
P3.7/SFTCK
13
RESET
14
P2.0/RXD
15
P2.1/TXD
16
P2.2/INT0
28
P1.3/A11
29
P1.4/A12
30
P1.5/A13
31
P1.6/A14
32
P1.7/A15
37 P0.6/AD6
36 P0.7/AD7
35 EA
34 ALE
33 RD
53
V
RL
52
P6.7/AI7
54
P6.6/AI6
50
P6.5/AI5
49
P6.4/AI4
64-Pin Plastic QFP
background image
6/27
¡ Semiconductor
MSM65524A/65P524
PIN CONFIGURATION (TOP VIEW) (Continued)
P6.4/AI4
P6.5/AI5
P6.6/AI6
P6.7/AI7
V
RL
V
RH
AV
DD
V
DD
P5.0/PWM0
P5.1/PWM1
P5.2
P5.3
P4.0
P4.1
P4.2
P4.3
P1.7/A15
P1.6/A14
P1.5/A13
P1.4/A12
P1.3/A11
P1.2/A10
P1.1/A9
P1.0/A8
GND
OSC0
OSC1
P2.7/T1OUT
P2.6/WR
P2.5/HSTOP
P2.4/T0CK
P2.3/INT1/GATE
P4.4
P4.5
P4.6
P4.7
P3.0/T2CK
P3.1/CAP
P3.2/CMP0
P3.3/CMP1
P3.4/INT2
P3.5/SFTO
P3.6/SFTI
P3.7/SFTCK
RESET
P2.0/RXD
P2.1/TXD
P2.2/INT0
P6.3/AI3
P6.2/AI2
P6.1/AI1
P6.0/AI0
AGND
P0.0/AD0
P0.1/AD1
P0.2/AD2
P0.3/AD3
P0.4/AD4
P0.5/AD5
P0.6/AD6
P0.7/AD7
EA
ALE
RD
NC
NC
NC
NC

61
62
63
64
65
66
67
68
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
43
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
NC: No-connection pin
68-Pin Plastic QFJ (PLCC)
background image
7/27
¡ Semiconductor
MSM65524A/65P524
PIN DESCRIPTION
Basic Functions
Function
Symbol
Type
Description
Power
Supply
V
DD
+5V digital power supply
GND
0V digital ground
OSC0
System clock input pin. Quartz oscillator or ceramic oscillator is
connected between OSC0 and OSC1. For external clock, input at OSC0,
leaving OSC1 open.
OSC1
System clock output pin
I
O
RESET
System reset input (program starts from address 0040H);
internal pull-up resistance
I
EA
Program memory select input pin.
"L" level input for external program memory; "H" level input for internal
program memory.
I
RD
Read strobe signal during external memory access
O
ALE
Address latch signal during external memory access
O
PORT 0
8-bit Input-output port
During external memory access, becomes address/data bus for address
output, instruction fetch or data read/write along with ALE, RD and WR
pins.
I/O
PORT 1
8-bit Input-output port
Address bus during external memory access
I/O
PORT 2
PORT 3
PORT 4
8-bit Input-output port ¥ 3. Secondary functions shown in following table
are added for ports 2 and 3.
I/O
Oscillation
Control
Port
PORT 6
8-bit Input port
Functions as analog input channel during A/D conversion.
I
AV
DD
AGND
V
RH
V
RL
+5V analog power supply
0V analog ground
+5V analog reference voltage
0V analog reference voltage
PORT 5
4-bit Input-output port
Secondary functions shown in following table are added for port 5.
I/O
background image
8/27
¡ Semiconductor
MSM65524A/65P524
Secondary Functions
Symbol
Type
Description
INT0
P2.2 secondary function
External interrupt 0 input pin.
I
INT1/GATE
P2.3 secondary functions
External interrupt 1 input pin. Also used as input pin for gate signal
for timer 0 count enable/disable.
I
T0CK
P2.4 secondary function
Timer 0 external clock input pin.
I
HSTOP
P2.5 secondary function
Hard stop mode input pin; stops system clock oscillation with "L" level input.
I
WR
P2.6 secondary function
Write strobe signal output pin during external data memory access.
O
T1OUT
P2.7 secondary function
Output pin for signal that 2-divided timer 1 overflow.
O
SFTO
P3.5 secondary function
Shift register data output pin.
O
SFTI
P3.6 secondary function
Shift register data input pin.
I
SFTCK
P3.7 secondary function
Shift register synchronizing clock input/output pin.
I/O
RXD
P2.0 secondary function
UART: Input pin for serial port receive data.
Synchronous: Input/output pin for serial port transmit/receive data.
I/O
TXD
P2.1 secondary function
UART: Output pin for serial port transmit data.
Synchronous: Output pin for serial port synchronizing clock.
O
T2CK
P3.0 secondary function
Timer 2 external clock input pin.
I
CAP
P3.1 secondary function
Capture trigger input pin.
I
CMP0
P3.2 secondary function
Compare output channel 0 output pin.
O
CMP1
P3.3 secondary function
Compare output channel 1 output pin.
O
INT2
P3.4 secondary function
External interrupt 2 input signal.
I
PWM0
P5.0 secondary function
PWM channel 0 output pin.
O
PWM1
P5.1 secondary function
PWM channel 1 output pin.
O
background image
9/27
¡ Semiconductor
MSM65524A/65P524
Port Circuit Configuration
Type
Port
Electrical Characteristics
(V
DD
=5V)
P0.0/AD0 to
P0.7/AD7
1
"H" Input Voltage:
• V
IH
=2.4V
"L" Input Voltage:
• V
IL
=0.8V
"H" Output Voltage:
• V
OH
=3.75V
• I
OH
=–400mA
"L" Output Voltage:
• V
OL
=0.4V
• I
OL
=3.2mA
Circuit Configuration
P1.0/A8 to
P1.7/A15
2
"H" Input Voltage:
• V
IH
=2.4V
"L" Input Voltage:
• V
IL
=0.8V
"H" Output Voltage:
• V
OH
=3.75V
• I
OH
=–200mA
"L" Output Voltage:
• V
OL
=0.4V
• I
OL
=1.6mA
P0D
P0
DIR
Data Bus
External Memory Control
PORT0
P1D
P1
DIR
Data Bus
External Memory Control
PORT1
Data Bus
PxD
Px
DIR
Secondary
Output
Function
(x=2 to 5)
Px
MOD
PORTx
Secondary
Input
Function
3
"H" Input Voltage:
• V
IH
=2.4V
"L" Input Voltage:
• V
IL
=0.8V
P2.6/WR
"H" Output Voltage:
• V
OH
=3.75V
• I
OH
=–400mA
"L" Output Voltage:
• V
OL
=0.4V
• I
OL
=3.2mA
Ports other than
P2.6/WR
"H" Output Voltage:
• V
OH
=3.75V
• I
OH
=–200mA
"L" Output Voltage:
• V
OL
=0.4V
• I
OL
=1.6mA
P2.0/RXD,
P2.1/TXD,
P2.6/WR,
P2.7/T1OUT,
P3.2/CMP0,
P3.3/CMP1,
P3.5/SFTO,
P3.7/SFTCK,
P5.0/PWM0,
P5.1/PMW1
background image
10/27
¡ Semiconductor
MSM65524A/65P524
PxD
Px
DIR
Data Bus
(x=2 to 5)
PORTx
Secondary
Input Function
Type
Port
Electrical Characteristics
(V
DD
=5V)
4
"H" Input Voltage:
• V
IH
=2.4V
"L" Input Voltage:
• V
IL
=0.8V
"H" Output Voltage:
• V
OH
=3.75V
• I
OH
=–200mA
"L" Output Voltage:
• V
OL
=0.4V
• I
OL
=1.6mA
Circuit Configuration
P2.2/INT0,
P2.3/INT1/GATE,
P2.4/T0CK,
P2.5/HSTOP,
P3.0/T2CK,
P3.1/CAP,
P3.4/INT2,
P3.6/SFTI,
P4.0 to P4.7,
P5.2 to P5.3
5
P6.0/AI0 to
P6.7/AI7
PORT6
Data Bus
"H" Input Voltage:
• V
IH
=2.4V
"L" Input Voltage:
• V
IL
=0.8V
To A/D Converter
Port Circuit Configuration (Continued)
background image
11/27
¡ Semiconductor
MSM65524A/65P524
100H
80H
40H
30H
20H
10H
0
0FFFFH
4000H
100H
80H
40H
20H
Internal Memory
Local Memory Space
SFR
Data Memory
Local Register Set 3
Local Register Set 2
Local Register Set 1
Local Register Set 0
General Memory Space
External Memory
Program Memory
Vector Call Table Area
Program Memory
Interrupt Vector Table Area
Vector Call Table Area
0
1FFH
Data Memory
Page 1
Page 0
MEMORY MAPS
background image
12/27
¡ Semiconductor
MSM65524A/65P524
ABSOLUTE MAXIMUM RATINGS
Parameter
Unit
Supply Voltage
V
DD
=AV
DD
–0.3 to 7.0
Symbol
Condition
Rating
Ta=25°C
Input Voltage
V
I
–0.3 to V
DD
+0.3
Output Voltage
V
O
–0.3 to V
DD
+0.3
Power Dissipation
P
D
400
Ta=25°C per package
Storage Temperature
T
STG
–55 to +150
V
mW
°C
GND=AGND=0V
Analog Reference Voltage
Analog Input Voltage
V
RH
, V
RL
V
AI
–0.3 to V
DD
+0.3
–0.3 to V
DD
+0.3
RECOMMENDED OPERATING CONDITIONS
Parameter
Unit
Supply Voltage
V
DD
2.7 to 5.5
Symbol
Condition
Range
Refer to Figure 1.
Memory Hold Voltage
V
DDMH
2.0 to 5.5
f
OSC
=0 Hz
Operating Frequency *
1
f
OSC
1 to 10
Refer to Figure 1.
External Clock Operating
Frequency
f
EXTCLK
0 to 10
Refer to Figure 1.
Operating Temperature
T
op
–40 to +85
V
MHz
MHz
°C
Analog Supply Voltage
AV
DD
2.7 to 5.5
Analog Reference Voltage
V
RH
2.7 to 5.5
Analog Input Voltage
V
AI
0 to V
DD
V
DD
=AV
DD
=V
RH
GND=AGND=V
RL
=0V
*1 This is due to the standard of a crystal oscillator or resonator.
Figure 1. Power Supply Voltage vs. Operating Frequency
2
5
4
6
8
10
2
3
4
5
6
1
5.5
Ta=–40 to +85°C
f
OSC
, f
EXTCLK
(MHz)
Oscillator
Frequency > 1MHz
V
DD
(V)
2.7
background image
13/27
¡ Semiconductor
MSM65524A/65P524
ELECTRICAL CHARACTERISTICS
DC Characteristics 1 (V
DD
=4.5 to 5.5V)
(GND=0V, Ta=–40 to +85°C)
Parameter
Symbol
Condition
Min.
Typ.
Max.
Unit
"H" Input Voltage 1
V
IH1
2.4
V
DD
+0.3
"H" Input Voltage 2
V
IH2
0.7V
DD
V
DD
+0.3
"L" Input Voltage
V
IL
–0.3
0.8
"H" Output Voltage 1
V
OH1
I
OH
=–200mA
0.75V
DD
"H" Output Voltage 2
V
OH2
I
OH
=–400mA
0.75V
DD
"L" Output Voltage 1
V
OL1
I
OL
=1.6mA
0.4
"L" Output Voltage 2
V
OL