Document
E2E0045-38-96
¡ Semiconductor MSM64P164
¡ Semiconductor
This version: Sep. 1998 MSM64P164 Previous version: Sep. 1995
4-Bit Microcontroller with Built-in RC Oscillation Type A/D Converter and LCD Driver
Pr el im in ar y
GENERAL DESCRIPTION
The MSM64P164 is a one-time-programmable ROM-version product, which has one-time PROM (OTP) as internal program memory. On the other hand, the MSM64164C is a mask ROMversion product, which has mask ROM as internal program memory. Unlike the mask ROM-version MSM64164C, which has a P-well CMOS structure, the MSM64P164 has been fabricated with the N-well CMOS-structured EEPROM process technology. Therefore, the MSM64P164 differs from the MSM64164C in the polarity of the power supply for LCD bias generation and 5 V interface, and in the external circuit structure. Unlike the mask ROM-version product, the MSM64P164 cannot be supplied in the form of a chip. The MSM64P164 is an OTP-version product used to evaluate an application program. The MSM64P164 has two operation modes, microcontroller operation mode and PROM mode. The microcontroller operation mode is used to operate the MSM64P164 like a mask ROM-version product and the PROM mode is used to program or read the PROM.
FEATURES
• Operating range Operating frequencies Operating voltage Operating temperature • Memory space Internal program memory Internal data memory • RC oscillation type A/D converter Counter A Counter B • Serial port : : : : : : : : : 32.768 kHz, 400 kHz 1.5 V/3.0 V selectable by mask option Low supply current 0 to +65°C 4064 bytes 256 nibbles 2 channels Time dividing 2-channel method 1/(104 ¥ 8) ¥ 1 1/214 ¥ 1 Synchronous 8-bit transfer External clock/internal clock selectable MSB first/LSB first selectable 34 outputs; duty ratio switchable by software 120 segments (max) 93 segments (max) 64 segments (max) 1 output (4 output modes selectable) 2 channels (256 Hz, 128 Hz, 64 Hz, 32 Hz)
• LCD driver (1) At 1/4 duty and 1/3 bias (2) At 1/3 duty and 1/3 bias (3) At 1/2 duty and 1/2 bias • Buzzer driver • Capture circuit • Watchdog timer • I/O port Input-output port Input port Output port
: : : : : :
: : :
3 ports ¥ 4 bits 1 port ¥ 4 bits 1 port ¥ 4 bits
1/37
¡ Semiconductor
MSM64P164
• Interrupt sources External interrupt : 2 sources Internal interrupt : 8 sources • Package: 80-pin plastic QFP (QFP80-P-1420-0.80-BK) : (Product name : MSM64P164-¥¥¥GS-BK) ¥¥¥ indicates a code number.
2/37
VPP
BIAS Program data/address LCD
VDD1 VDD2 VDD3 C1 C2 L0 L1
¡ Semiconductor
BLOCK DIAGRAM
HALT
TR2
TR0
(4)
TR1 PCM PCL PCH A11 to A8 A7 to A0
PROM (4064 bytes)
PORT ADDRESS
MIEF
C
ALU
B BSR
A
H
L
X
Y
RAM (256 nibbles)
P2 P3 P4 INT
L33 VDD P2.0 P2.1 P4.3 VDD
(4)
(4)
DB7 to DB0 OSC2 OSC1 XT XT RESET TST1 TST2 VSSL SP
(8)
2CLK
TIMING CONTROLLER TBC 5 INT
ROMR
P0 SIOP INT P1 VDD
P0.0 P0.1 P0.2 P0.3
RSTG TST
I·R DECODER
IR
(8)
INT
PORT ADDRESS DB7 to DB0 INT BD ADC
IN0 CS0 RS0 CRT0 RT0 IN1 CS1 RS1 RT1
P1.0 P1.1 P1.2 P1.3 .