4-Bit Microcontroller with Built-in 16K Word PROM, POCSAG Decoder, and Melody
Circuit
GENERAL DESCRIPTION
The MSM63P238 is a CMOS 4-bit microcontroller with a built-in POCSAG (Post Office Code
Standardization Advisory Group) decoder, which employs Oki's original nX-4/250 CPU core.
The MSM63P238 is a one-time-programmable ROM-version product having one-time PROM
(OTP) as internal program memory.
The specifications of the MSM63P238 are equal to those of the MSM63238 except for electrical
characteristics, packaging (only 80-pin flat package is available for the MSM63P238), and some
functions.
FEATURES
The features of the MSM63P238 with an asterisk (*) differ from those of the mask ROM-version
MSM63238.
• Rich instruction set
439 instructions
Transfer, rotate, increment/decrement, arithmetic operations, comparison, logic operations,
mask operations, bit operations, ROM table reference, external memory transfer, stack
operations, flag operations, branch, conditional branch, call/return, control.
• Rich selection of addressing modes
Indirect addressing of four data memory types, with current bank register, extra bank
register, HL register and XY register.
Data memory bank internal direct addressing mode.
• Processing speed
Two clocks per machine cycle, with most instructions executed in one machine cycle.
Minimum instruction execution time: 61 ms (@ 32.768 kHz system clock)
• POCSAG decoder
Data rate: 512 bps/1200 bps/2400 bps
User frame: 3 types
User address: 6 types
Battery saving mode (for controlling intermittent operations of RF receiver)
• I/O ports
Input ports: Selectable as input with pull-up resistance/input with pull-down resistance/
high-impedance input
Output ports: Selectable as P-channel open drain output/N-channel open drain output/
CMOS output/high-impedance output
Input-output ports: Selectable as input with pull-up resistance/input with pull-down
resistance/high-impedance input
Selectable as P-channel open drain output/N-channel open drain
output/CMOS output/high-impedance output
Can be interfaced with external peripherals that use a different power supply than this device
uses.
Number of ports:
• Melody output function
Melody sound frequency: 529 to 2979 Hz
Tone length: 63 types
Tempo: 15 types
Note data: Resides in the program memory
Buzzer drive signal output: 4 kHz
• Reset function
Reset through RESET pin
Power-on reset
Reset by low-speed oscillation halt
• Battery check*
Low-voltage supply check
Criterion voltage: Can be selected as 2.20 ±0.20 V or 2.80 ±0.30 V
• Power supply backup*
Backup circuit (voltage multiplier) enables operation at 1.45 V minimum
2/28
¡ SemiconductorMSM63P238
• Timers and counter
8-bit timer ¥ 4
Selectable as auto-reload mode/capture mode/clock frequency measurement mode
Watchdog timer ¥ 1
15-bit time base counter ¥ 1
1, 2, 4, 8, 16, 32, 64, and 128 Hz signals can be read
• Serial port
Mode: UART mode, synchronous mode
UART communication speed: 1200 bps, 2400 bps, 4800 bps, 9600 bps
Clock frequency in synchronous mode: 32.768 kHz (internal clock mode), external
clock frequency
Data length: 5 to 8 bits
• Interrupt sources
External interrupt: 3
Internal interrupt: 15 (watchdog timer interrupt is a nonmask-
able interrupt)
• Operating voltage*
When backup used: VDD = 1.45 to 2.7 V
When backup not used: VDD = 2.7 to 5.5 V
Note:Pins marked as (NC) are no-connection pins which are left open.
5/28
¡ SemiconductorMSM63P238
PIN DESCRIPTIONS
The basic functions of each pin of the MSM63P238 are described in Table 1.
A symbol with a slash (/) denotes a pin that has a secondary function.
Refer to Table 2 for secondary functions.
For type, "—" denotes a power supply pin, "I" an input pin, "O" an output pin, and "I/O" an inputoutput pin.
Table 1 Pin Descriptions (Basic Functions)
FunctionSymbolTypeDescription
V
PP
V
DD
V
SS
V
DDR
Pin
31
32
13
—
—
—
—
Power supply (+12.5 V) for PROM writing35
Positive power supply
Negative power supply
Interface power supply for SIGIN, BS1, BS2
Positive power supply pin for external interface
—
—
—
(power supply for input, output, and I/O ports)
Positive power supply pin for internal logic (internally generated).
A capacitor (0.1 mF) should be connected between this pin and V
Positive power supply pin for low-speed clock (internally generated)
Power
Supply
V
V
V
DDI
DDL
DD2
36
27
26
Voltage multiplier pin for power supply backup
V
DDH
28
—
(internally generated).
A capacitor (1.0 mF) should be connected between this pin and VSS.
CB1Pins to connect a capacitor for voltage multiplier.
CB2
XT0I
29
30
14
—
—
A capacitor (1.0 mF) should be connected between CB1 and CB2.
Clock oscillation pins for POCSAG decoder.
A 32.768 kHz, 38.4 kHz, or 76.8 kHz crystal and capacitor (C
XT1O
XTM0I
15
23
should be connected to these pins.
Low-speed clock oscillation pins for CPU.
A 32.768 kHz crystal and capacitor (C
Oscillation
XTM1O
OSC0I
24
19
to these pins.
High-speed clock oscillation pins.
A ceramic resonator and capacitors (C
OSC1O
20
oscillation resistor (R
) should be connected to these pins.
OS
Low-speed CPU clock select pins.
21
22
16
17
18
These pins are used to select a low-speed CPU clock.
I
Because these are high impedance inputs, be sure to tie these
pins to V
or VSS.
DD
Pull-down resistors are internally connected to these pins.
The user cannot use these pins.
Test
XTSEL0
XTSEL1
TST1Input pins for testing.
TST2I
TST3
Reset input pin.
Setting this pin to "H" level puts this device into a reset state.
hen, setting this pin to "L" level starts executing an instruction
Reset
RESETI
34
T
from address 0000H.
A pull-down resistor is internally connected to this pin.
Signals to control intermittent operations of RF receiver.
Receive data input pin.
Input pin for receive data from RF receiver.
4-bit input port.
Pull-up resistor input, pull-down resistor input, or
high-impedance input is selectable for each bit.
I
4-bit output ports.
P-channel open drain output, N-channel open drain output,
O
CMOS output, or high-impedance output is selectable for each
bit.
2-bit input-output port and 4-bit input-output ports.
In input mode, pull-up resistor input, pull-down resistor input,
or high-impedance input is selectable for each bit.
In output mode, P-channel open drain output, N-channel open
drain output, CMOS output, or high-impedance output is
selectable for each bit.
8/28
¡ SemiconductorMSM63P238
Table 2 shows the secondary functions of each pin of the MSM63P238.