Oki MSM64164C User Manual
Oki MSM64164C User Manual

Oki MSM64164C User Manual

4-bit microcontroller
Table of Contents

Advertisement

Quick Links

MSM64164C
4-Bit Microcontroller
User's Manual
FIRST EDITION
December 1998
OKI ELECTRIC INDUSTRY CO., LTD.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MSM64164C and is the answer not in the manual?

Questions and answers

Summary of Contents for Oki MSM64164C

  • Page 1 MSM64164C 4-Bit Microcontroller User’s Manual FIRST EDITION December 1998 OKI ELECTRIC INDUSTRY CO., LTD.
  • Page 2 Oki assumes no responsibility or liability whatsoever for any failure or unusual or unexpected operation resulting from misuse, neglect, improper installation, repair, alteration...
  • Page 3 Introduction The MSM64164C is a high-performance single chip microcontroller that uses a 4-bit CPU core (nX-4/20). This Oki-original CPU core architecture is combined with additional on-Chip peripheral functions. This manual explains hardware of the MSM64164C. For details of the nX-4/20 core instruction set, refer to the "nX-4/20, nX-4/30 Core Instruction...
  • Page 5: Table Of Contents

    Table of Contents Chapter 1 Overview 1.1 Overview ......................1-1 1.2 Features ......................1-1 1.3 Block Diagram....................1-3 1.4 Pin Configuration ..................... 1-4 1.5 Pin Description ....................1-7 1.5.1 Description of Each Pin ................ 1-7 1.5.2 Unused Pin Description ................ 1-12 1.6 Basic Timing ....................
  • Page 6 Chapter 5 Clock Generation Circuit (2CLK) 5.1 Overview ......................5-1 5.2 Layout of Clock Generation Circuit ..............5-1 5.3 Operation of Clock Generation Circuit ............. 5-2 5.4 Frequency Control Register (FCON) ............... 5-2 5.5 System Clock Switch Timing................5-3 Chapter 6 Time Base Counter (TBC) 6.1 Overview ......................
  • Page 7 Chapter 11 Watchdog Timer (WDT) 11.1 Overview ......................11-1 11.2 Layout of Watchdog Timer ................11-1 11.3 Operation of Watchdog Timer ................. 11-2 11.4 Watchdog Timer Control Register (WDTCON) ..........11-3 Chapter 12 A/D Converter (ADC) 12.1 Overview ......................12-1 12.2 Layout of A/D Converter .................
  • Page 8 Appendixes Appendix A List of Special Function Registers ..........Appendix-1 Appendix B Description of Special Function Registers ........ Appendix-5 Appendix C Package Dimension Diagrams and Pad Coordinates ....Appendix-38 Appendix D Layout of Input/Output Circuits ..........Appendix-41 Appendix E Examples of Application Circuit ..........Appendix-44 Appendix F Mask Options ................
  • Page 9 Chapter 1 Overview Chapter 2 Chapter 3 CPU Control Functions Chapter 4 Interrupt (INTC) Chapter 5 Clock Generation Circuit (2CLK) Chapter 6 Time Base Counter (TBC) Chapter 7 Ports (P0, P1, P2, P3 and P4) Chapter 8 Serial Port (SIOP) Chapter 9 Buzzer Driver (BD) Chapter 10 Capture Circuit (CAPR)
  • Page 11: Chapter 1 Overview

    Chapter 1 Overview This chapter describes the features, block diagrams, pin configurations, pin descriptions and basic operation timings.
  • Page 13: Overview

    Chapter 1 Overview Chapter 1 Overview 1.1 Overview The MSM64164C is a CMOS 4-bit microcontroller that has built-in 256-nibble RAM, 20 I/O ports, buzzer output, a serial port, a 2-channel RC oscillation type A/D converter and 34 LCD segment drivers.
  • Page 14 1 watchdog timer cause (14) Power supply voltage • 1.5 V/3 V selectable by mask option • Low power consumption (15) Exterior • Chip : MSM64164C-xxx • 80-pin flat package (QFP) : MSM64164C-xxxGS-K (QFP80-P-1414-0.65-K) MSM64164C-xxxGS-BK (QFP80-P-1420-0.80-BK) MSM64164C-xxxTS-K (TQFP80-P-1212-0.50-K)
  • Page 15 BIAS 4064B PCM PCL A11 to A8 A7 to A0 P2.0 P2.1 256N P4.3 DB7 to DB0 P1.0 OSC2 ROMR TIMING SIOP P1.1 OSC1 2CLK CONTROLLER P1.2 P1.3 RESET RSTC P0.0 P0.1 TST1 P0.2 PORT ADDRESS TST2 P0.3 DB7 to DB0 INTC CAPR Indicates the CPU core (nX-4/20)
  • Page 16: Pin Configuration

    MSM64164C User's Manual Chapter 1 Overview 1.4 Pin Configuration The pin configuration of the package of MSM64164C and the chip exterior figure are shown in Figure 1-2, 1-3 and 1-4. L33/P6.3 L32/P6.2 L31/P6.1 L30/P6.0 L29/P5.3 L28/P5.2 L27/P5.1 L26/P5.0 [NOTE]: Since pins 32 and 67 are shorted inside the IC, can be supplied from either side.
  • Page 17 L27/P5.1 L26/P5.0 P2.0 P2.1 P2.2 V SS3 P2.3 V SS2 P3.0 V SS [NOTE]: Since pins 30 and 65 are short-circuited inside the IC, V can be supplied from either side. Figure 1-3 MSM64164C (QFP: GS-K, TQFP: TS-K) Pin Configuration...
  • Page 18 Chip size : 5.39 mm ¥ 4.48 mm / Thickness : 350 µm (Typ.) MSM64164C-xxx • Power supply of the back of chip is V • Numbers 1 through 80 show pad numbers (PAD No.) Figure 1-4 MSM64164C Chip Exterior Figure...
  • Page 19: Pin Description

    1.5 Pin Description 1.5.1 Description of Each Pin The basic functions of each pin of the MSM64164C are shown in Table 1-1 and their secon- dary functions are shown in Table 1-2. Table 1-1 (A) Description of Pin (Basic Function) Pin No.
  • Page 20 MSM64164C User's Manual Chapter 1 Overview Table 1-1 (B) Pin Description (Basic Functions) Pin No. Pad No. Input/ Classification Pin name Function GS-K Output GS-BK TS-K Port P0.0 Input 4-bit input port (P0): Can select (1) input with pull-up resistance, (2) input with pull-down P0.1...
  • Page 21 MSM64164C User's Manual Chapter 1 Overview Table 1-1 (C) Pin Description (Basic Functions) Pin No. Pad No. Input/ Classification Pin name Function GS-K Output GS-BK TS-K Buzzer Output Output pin for the buzzer drive A/D converter Output Resistance sensor connection pin for...
  • Page 22 MSM64164C User's Manual Chapter 1 Overview Table 1-1 (D) Pin Description (Basic Functions) Pin No. Pin No. Pad No. Input/ Input/ Classification Pin name Function GS-K Output Output GS-BK TS-K LCD driver Output LCD segment/common signal output pins. Output Output...
  • Page 23 MSM64164C User's Manual Chapter 1 Overview Table 1-2 Pin Description (Secondary Functions) Pin No. Pad No. Input/ Classification Pin name Function GS-K Output GS-BK TS-K External P0.0 Input Secondary function: interrupt An external interrupt input pin. P0.1 Can receive interrupt by level change.
  • Page 24: Unused Pin Description

    MSM64164C User's Manual Chapter 1 Overview 1.5.2 Unused Pin Description Table 1-3 shows processing of unused pins. Table 1-3 Processing of Unused Pins Recommended pin connection OSC1 Open OSC2 Open TST1, TST2 Open P0.0 to P0.3 "L" level, "H" level or open (depends on input mode selection) P1.0 to P1.3...
  • Page 25: Basic Timing

    Chapter 1 Overview 1.6 Basic Timing The MSM64164C generates a system clock (CLK) by one of two methods, a 32.768 kHz crystal oscillator or a 400 kHz RC oscillator. A phase of CLK correspondes with a phase of XT or OSC1.
  • Page 26 MSM64164C User's Manual Chapter 1 Overview 1-14...
  • Page 27: Chapter 2 Cpu

    Chapter 2...
  • Page 29: Overview

    Chapter 2 CPU 2.1 Overview The instruction set of the MSM64164C is composed of 148 different instructions that contain byte operations. The address space of the MSM64164C is divided into 8-bit width program memory area and a 4-bit width data memory area.
  • Page 30: Layout Of Registers

    MSM64164C User's Manual Chapter 2 CPU 2.2 Layout of Registers Figure 2-2 shows the layout of registers of the MSM64164C. A register B register Program counter (PC) (accumulator) BA register pair H register L register Stack pointer (SP) HL register pair "1"...
  • Page 31: Registers A, B, H, L, X And Y

    MSM64164C User's Manual Chapter 2 CPU 2.2.1 Registers A, B, H, L, X and Y The A register (accumulator) is a central register of each operation processing. There are five working registers of B, H, L, X and Y. The B register combined with the A register plays a central role for processing byte data.
  • Page 32: Program Counter (Pc)

    MSM64164C User's Manual Chapter 2 CPU 2.2.2 Program Counter (PC) This is a counter of 12 bits and can select a program area of internal 4K bytes. 2.2.3 Stack Pointer (SP) The stack pointer (SP) is a register to indicate the top address of the stack assigned from 7EH to 7FH on data memory bank 0.
  • Page 33: Memory Space

    MSM64164C User's Manual Chapter 2 CPU 2.3 Memory Space 2.3.1 Program Memory Space The program memory space is a memory area for program data, the interrupt area, the CZP area, the start address area and the test data area. The data length is 8 bits and is assigned from address 0 to address 4095.
  • Page 34: Data Memory Space

    MSM64164C User's Manual Chapter 2 CPU 2.3.2 Data Memory Space 2.3.2.1 Data Memory Space The data memory space is assigned data memory and special function registers (SFRs) and is located in a different address space from the program memory space. The data length is 4 bits.
  • Page 35: Bank Selection Of Data Memory

    MSM64164C User's Manual Chapter 2 CPU 2.3.2.2 Bank Selection of Data Memory Bank selection in data memory can be performed by the bank select registers (BSR0 and BSR1), the bank common flag (BCF) and the bank enable flag (BEF). These registers and flags can be saved and resorted to the stack altogether by the "PUSH BSR"...
  • Page 36: Addressing Modes Of Data Memory

    MSM64164C User's Manual Chapter 2 CPU 2.3.2.3 Addressing Modes of Data Memory (1) HL indirect addressing mode Addresses within a bank can be specified by the HL register pair. H register L register Bank specification Data memory address Figure 2-7 Data Memory Address of HL Indirect Addressing (2) XY indirect addressing mode Addresses within a bank can be specified by the XY register pair.
  • Page 37 MSM64164C User's Manual Chapter 2 CPU (3) Direct addressing mode Addresses in a bank can be specified by 8-bit immediate data contained in the instruction code. Immediate data Bank specification Data memory address Figure 2-9 Data Memory Address of Direct Addressing (4) Stack pointer indirect addressing mode Addresses within Bank 7 can be specified by the stack pointer (SP).
  • Page 38 MSM64164C User's Manual Chapter 2 CPU 2-10...
  • Page 39: Chapter 3 Cpu Control Functions

    Chapter 3 CPU Control Functions...
  • Page 41: Overview

    MSM64164C User's Manual Chapter 3 CPU Control Functions Chapter 3 CPU Control Functions 3.1 Overview The MSM64164C has halt mode besides operation mode. Operation status can be classified as follows including system reset mode: • Normal operation mode • System reset mode •...
  • Page 42: System Reset Function

    MSM64164C User's Manual Chapter 3 CPU Control Functions 3.2 System Reset Function RESET RESET 3.2.1 System Reset Operation by RESET RESET RESET Input Pin System reset mode is started when either power is turned on, crystal oscillation stops or the RESET pin becomes "L"...
  • Page 43  MSM64164C User's Manual Chapter 3 CPU Control Functions RESET 0 (Time base counter reset) XTAL 32.768 kHz oscillation output 0.5 sec 1.3 V level or V Logic power 1.5 V or 3.0 V supply 63 msec RESETS (System reset)
  • Page 44: State At System Reset

    MSM64164C User's Manual Chapter 3 CPU Control Functions 3.2.2 State at System Reset Table 3-2 shows the state of the registers after system reset. Table 3-2 (a) Initial Values at System Reset Value at Register/Flag Note system reset Program counter (PC)
  • Page 45 MSM64164C User's Manual Chapter 3 CPU Control Functions Table 3-2 (b) Initial Values at System Reset Value at Register/Flag Note system reset Port 30 control register (P30CON) Input mode, input with pull-up/pull-down resistance, 64 Hz sampling, interrupt disabled Port 31 control register (P31CON)
  • Page 46 MSM64164C User's Manual Chapter 3 CPU Control Functions Table 3-2 (C) Initial Values at System Reset Value at Register/Flag Note system reset A/D converter control register 0 (ADCON0) Counter A select, RC oscillation halt A/D converter control register 1 (ADCON1)
  • Page 47: Halt Mode

    MSM64164C User's Manual Chapter 3 CPU Control Functions 3.3 Halt Mode 3.3.1 Halt Mode Register (HALT) This is a special function register (SFR) that controls transition to halt mode. HALT (7DH) -----* -----* -----* (R/W) Halt mode transition selection flag...
  • Page 48 MSM64164C User's Manual Chapter 3 CPU Control Functions LMAD 7DH : M(7DH) ← A (A = 1 S1 S2 S3 S1 S2 S3 S1 S1 S1 S2 S3 S1 S2 S3 S1 System clock: Interrupt request: Dummy Interrupt Halt instruction...
  • Page 49: Chapter 4 Interrupt (Intc)

    Chapter 4 Interrupt (INTC)
  • Page 51: Overview

    Chapter 4 Interrupt (INTC) 4.1 Overview The MSM64164C has ten interrupt causes (10 vector addresses), two of which are external interrupts from ports and 8 are internal interrupts. Of the ten interrupt causes, only the watchdog interrupt cannot be disabled (non-maskable interrupt) and other 9 interrupts are controlled by the master interrupt enable flag (MI) and each interrupt enable register (IE0, IE1 and IE2) for enabling/disabling interrupts.
  • Page 52 MSM64164C User's Manual Chapter 4 Interrupt (INTC) IRQ0 IRQ0.0 IE0.0 EXI0 XI0INT QXI0 IRQ0.1 IE0.1 ESIO SIOINT QSIO IRQ0.2 IE0.2 EXI1 XI1INT QXI1 IRQ0.3 IE0.3 ADINT Interrupt vector address IRQ1 IRQ1.0 IE1.0 E256Hz 256HzINT Q256Hz IRQ1.1 IE1.1 E32Hz 32HzINT Q32Hz...
  • Page 53: Interrupt Sequence

    MSM64164C User's Manual Chapter 4 Interrupt (INTC) 4.2 Interrupt Sequence Transition to interrupt processing is performed by generating an individual interrupt cause while the MI flag is set to "1". An interrupt transition cycle is equivalent to 5 machine cycles and the following are executed: (1) The MI flag is reset to "0".
  • Page 54: Interrupt Control Registers

    MSM64164C User's Manual Chapter 4 Interrupt (INTC) 4.3 Interrupt Control Registers 4.3.1 Interrupt Request Registers (IRQ0, IRQ1 and IRQ2) Each interrupt request register (IRQ0, IRQ1 and IRQ2) is composed of a 4-bit register. When an interrupt request is generated, a corresponding bit is set to "1" in the S1 state of the first machine cycle.
  • Page 55 MSM64164C User's Manual Chapter 4 Interrupt (INTC) IRQ1 (35H) Q1Hz Q16Hz Q32Hz Q256Hz (R/W) 1 Hz interrupt request flag 0: No request (initial value) 1: Request 16 Hz interrupt request flag 0: No request (initial value) 1: Request 32 Hz interrupt request flag...
  • Page 56 MSM64164C User's Manual Chapter 4 Interrupt (INTC) IRQ2 (33H) -----* -----* QWDT Q01Hz (R/W) Watchdog timer interrupt request flag 0: No request (initial value) 1: Request 0.1 Hz interrupt request flag 0: No request (initial value) 1: Request *Reserved bit: "1" is always read out. Not valid for write.
  • Page 57: Interrupt Enable Registers (Ie0, Ie1 And Ie2)

    MSM64164C User's Manual Chapter 4 Interrupt (INTC) 4.3.2 Interrupt Enable Registers (IE0, IE1 and IE2) Each interrupt enable register (IE0, IE1 and IE2) is composed of a 4-bit register and determines whether a request is sent to the CPU or not by AND with a corresponding bit of the interrupt request registers (IRQ0, IRQ1 and IRQ2).
  • Page 58 MSM64164C User's Manual Chapter 4 Interrupt (INTC) (31H) E1Hz E16Hz E32Hz E256Hz (R/W) 1 Hz interrupt enable flag 0: Disabled (initial value) 1: Enabled 16 Hz interrupt enable flag 0: Disabled (initial value) 1: Enabled 32 Hz interrupt enable flag...
  • Page 59: Master Interrupt Enable Register (Mief)

    MSM64164C User's Manual Chapter 4 Interrupt (INTC) 4.3.3 Master Interrupt Enable Register (MIEF) The MI flag of the master interrupt enable register (MIEF) is to control disabling/enabling of all the interrupts excepting watchdog timer interrupt. When set to "1", interrupt is enabled and when set to "0", interrupt is disabled.
  • Page 60 MSM64164C User's Manual Chapter 4 Interrupt (INTC) 4-10...
  • Page 61: Chapter 5 Clock Generation Circuit (2Clk)

    Chapter 5 Clock Generation Circuit (2CLK)
  • Page 63: Overview

    Chapter 5 Clock Generation Circuit (2CLK) 5.1 Overview The clock generation circuit (2CLK) of the MSM64164C is composed of a 32.768 kHz crystal oscillation circuit, a 400 kHz RC oscillation circuit and a clock control part. It generates the system clock (CLK) and the time base clock (32.768 kHz).
  • Page 64: Operation Of Clock Generation Circuit

    MSM64164C User's Manual Chapter 5 Clock Generation Circuit (2CLK) 5.3 Operation of Clock Generation Circuit The 32.768 kHz crystal oscillation circuit oscillates by installing a 32.768 kHz crystal externally. When micro-tuning the 32.768 kHz frequency by an external capacitor, the built- in capacitance (C ) can be cut off by selecting a mask option.
  • Page 65: System Clock Switch Timing

    MSM64164C User's Manual Chapter 5 Clock Generation Circuit (2CLK) 5.5 System Clock Switch Timing When the CPUCLK bit of the frequency control register (FCON) is set to "1", the system clock is switched from crystal oscillation output (32.768 kHz) to RC oscillation output (400 kHz) and...
  • Page 66 MSM64164C User's Manual Chapter 5 Clock Generation Circuit (2CLK) Table 5-1 shows the clock generation circuit related pins. Table 5-2 shows typical values of oscillation frequencies of the RC oscillation circuit. Table 5-1 Clock Generation Circuit-Related Pins Pin No. Input/...
  • Page 67: Chapter 6 Time Base Counter (Tbc)

    Chapter 6 Time Base Counter (TBC)
  • Page 69: Overview

    Chapter 6 Time Base Counter (TBC) 6.1 Overview The MSM64164C 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 and a 1/10 frequency dividing circuit. The count clock of the time base is supplied with the oscillation clock (32.768 kHz) of the crystal oscillation circuit.
  • Page 70: Operation Of Time Base Counter

    MSM64164C User's Manual Chapter 6 Time Base Counter (TBC) 6.3 Operation of Time Base Counter The time base counter (TBC) starts count-up from 0000H after system reset. Count-up is started by falling of the time base clock (32.768 kHz). 256 Hz/32 Hz/16 Hz/1 Hz/0.1 Hz output of the time base counter is used as the timer base interrupt and a time base interrupt request is generated at falling of each output.
  • Page 71 MSM64164C User's Manual Chapter 6 Time Base Counter (TBC) 256 Hz 128 Hz 64 Hz 32 Hz 16 Hz Write TBCR 16 Hz 8 Hz 4 Hz 2 Hz 1 Hz 0.1 Hz seconds -1/16 Reset by "Write TBCR". Write...
  • Page 72 MSM64164C User's Manual Chapter 6 Time Base Counter (TBC)
  • Page 73: Chapter 7 Ports (P0, P1, P2, P3 And P4)

    Chapter 7 Ports (P0, P1, P2, P3 and P4)
  • Page 75: Overview

    Chapter 7 Ports (P0, P1, P2, P3 and P4) 7.1 Overview The MSM64164C has one 4-bit input port, three 4-bit input/output ports and one 4-bit output port built-in. Table 7-1 shows the list of functions of each port. For secondary functions of the capture timer, the A/D converter and the serial port, refer to Chapter 10 "Capture Circuit", Chapter 12 "A/D...
  • Page 76: Port 0 And Port 1 (P0.0 To P0.3 And P1.0 To P1.3)

    MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) 7.2 Port 0 and Port 1 (P0.0 to P0.3 and P1.0 to P1.3) 7.2.1 Layout of Port 0 and Port 1 Port 0 is a 4-bit input only port. Port 0 can be switched to either pull-up resistance input, pull- down resistance input or high-impedance input by the port 01 control register (P01CON).
  • Page 77 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) The power supply for the input circuit of Port 0 and the output circuit of Port 1 is at V level. When connecting Port 0 and Port 1 to equipment operated by a different power supply...
  • Page 78: Registers Related To Port 0 And Port 1

    MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) 7.2.2 Registers Related to Port 0 and Port 1 Port 0 register (P0) The port 0 register is a 4-bit read only special function register (SFR) to read out the level of each port of Port 0.
  • Page 79 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) In case the data is read from the port, the data is taken in the accumulator (A Register) or the BA register pair at the latter half of the state 2 (S2) of the last machine cycle of the read instruction.
  • Page 80 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) (3) Port 01 control register (P01CON) The Port 01 control register (P01CON) is a 4-bit special function register (SFR) to control input mode of Port 0, output mode of Port 1 and pull-down/pull-up resistance input when Ports 2 to 4 are selected as input.
  • Page 81: External Interrupt Generation Timing Of Port 0

    MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) Bit 0: P0MOD This bit is to select input mode of Port 0. By resetting P0MOD to "0", Port 0 becomes pull-down/pull-up resistance input and by setting P0MOD to "1", Port 0 becomes high- impedance input.
  • Page 82 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) 64 Hz P0.0 P0.1 P0.2 P0.3 XI1INT QXI1 Figure 7-6 External 1 Interrupt Generation Timing (When PUD = 1) 64 Hz P0.0 P0.1 P0.2 P0.3 XI1INT QXI1 Figure 7-7 External 1 Interrupt Generation Timing (When PUD = 0)
  • Page 83: Port 2, Port 3 And Port 4 (P2.0 To P2.3, P3.0 To P3.3 And P4.0 To P4.3)

    MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) 7.3 Port 2, Port 3 and Port 4 (P2.0 to P2.3, P3.0 to P3.3 and P4.0 to P4.3) 7.3.1 Layout of Port 2, Port 3 and Port 4 Ports 2 to 4 are 4-bit input/output ports.
  • Page 84 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) The power supply of Port 2, Port 3 and Port 4 is at the V level. When connecting Ports 2 to 4 to external equipment operated by a different power supply, please supply the power of the external equipment to the V pins, as shown in Figure 7-9.
  • Page 85: Registers Related To Port 2, Port 3 And Port 4

    MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) 7.3.2 Registers Related to Port 2, Port 3 and Port 4 (1) Port 2 register (P2) The Port 2 register is a 4-bit special function register to set the output value of the port.
  • Page 86 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) It is possible to specify input/output bitwise by each Port control register for Ports 2 to 4. Consequently, depending on how each DIR bit is specified, contents of each register are read for some bits while the level of each pin are read for other bits.
  • Page 87 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) P20CON (10H) P20IE P20F P20DIR P20MOD Selection of P2.0 external interrupt disable/enable 0: Interrupt disabled (initial value) 1: Interrupt enabled Selection of P2.0 external interrupt sampling clock 0: 64 Hz (initial value) 1: System clock Selection of P2.0 input/output mode...
  • Page 88 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) P21CON (11H) P21IE P21F P21DIR P21MOD Selection of P2.1 external interrupt disable/enable 0: Interrupt disabled (initial value) 1: Interrupt enabled Selection of P2.1 external interrupt sampling clock 0: 64 Hz (initial value) 1: System clock Selection of P2.1 input/output mode...
  • Page 89 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) P22CON (12H) P22IE P22F P22DIR P22MOD Selection of P2.2 external interrupt disable/enable 0: Interrupt disabled (initial value) 1: Interrupt enabled Selection of P2.2 external interrupt sampling clock 0: 64 Hz (initial value) 1: System clock Selection of P2.2 input/output mode...
  • Page 90 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) P23CON (13H) P23IE P23F P23DIR P23MOD Selection of P2.3 external interrupt disable/enable 0: Interrupt disabled (initial value) 1: Interrupt enabled Selection of P2.3 external interrupt sampling clock 0: 64 Hz (initial value) 1: System clock Selection of P2.3 input/output mode...
  • Page 91 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) (5) Port 3 control registers (P30CON to P33CON) The Port 3 control registers (P30CON to P33CON) are 4-bit special function registers (SFRs) to perform selection of input/output mode, selection of pull-down/pull-up resist-...
  • Page 92 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) P31CON (15H) P31IE P31F P31DIR P31MOD Selection of P3.1 external interrupt disable/enable 0: Interrupt disabled (initial value) 1: Interrupt enabled Selection of P3.1 external interrupt sampling clock 0: 64 Hz (initial value) 1: System clock Selection of P3.1 input/output mode...
  • Page 93 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) P32CON (16H) P32IE P32F P32DIR P32MOD Selection of P3.2 external interrupt disable/enable 0: Interrupt disabled (initial value) 1: Interrupt enabled Selection of P3.2 external interrupt sampling clock 0: 64 Hz (initial value) 1: System clock Selection of P3.2 input/output mode...
  • Page 94 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) P33CON (17H) P33IE P33DIR P33MOD Selection of P3.3 external interrupt disable/enable 0: Interrupt disabled (initial value) 1: Interrupt enabled Switching of P3.3/SIN pin functions 0: Input/output port function (initial value) 1: Serial port data input function (P3.3 is selected to input mode in disregard of P33DIR)
  • Page 95 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) (6) Port 4 control registers (P40CON to P43CON) The port 4 control registers (P40CON to P43CON) are 4-bit special function registers (SFRs) to perform selection of input/output mode, selection of pull-down/pull-up resist-...
  • Page 96 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) P41CON (19H) P41IE P41DIR P41MOD Selection of P4.1 external interrupt disable/enable 0: Interrupt disabled (initial value) 1: Interrupt enabled Switching of P4.1/SPR pin functions 0: Input/output port function (initial value) 1: Serial port data ready signal output function (P4.1 is selected to output mode in disregard of P41DIR)
  • Page 97 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) P42CON (1AH) P42IE SCLK P42DIR P42MOD Selection of P4.2 external interrupt disable/enable 0: Interrupt disabled (initial value) 1: Interrupt enabled Switching of P4.2/SCLK pin functions 0: Input/output port function (initial value) 1: Serial port clock input/output function (P4.2 input/output mode is selected by EXSC of...
  • Page 98 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) P43CON (1BH) P43IE P43DIR P43MOD Selection of P4.3 external interrupt disable/enable 0: Interrupt disabled (initial value) 1: Interrupt enabled Switching of P4.3/MON pin functions 0: Input/output port function (initial value) 1: RC oscillation clock monitor output function (P4.3 is selected to output mode in disregard of P43DIR)
  • Page 99 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) Bit 2: SIN (P33CON) This bit selects data input (SIN) of the serial port which is a secondary function of Port 3.3. When SIN is reset to "0", P3.3 becomes a normal port function and when SIN is set to "1", the data input function of the serial port is assigned.
  • Page 100 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) When each DIR bit is set to "1" to select output mode, CMOS output or NMOS open drain output is selected. When each MOD bit is reset to "0", pull-down/pull-up resistance input is selected in input mode and CMOS output mode is selected in output mode.
  • Page 101: External Interrupt Generation Timing Of Port 2, Port 3 And Port 4

    MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) 7.3.3 External Interrupt Generation Timing of Port 2, Port 3 and Port 4 External interrupt of Ports 2 to 4 is generated when each IE bit (P20IE to P23IE, P30IE to P33IE and P40IE to P43IE) of P2.0 to P2.3, P3.0 to P3.3 and P4.0 to P4.3 are set to "1"...
  • Page 102 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) 64 Hz or system clock P2.n P3.n P4.n P2.nIE P3.nIE P4.nIE XIOINT QXI0 Figure 7-13 External 0 Interrupt Generation Timing 7-28...
  • Page 103 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) Table 7-3 shows the list of port-related registers. Table 7-3 List of Port-Related Registers Value at Register name Symbol Address Read/Write Byte access system reset Port 2 register...
  • Page 104 MSM64164C User's Manual Chapter 7 Ports (P0, P1, P2, P3 and P4) 7-30...
  • Page 105: Chapter 8 Serial Port (Siop)

    Chapter 8 Serial Port (SIOP)
  • Page 107: Overview

    Chapter 8 Serial Port (SIOP) 8.1 Overview The MSM64164C has an 8-bit synchronous serial port. Receive/transmit operation of the serial port is performed simultaneously and the serial transfer clock can select either internal or external mode. Direction of transfer data can be either MSB as a head or LSB as a head.
  • Page 108: Layout Of Serial Port

    MSM64164C User's Manual Chapter 8 Serial Port (SIOP) 8.2 Layout of Serial Port Figure 8-1 shows the layout of the serial port. In Figure 8-1, P3.3 is the data receive pin, P4.0 is the data transmit pin, P4.1 is the serial port ready pin and P4.2 is the transfer clock pin.
  • Page 109: Operation Of Serial Port

    MSM64164C User's Manual Chapter 8 Serial Port (SIOP) 8.3 Operation of Serial Port By setting the ENTR bit of the Serial port control register (SCON) to "1" after writing send data to the Serial port buffers (SBUFH and SBUFL), serial transfer begins. When serial transfer is finished, the SEND bit of SCON is set to "1"...
  • Page 110 MSM64164C User's Manual Chapter 8 Serial Port (SIOP) As shown in Figure 8-2, when serial transfer is started by setting the ENTR bit to "1", the P4.1/ SPR pin of the transfer ready pin becomes "L" level. After the other side of the communication detects "L"...
  • Page 111: Registers Related To Serial Port

    MSM64164C User's Manual Chapter 8 Serial Port (SIOP) 8.4 Registers Related to Serial Port (1) Serial Port Control Register (SCON) The Serial port control register (SCON) is a 4-bit special function register (SFR) to control the Serial port. SCON (08H)
  • Page 112 MSM64164C User's Manual Chapter 8 Serial Port (SIOP) (2) Serial Port Buffer Registers (SBUFH, SBUFL) The Serial port buffer registers are 4-bit special function registers (SFRs) to write send data or to read receive data. SBUFL (06H) (R/W) Value of lower bits of the serial port buffer...
  • Page 113 MSM64164C User's Manual Chapter 8 Serial Port (SIOP) Tables 8-1 and 8-2 show the list of serial port-related registers and pins. Table 8-1 List of Serial Port-Related Registers Value at Register name Symbol Address Read/Write Byte access system reset Serial port buffer lower register...
  • Page 114 MSM64164C User's Manual Chapter 8 Serial Port (SIOP)
  • Page 115: Chapter 9 Buzzer Driver (Bd)

    Chapter 9 Buzzer Driver (BD)
  • Page 117: Overview

    Chapter 9 Buzzer Driver (BD) 9.1 Overview The MSM64164C has a built-in buzzer driver with 15 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).
  • Page 118 MSM64164C User's Manual Chapter 9 Buzzer Driver (BD) In (a) discontinuous sound 1 mode, waveforms which are synchronized with 8 Hz output of the time base counter are output. In (b) discontinuous 2 mode, waveforms that are synchronized to the logical AND of 8 Hz signal output and a "L" level of 1 Hz signal are output.
  • Page 119: Registers Related To Buzzer Driver

    MSM64164C User's Manual Chapter 9 Buzzer Driver (BD) 9.4 Registers Related to Buzzer Driver (1) Buzzer control register (BDCON) The Buzzer control register (BDCON) is a 4-bit special function register (SFR) that controls output logic of the BD pin, 4 types of buzzer output modes and ON/OFF of buzzer output.
  • Page 120 MSM64164C User's Manual Chapter 9 Buzzer Driver (BD) (2) Buzzer frequency control register (BFCON) The buzzer frequency control register (BFCON) is a 4-bit special function register (SFR) to control output frequencies of the buzzer. BFCON (0BH) (R/W) Selection of buzzer output frequencies...
  • Page 121: Bd Output Waveform And External Circuit

    MSM64164C User's Manual Chapter 9 Buzzer Driver (BD) Tables 9-1 and 9-2 show the lists of buzzer driver-related registers and related pins. Table 9-1 Buzzer Driver-Related Registers Value at Register name Symbol Address Read/Write Byte access system reset Buzzer driver control register...
  • Page 122 MSM64164C User's Manual Chapter 9 Buzzer Driver (BD) Figure 9-4 shows a circuit example of a buzzer driver mounted outside. As illustrated blow, the buzzer must be driven through a transistor mounted outside and do not drive the buzzer directly at the BD terminal.
  • Page 123: Chapter 10 Capture Circuit (Capr)

    Chapter 10 Capture Circuit (CAPR)
  • Page 125: Overview

    Chapter 10 Capture Circuit (CAPR) 10.1 Overview The MSM64164C has a capture circuit that fetches 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 resistance input is chosen or at the rising to "H"...
  • Page 126: Operation Of Capture Circuit

    MSM64164C User's Manual Chapter 10 Capture Circuit (CAPR) 10.3 Operation of Capture Circuit Figure 10-2 shows data latch timing of the Capture data register 0 (CAPR0). In Figure 10-1, CRF0 is set to "1" at the rising edge of 2 kHz output of the time base counter either when P0.0 input signal becomes "L"...
  • Page 127: Registers Related To Capture Circuit

    MSM64164C User's Manual Chapter 10 Capture Circuit (CAPR) 10.4 Registers Related to Capture Circuit Capture control register (CAPCON) The Capture control register (CAPCON) is a 4-bit special function register (SFR) to control the capture circuit. CAPCON (0EH) CRF1 CRF0 ECAP1...
  • Page 128 MSM64164C User's Manual Chapter 10 Capture Circuit (CAPR) Bit 1:ECAP1 This bit enables or disables latch of output of the time base counter by the Capture register 1 (CAPR1). When ECAP1 is reset to "0", output of the time base counter is not latched and when CAPR1 is read out, the time base counter value at that time is read out.
  • Page 129 MSM64164C User's Manual Chapter 10 Capture Circuit (CAPR) Tables 10-1 and 10-2 show the list of capture circuit-related registers and pins. Table 10-1 List of Capture Circuit-Related Registers Value at Register name Symbol Address Read/Write Byte access system reset Capture control register...
  • Page 130 MSM64164C User's Manual Chapter 10 Capture Circuit (CAPR) 10-6...
  • Page 131: Chapter 11 Watchdog Timer (Wdt)

    Chapter 11 Watchdog Timer (WDT)
  • Page 133: Overview

    Chapter 11 Watchdog Timer (WDT) 11.1 Overview The MSM64164C has a built-in watchdog timer to prevent the CPU from crashing. The watchdog timer is composed of a 6-bit watchdog timer (WDT) and a watchdog timer control register (WDTCON) to reset WDT.
  • Page 134: Operation Of Watchdog Timer

    MSM64164C User's Manual Chapter 11 Watchdog Timer (WDT) 11.3 Operation of Watchdog Timer When the system reset is released, the Watchdog timer (WDT) is automatically started and the Watchdog timer counter (WDTC) begins count-up. WDTC reset can be performed by writing "5H"...
  • Page 135: Watchdog Timer Control Register (Wdtcon)

    MSM64164C User's Manual Chapter 11 Watchdog Timer (WDT) Figure 11-3 shows the operation time chart of the watchdog timer. Trouble occurs. RESETS Data : 5 Write signal to WDTCON Internal pointer Overflow Contents of WDTC 1.9 to 2 seconds WDTINT...
  • Page 136 MSM64164C User's Manual Chapter 11 Watchdog Timer (WDT) 11-4...
  • Page 137: Chapter 12 A/D Converter (Adc)

    Chapter 12 A/D Converter (ADC)
  • Page 139: Overview

    Chapter 12 A/D Converter (ADC) 12.1 Overview The MSM64164C has a built-in 2-channel RC oscillation method A/D converter. The A/D converter is composed of a 2-channel oscillation circuit, Counter A (CNTA0 to 4) which is a 4.8-digit decade counter, Counter B (CNTB0 to 3) which is a 14-bit binary counter and A/D converter control registers 0 and 1 (ADCON0, ADCON1).
  • Page 140 MSM64164C User's Manual Chapter 12 A/D Converter (ADC) <CNTB> 14-stage binary counter OSCCLK OVFB Differ- entiation a0-3 a4-7 a8-11 a12-13 <CNTA> 4.8-digit decade counter Interrupt request System clock (CLK) ADINT OVFA Differ- (32.768 kHz 1/(10 x 8) entiation /400 kHz)
  • Page 141: Rc Oscillation Circuit

    MSM64164C User's Manual Chapter 12 A/D Converter (ADC) 12.3.1 RC Oscillation Circuit The A/D converter of the RC oscillation method performs A/D conversion by digitizing the ratio of a reference resistance (or capacitance) to a resistanc sensor, such as thermistor sensor (or capacitance sensor).
  • Page 142 MSM64164C User's Manual Chapter 12 A/D Converter (ADC) Modes No.0 and No.7 in Table 12-1 measure the external clock which is input to the IN0 pin or the IN1 pin by halting the operation of the RC oscillation circuit. As shown in Table 12-1, no two oscillation circuits can operate simultaneously. This prevents interference to the oscillation operation when two are operated simultaneously.
  • Page 143 MSM64164C User's Manual Chapter 12 A/D Converter (ADC) OM3 OM2 OM1 OM0 Oscillation mode Oscillation with reference resistance RS0 Oscillation with sensor RT0 Figure 12-2 Measurement of CROSC0 by a Resistance Sensor OM3 OM2 OM1 OM0 Oscillation mode Oscillation with reference resistance RS0...
  • Page 144: Counter A/B Reference Mode

    MSM64164C User's Manual Chapter 12 A/D Converter (ADC) 12.3.2 Counter A/B Reference Mode The conversion operation of the A/D converter is performed by one of the following two modes. • Counter A Reference Mode (SADI bit of ADCON0 = 0)
  • Page 145 MSM64164C User's Manual Chapter 12 A/D Converter (ADC) The last count value of "nB0" at Counter B is the count value of OSCCLK during the gate time "nA0 • t " and is expressed by SYSCLK SYSCLK ∝ f nB0 = nA0 •...
  • Page 146 MSM64164C User's Manual Chapter 12 A/D Converter (ADC) (2) Operation of Counter B Reference Mode Figure 12-7 shows the operating timing of Counter B reference mode. Counter B reference mode is performed by the following procedure: (refer to Figure 12-7) [1] Subtract "nB1"...
  • Page 147 MSM64164C User's Manual Chapter 12 A/D Converter (ADC) Note: n = 0, 1, 0-1 EADC SYSCLK CRON Counter A 00000 00001 00002 00003 nA1-3 nA1-2 nA1-1 nA1 • t SYSCLK OSCCLK RC oscillation circuit input waveform IN0/IN1 OSCCLK overflow Counter B...
  • Page 148: Example Of Usage Of A/D Converter

    MSM64164C User's Manual Chapter 12 A/D Converter (ADC) 12.3.3 Example of Usage of A/D Converter The method to perform A/D conversion of sensor values by using Counter A reference mode and Counter B reference mode is explained by taking temperature measurement with a thermistor as an example.
  • Page 149 MSM64164C User's Manual Chapter 12 A/D Converter (ADC) nT0 = K • RT0 = K • f (T) - - - - - equation (a) Consequently, by performing conversion processing corresponding to the characteristics shown by Figure 12-9 to nT0, it is possible to express temperatures by digital values.
  • Page 150 MSM64164C User's Manual Chapter 12 A/D Converter (ADC) Figure 12-14 shows the conversion to digital values from the RT0 values, i.e. one cycle time chart of temperature measurement. One cycle of A/D conversion needs to be composed of two steps shown in Figure 12-14 because the reference resistance and the thermistor must be oscillated independently when taking the ratio of them.
  • Page 151 MSM64164C User's Manual Chapter 12 A/D Converter (ADC) <First step> <Second step> System 400 kHz 32.768 kHz clock(CLK) ADCON1 (Bits 2 to 0) 1H (SADI = 0, EADC = 1) 3H (SADI = 1, EADC = 1) ADCON0 (Bits 1, 0) nA0 •...
  • Page 152 MSM64164C User's Manual Chapter 12 A/D Converter (ADC) <First Step> [1] Set the system clock to 32.768 kHz (Write 0H to FCON), if using 400 kHz clock as system clock. [2] Set "80,000-nA0" to Counter A. Note: nA0 is taken as 12,000 in order to set the gate time nA0 • t...
  • Page 153 MSM64164C User's Manual Chapter 12 A/D Converter (ADC) The RC oscillation circuit (CROSC0) oscillates with thermistor RT0 from this time until overflow of Counter B. This period is equivalent to product of "nB0" from first step and due to RT0.
  • Page 154: Rc Oscillation Monitor

    MSM64164C User's Manual Chapter 12 A/D Converter (ADC) 12.3.4 RC Oscillation Monitor By setting Bit 2 (MON) of the Port 43 control register (P43CON) to "1", the RC oscillation clock (OSCCLK) can be output to P4.3. By using the test functions, the RC oscillation clock can be output at P4.3 without using software.
  • Page 155: Registers Related To A/D Converter

    MSM64164C User's Manual Chapter 12 A/D Converter (ADC) 12.4 Registers Related to A/D Converter (1) A/D converter control register 0 (ADCON0) The A/D converter control register 0 (ADCON0) is a 4-bit special function register (SFR) that selects start/stop of RC oscillation of the A/D converter and the A/D converter interrupt by Counter A or Counter B.
  • Page 156 MSM64164C User's Manual Chapter 12 A/D Converter (ADC) (2) A/D converter control register 1 (ADCON1) The A/D converter control register 1 (ADCON1) is a 4-bit special function register (SFR) to select oscillation mode of the RC oscillation circuit. ADCON1 (2BH)
  • Page 157 MSM64164C User's Manual Chapter 12 A/D Converter (ADC) (3) A/D converter counter A registers (CNTA0 to 4) The A/D converter counter A registers (CNTA0 to 4) are 4-bit special function registers (SFRs) to read/write the Counter A. Note: CNTA0 to CNTA3 are decimal counters and can handle only data from 0H to 9H.
  • Page 158 MSM64164C User's Manual Chapter 12 A/D Converter (ADC) (4) A/D converter counter B registers (CNTB0 to 3) The A/D converter counter B registers (CNTB0 to 3) are 4-bit special function registers (SFRs) to read/write the Counter B. CNTB0 (26H) (R/W)
  • Page 159 MSM64164C User's Manual Chapter 12 A/D Converter (ADC) Tables 12-3 and 12-4 list A/D converter-related registers and pins. Table 12-3 List of A/D Converter-Related Registers Value at Register name Symbol Address Read/Write Byte access system reset A/D converter control register 0...
  • Page 160 MSM64164C User's Manual Chapter 12 A/D Converter (ADC) 12-22...
  • Page 161: Chapter 13 Lcd Driver (Lcd)

    Chapter 13 LCD Driver (LCD)
  • Page 163: Overview

    Chapter 13 LCD Driver (LCD) 13.1 Overview The MSM64164C has a built-in LCD driver. There are three types of driving methods, i.e. 1/4 duty, 1/3 duty and 1/2 duty. Maximum of 120 segments can be driven for 1/4 duty, 93 segments for 1/3 duty and 64 segments for 1/ 2 duty, respectively.
  • Page 164 MSM64164C User's Manual Chapter 13 LCD Driver (LCD) L0 (segment output) LCD driver COM/SEG ΦLCD (Frame clock) Common timing signals Display register DSPR RESETS Common output select "1" (Mask option) "0" One of 10 is selected. Write Read BANK0 6 input...
  • Page 165 MSM64164C User's Manual Chapter 13 LCD Driver (LCD) L26 (Common output) LCD driver COM/SEG ΦLCD (Frame clock) "1" Output port select (mask option) Common timing signals "0" Display register DSPR RESETS Common output select "1" (Mask option) "0" One of 10 is selected.
  • Page 166: Operation Of Lcd Driver

    MSM64164C User's Manual Chapter 13 LCD Driver (LCD) 13.3 Operation of LCD Driver The LCD driver outputs LCD square waveforms based on data written to the display registers. The mask option can select the address of the display register, bit assignment and a segment driver/a common driver.
  • Page 167: Display Registers 0 To 30 (Dspr0 To 30)

    MSM64164C User's Manual Chapter 13 LCD Driver (LCD) 13.5 Display Registers 0 to 30 (DSPR0 to 30) The display registers 0 to 30 (DSPR0 to 30) are data registers for segment output of the LCD driver. They are assigned to addresses 40H to 5EH of Bank 0.
  • Page 168: Output Port Selection By Mask Option

    MSM64164C User's Manual Chapter 13 LCD Driver (LCD) 13.6 Output Port Selection by Mask Option Each of the 8 pins of L26 to L33 of the LCD driver can be selected as an output port by the mask option. When these pins are selected as output ports, one port pin is assigned to one bit of the display register.
  • Page 169: Bias Generation Circuit For Lcd Driver (Bias)

    MSM64164C User's Manual Chapter 13 LCD Driver (LCD) 13.7 Bias Generation Circuit for LCD Driver (BIAS) The bias generation circuit for LCD (BIAS) generates bias voltages of –1.5 V, –3.0 V and –4.5 V for the LCD driver by rising or dropping the power supply voltage by externally installing capacitors.
  • Page 170: Lcd Driver Output Waveforms

    MSM64164C User's Manual Chapter 13 LCD Driver (LCD) 13.8 LCD Driver Output Waveforms Figures 13-6 (a) to (c) show 1/4 duty of output waveforms of the LCD driver and Figures 13- 7 (a) and (b) show 1/3 duty and Figures 13-8 (a) and (b) show 1/2 duty.
  • Page 171 MSM64164C User's Manual Chapter 13 LCD Driver (LCD) Frame frequency 32 Hz COM1 : OFF COM2 : OFF COM3 : OFF COM4 : OFF COM1 : ON COM2 : OFF COM3 : OFF COM4 : OFF COM1 : OFF COM2...
  • Page 172 MSM64164C User's Manual Chapter 13 LCD Driver (LCD) Frame frequency 32 Hz COM1 : OFF COM2 : OFF COM3 : OFF COM4 : ON COM1 : ON COM2 : OFF COM3 : OFF COM4 : ON COM1 : OFF COM2...
  • Page 173 MSM64164C User's Manual Chapter 13 LCD Driver (LCD) Frame frequency 42.67 Hz COM1 COM2 COM3 Figure 13-7 (a) 1/3 Duty Common Driving Waveforms (1/3 bias) 13-11...
  • Page 174 MSM64164C User's Manual Chapter 13 LCD Driver (LCD) Frame frequency 42.67 Hz COM1 : OFF COM2 : OFF COM3 : OFF COM1 : ON COM2 : OFF COM3 : OFF COM1 : OFF COM2 : ON COM3 : OFF COM1...
  • Page 175 MSM64164C User's Manual Chapter 13 LCD Driver (LCD) Frame frequency 32 Hz COM1 COM2 Figure 13-8 (a) 1/2 Duty Common Driving Waveforms (1/2 bias) Frame frequency 32 Hz COM1 : OFF COM2 : OFF COM1 : ON COM2 : OFF...
  • Page 176 MSM64164C User's Manual Chapter 13 LCD Driver (LCD) Tables 13-1 and 13-2 show the list of LCD driver-related registers and pins. Table 13-1 (a) List of LCD Driver-Related Registers Value at Register name Symbol Address Read/Write Byte access system reset...
  • Page 177 MSM64164C User's Manual Chapter 13 LCD Driver (LCD) Table 13-1 (b) List of LCD Driver-Related Registers Value at Register name Symbol Address Read/Write Byte access system reset Display register 26 DSPR26 Display register 27 DSPR27 Display register 28 DSPR28 Display register 29...
  • Page 178 MSM64164C User's Manual Chapter 13 LCD Driver (LCD) Table 13-2 (a) List of LCD Driver-Related Pins Pin No. Pin name Pad No. Input/Output Function GS-K GS-BK TS-K —— Negative side power supply (at 1.5 V spec.) Bias output for driving LCD (–1.5 V) (at 3.0 V spec.) ——...
  • Page 179 MSM64164C User's Manual Chapter 13 LCD Driver (LCD) Table 13-2 (b) List of LCD Driver-Related Pins Pin No. Pin name Pad No.Input/Output Function GS-K GS-BK TS-K L26/P5.0 Output LCD driver output pins. L27/P5.1 Output Can become output ports by the mask option.
  • Page 180 MSM64164C User's Manual Chapter 13 LCD Driver (LCD) 13-18...
  • Page 181: Chapter 14 Constant Voltage Circuit For Logic Power Supply (Vr)

    Chapter 14 Constant Voltage Circuit for Logic Power Supply (VR)
  • Page 183: Overview

    Chapter 14 Constant Voltage Circuit for Logic Power Supply (VR) 14.1 Overview The MSM64164C has a built-in constant voltage circuit for the logic power supply (VR). 14.2 Layout of Constant Voltage Circuit for Logic Power Supply Figure 14-1 shows the layout of the constant voltage circuit for the logic power supply.
  • Page 184: Operation Of Constant Voltage Circuit For Logic Power Supply

    MSM64164C User's Manual Chapter 14 Constant Voltage Circuit for Logic Power Supply (VR) 14.3 Operation of Constant Voltage Circuit for Logic Power Supply The constant voltage for the logic power supply (VR) outputs a constant voltage of V – 1.3 V (Typ.) to the V pin and supplies V level as the power supply of the logic circuit.
  • Page 185: Backup Control Register (Bupcon)

    MSM64164C User's Manual Chapter 14 Constant Voltage Circuit for Logic Power Supply (VR) 14.4 Backup Control Register (BUPCON) The backup control register (BUPCON) is a 4-bit special function register (SFR) to control the output voltage level of V which is output of the constant voltage circuit for logic.
  • Page 186 MSM64164C User's Manual Chapter 14 Constant Voltage Circuit for Logic Power Supply (VR) 14-4...
  • Page 187: Chapter 15 Test Circuit (Tst)

    Chapter 15 Test Circuit (TST)
  • Page 189: Overview

    Chapter 15 Test Circuit (TST) 15.1 Overview The MSM64164C can output RC oscillation clock of the A/D converter or 400 kHz RC oscillation clock of the system clock to Port 4.3 using TST1 and TST2, which are test pins. By monitoring each RC oscillation clock, it is possible to measure the conversion character- istics of the A/D converter and the frequency of the RC oscillation side system clock.
  • Page 190 MSM64164C User's Manual Chapter 15 Test Circuit (TST) Table 15-1 List of Test Modes TST1 TST2 P0.3 P0.2 P0.1 P0.0 P4.3 output mode CROSC0 oscillation stop (P4.3 = IN0 input) RS0-CS0 oscillation clock CROSC0 RT0-CS0 oscillation clock oscillation mode RT0-1-CS0 oscillation clock...
  • Page 191 MSM64164C User's Manual Chapter 15 Test Circuit (TST) MSM64164C P0.0 XTAL 32.768 kHz P0.1 P0.2 OSC1 OSC2 P0.3 RC oscillation P4.3 clock monitor 0.1 mF 0.47 mF 3.0 V TST1 TST2 RESET CRT0 Figure 15-2 Connection Example of Test Mode (3.0 V operation mode)
  • Page 192 MSM64164C User's Manual Chapter 15 Test Circuit (TST) 15-4...
  • Page 193: Appendixes

    Appendixes...
  • Page 195: Appendix A List Of Special Function Registers

    MSM64164C User's Manual Appendix A Appendix A: List of Special Function Registers Value at Byte Register name Symbol Address system access reset Port 2 register Port 3 register Port 4 register Depends on Port 0 register input value Port 1 register...
  • Page 196 MSM64164C User's Manual Appendix A Value at Byte Register name Symbol Address system access reset Port 30 control P30CON P30IE P30F P30DIR P30MOD register Port 31 control P31CON P31IE P31F P31DIR P31MOD register Port 32 control P32CON P32IE P32F P32DIR...
  • Page 197 MSM64164C User's Manual Appendix A Value at Byte Register name Symbol Address system access reset A/D converter CNTB3 *— *— counter B register 3 A/D converter ADCON0 *— *— SADI EADC control register 0 A/D converter ADCON1 control register 1...
  • Page 198 MSM64164C User's Manual Appendix A Value at Byte Register name Symbol Address system access reset Display register 11 DSPR11 Display register 12 DSPR12 Display register 13 DSPR13 Display register 14 DSPR14 Display register 15 DSPR15 Display register 16 DSPR16 Display register 17 DSPR17...
  • Page 199: Appendix B Description Of Special Function Registers

    MSM64164C User's Manual Appendix B Appendix B: Description of Special Function Registers Register name Symbol Address Read/Write Value at system reset Port 2 register Port 20 control register P20CON Port 21 control register P21CON Port 22 control register P22CON Port 23 control register...
  • Page 200 MSM64164C User's Manual Appendix B (11H) P21IE P21F P21DIR P21MOD P2.1 Selection of external interrupt disable (initial value) 0: Interrupt disable (initial value) 1: Interrupt enable P2.1 Selection of external interrupt sampling clock 0: 64 Hz (initial value) 1: System clock P2.1 Selection of input/output mode...
  • Page 201 MSM64164C User's Manual Appendix B P22CON (12H) P22IE P22F P22DIR P22MOD P2.2 Selection of external interrupt disable/enable 0: Interrupt disable (initial value) 1: Interrupt enable P2.2 Selection of external interrupt sampling clock 0: 64 Hz (initial value) 1: System clock P2.2 Selection of input/output mode...
  • Page 202 MSM64164C User's Manual Appendix B P23CON (13H) P23IE P23F P23DIR P23MOD P2.3 Selection of external interrupt disable/enable 0: Interrupt disable (initial value) 1: Interrupt enable P2.3 Selection of external interrupt sampling clock 0: 64 Hz (initial value) 1: System clock P2.3 Selection of input/output mode...
  • Page 203 MSM64164C User's Manual Appendix B Register name Symbol Address Read/Write Value at system reset Port 3 register Port 30 control register P30CON Port 31 control register P31CON Port 32 control register P32CON Port 33 control register P33CON (01H) (R/W) P30CON...
  • Page 204 MSM64164C User's Manual Appendix B P31CON (15H) P31IE P31F P31DIR P31MOD P3.1 Selection of external interrupt disable/enable 0: Interrupt disable (initial value) 1: Interrupt enable P3.1 Selection of external interrupt sampling clock 0: 64 Hz (initial value) 1: System clock P3.1 Selection of input/output mode...
  • Page 205 MSM64164C User's Manual Appendix B P32CON (16H) P32IE P32F P32DIR P32MOD P3.2 Selection of external interrupt disable/enable 0: Interrupt disable (initial value) 1: Interrupt enable P3.2 Selection of external interrupt sampling clock 0: 64 Hz (initial value) 1: System clock P3.2 Selection of input/output mode...
  • Page 206 MSM64164C User's Manual Appendix B P33CON (17H) P33IE P33DIR P33MOD P3.3 Selection of external interrupt disable/enable 0: Interrupt disable (initial value) 1: Interrupt enable P3.3 Switching of SIN pin function 0: Input/output port function (initial value) 1: Serial port data input function P3.3 Selection of input/output mode...
  • Page 207 MSM64164C User's Manual Appendix B Register name Symbol Address Read/Write Value at system reset Port 4 register Port 40 control register P40CON Port 41 control register P41CON Port 42 control register P42CON Port 43 control register P43CON (02H) (R/W) P40CON...
  • Page 208 MSM64164C User's Manual Appendix B P41CON (19H) P41IE P41DIR P41MOD P4.1 Selection of external interrupt disable/enable 0: Interrupt disable (initial value) 1: Interrupt enable P4.1 Switching of /SPR pin function 0: Input/output port function (initial value) 1: Serial port ready signal output function P4.1 Selection of input/output mode...
  • Page 209 MSM64164C User's Manual Appendix B P42CON (1AH) P42IE SCLK P42DIR P42MOD P4.2 Selection of external interrupt disable/enable 0: Interrupt disable (initial value) 1: Interrupt enable P4.2 Switching of SCLK pin function 0: Input/output port function (initial value) 1: Serial port clock input/output function P4.2 Selection of input/output mode...
  • Page 210 MSM64164C User's Manual Appendix B P43CON (1BH) P43IE P43DIR P43MOD P4.3 Selection of external interrupt disable/enable 0: Interrupt disable (initial value) 1: Interrupt enable P4.3 Switching of MON pin function 0: Input/output port function (initial value) 1: RC oscillation clock output function P4.3 Selection of input/output mode...
  • Page 211 MSM64164C User's Manual Appendix B Register name Symbol Address Read/Write Value at system reset Depends on input Port 0 register value Port 1 register Port 01 control register P01CON (03H) Pin level of each bit of Port 0 0: "L" level 1: "H"...
  • Page 212 MSM64164C User's Manual Appendix B P01CON (1CH) -----* P1MOD P0MOD Selection of P0, P2, P3 and P4 input mode 0: Pull-up resistance input (initial value) 1: Pull-down resistance input Selection of P1 output mode 0: CMOS output (initial value) 1: NMOS open drain output...
  • Page 213 MSM64164C User's Manual Appendix B Register name Symbol Address Read/Write Value at system reset Serial port buffer lower register SBUFL Serial port buffer upper register SBUFH Serial port control register SCON SBUFL (06H) (R/W) (LSB) Value of lower 4 bits of the serial port buffer...
  • Page 214 MSM64164C User's Manual Appendix B Description The Serial port buffer lower register (SBUFL) and the Serial port buffer upper register (SBUFH) are used to write send data and to read receive data. The Serial port control register (SCON) selects the direction of serial transfer data, selection of the internal or the external system clock and confirms the start and the end of serial transfer.
  • Page 215 MSM64164C User's Manual Appendix B Register name Symbol Address Read/Write Value at system reset Buzzer driver control register BDCON Buzzer frequency control register BFCON BDCON (0AH) SELF (R/W) Selection of buzzer output logic 0: Positive logic output (initial value) 1: Negative logic output...
  • Page 216 MSM64164C User's Manual Appendix B BFCON (0BH) (R/W) Selection of buzzer output frequency 0: Output stops (initial value) 1: 5.461 kHz 0: 4.096 kHz 1: 3.277 kHz 0: 2.730 kHz 1: 2.341 kHz 0: 2.048 kHz 1: 1.820 kHz 0: 1.638 kHz 1: 1.489 kHz...
  • Page 217 MSM64164C User's Manual Appendix B Register name Symbol Address Read/Write Value at system reset Capture control register CAPCON Capture register 0 CAPR0 Capture register 1 CAPR1 CAPCON (0EH) CRF1 CRF0 ECAP1 ECAP0 (R/W) Selection of capture 1 data latch 0: Does not do capture 1 data latch (initial value)
  • Page 218 MSM64164C User's Manual Appendix B CAPR1 (0DH) 32Hz 64Hz 128Hz 256Hz Values of 32 Hz to 256 Hz of the time base counter Description The capture control register (CAPCON) is used to select latch and enable/disable of time base counter output data (32 to 256 Hz) of Capture 0 and Capture 1.
  • Page 219 MSM64164C User's Manual Appendix B Register name Symbol Address Read/Write Value at system reset Display control register DSPCON Display registers 0 to 30 DSPR0 to DSPR30 40H to 5EH DSPCON (1EH) -----* -----* DUTY1 DUTY0 (R/W) Duty selection 0: 1/4 duty (initial value)
  • Page 220 MSM64164C User's Manual Appendix B DSPR30 (5EH) (R/W) Segment output data DSPR29 (5DH) (R/W) Segment output data DSPR0 (40H) (R/W) Segment output data Description The Display control register (DSPCON) is a register to select duty of the LCD driver. The Display registers (DSPR0 to 30) are data registers for segment output of the LCD driver and can output to each LCD driver by specifying the mask option of the LCD part.
  • Page 221 MSM64164C User's Manual Appendix B Register name Symbol Address Read/Write Value at system reset A/D converter control register 0 ADCON0 A/D converter control register 1 ADCON1 A/D converter counter A register 0 CNTA0 A/D converter counter A register 1 CNTA1...
  • Page 222 MSM64164C User's Manual Appendix B ADCON1 (2BH) (R/W) Selection of oscillation mode 0: IN0 pin external clock input mode (initial value) 1: RS0-CS0 oscillation mode 0: RT0-CS0 oscillation mode 1: RT0-1-CS0 oscillation mode 0: RS0-CT0 oscillation mode 1: RS1-CS1 oscillation mode...
  • Page 223 MSM64164C User's Manual Appendix B CNTA2 (22H) (R/W) Value of Bits 8 to 11 of Counter A CNTA3 (23H) (R/W) Value of Bits 12 to 15 of Counter A CNTA4 (24H) -----* (R/W) Value of Bits 16 to 18 of Counter A *Reserved bit: "1"...
  • Page 224 MSM64164C User's Manual Appendix B CNTB1 (27H) (R/W) Value of Bits 4 to 7 of Counter B CNTB2 (28H) (R/W) Value of Bits 8 to 11 of Counter B CNTB3 (29H) -----* -----* (R/W) Value of Bits 12, 13 of Counter B *Reserved bit: "1"...
  • Page 225 MSM64164C User's Manual Appendix B Register name Symbol Address Read/Write Value at system reset Watchdog timer WDTCON control register WDTCON (36H) Description The Watchdog timer control register (WDTCON) is a register to reset the watchdog timer. WDTCON is a write-only register.
  • Page 226 MSM64164C User's Manual Appendix B Register name Symbol Address Read/Write Value at system reset Interrupt enable register 0 Interrupt enable register 1 Interrupt enable register 2 (30H) EXI1 ESIO EXI0 (R/W) A/D converter external interrupt enable flag 0: Disabled (initial value)
  • Page 227 MSM64164C User's Manual Appendix B (31H) E1Hz E16Hz E32Hz E256Hz (R/W) 1 Hz interrupt enable flag 0: Disabled (initial value) 1: Enabled 16 Hz interrupt enable flag 0: Disabled (initial value) 1: Enabled 32 Hz interrupt enable flag 0: Disabled (initial value)
  • Page 228 MSM64164C User's Manual Appendix B Register name Symbol Address Read/Write Value at system reset Interrupt request register 0 IRQ0 Interrupt request register 1 IRQ1 Interrupt request register 2 IRQ2 IRQ0 (34H) QXI1 QSIO QXI0 (R/W) A/D converter interrupt request flag...
  • Page 229 MSM64164C User's Manual Appendix B IRQ1 (35H) Q1Hz Q16Hz Q32Hz Q256Hz (R/W) 1 Hz interrupt request flag 0: No request (initial value) 1: Requested 16 Hz interrupt request flag 0: No request (initial value) 1: Requested 32 Hz interrupt request flag...
  • Page 230 MSM64164C User's Manual Appendix B Register name Symbol Address Read/Write Value at system reset Master interrupt enable register MIEF MIEF (7CH) -----* -----* -----* (R/W) Master interrupt enable flag 0: Interrupt disabled (initial value) 1: Interrupt enabled *Reserved bit: "1" is always read out. Not valid for write.
  • Page 231 MSM64164C User's Manual Appendix B Register name Symbol Address Read/Write Value at system reset Stack pointer 0FFH (7EH) -----* SP6 SP5 SP4 SP3 SP2 SP1 -----* (R/W) Contents of the stack pointer *Reserved bit: "1" is always read out. Not valid for write.
  • Page 232: Appendix C Package Dimension Diagrams And Pad Coordinates

    MSM64164C User's Manual Appendix C Appendix C: Package Dimension Diagrams and Pad Coordinates MSM64164C-xxxGS-BK (Unit: mm) Mirror finish Figure C-1 80-Pin QFP: GS-BK Package Dimension Diagram MSM64164C-xxxGS-K Mirror finish Figure C-2 80-Pin QFP: GS-K Package Dimension Diagram Appendix-38...
  • Page 233 MSM64164C User's Manual Appendix C MSM64164C-xxxTS-K (Unit: mm) Mirror finish Figure C-3 80-Pin TQFP: TS-K Package Dimension Diagram Appendix-39...
  • Page 234 MSM64164C User's Manual Appendix C Table C-1 Pad Coordinates MSM64164C-xxx Center of chip : x = 0, y = 0 Pad No. Pad Name X (µm) Y (µm) Pad No. Pad Name X (µm) Y (µm) –2545 –2090 2545 1880 –2314...
  • Page 235: Appendix D Layout Of Input/Output Circuits

    MSM64164C User's Manual Appendix D Appendix D: Layout of Input/Output Circuits A. Input/output ports (P2.0 to P2.3, P3.0 to P3.3, P4.0 to P4.3) Pull-up/pull-down control Output data Output control Input data Schmitt trigger input B. Input ports (P0.0 to P0.3)
  • Page 236 MSM64164C User's Manual Appendix D D. Output port (L26/P5.0 to L29/P5.3, L30/P6.0 to L33/P6.3 pins at the mask option) E. BD and CS1 outputs NOTE: V 1.5 V spec.–V 3.0 V spec.–V F. RS0, RS1, RT0, RT1, CS0 and CRT0 outputs Output enable G.
  • Page 237 MSM64164C User's Manual Appendix D H. Crystal oscillation circuit Mask option 32.768 kHz clock 400 kHz RC oscillation circuit OSC2 Oscillation start OSC1 RC Oscillation clock J. RESET, TST1, and TST2 inputs 2 kΩ (Typ.) Schmitt trigger input Appendix-43...
  • Page 238 L C D OSC2 OSC1 32768 Hz MSM64164C-XXX (3 V spec.) RESET P1.0 P1.1 P1.2 P1.3 P0.0 TST2 P0.1 TST1 5 V interface • P0.2 P0.3 • Temperature measurement by two thermistors Switch matrix (4 ¥ 4) • of crystal oscillation...
  • Page 239 MSM64164C User's Manual Appendix E CRT0 P4.3 P4.2 P4.1 P4.0 P3.3 Figure E-2 Example of 1.5 V Spec. Applied Circuit Appendix-45...
  • Page 240: Appendix F Mask Options

    MSM64164C User's Manual Appendix F Appendix F: Mask Options Table of power supply voltage and C selection mask options Item Mask specification Selection 1.5 V Power supply voltage 3.0 V Built-in of crystal oscillator External Table of LCD driver mask options...
  • Page 241 MSM64164C User's Manual Appendix F [Example of how to make a LCD driver mask options] (1) When L0 is assigned to Common 2, L1 to segment and L2 as unused (1/4 duty) COM1 COM2 COM3 COM4 SIGNAL C/S/P DATA DSPR DATA DSPR DATA DSPR DATA DSPR...
  • Page 242 MSM64164C User's Manual Appendix F Table of LCD Driver Mask Options (1/4 duty) (1/2) COM1 COM2 COM3 COM4 SIGNAL C/S/P DATA DSPR DATA DSPR DATA DSPR DATA DSPR Appendix-48...
  • Page 243 MSM64164C User's Manual Appendix F Table of LCD Driver Mask Options (1/4 duty) (2/2) COM1 COM2 COM3 COM4 SIGNAL C/S/P DATA DSPR DATA DSPR DATA DSPR DATA DSPR Appendix-49...
  • Page 244 MSM64164C User's Manual Appendix F Table of LCD Driver Mask Options (1/3 duty) (1/2) COM1 COM2 COM3 SIGNAL C/S/P DATA DSPR DATA DSPR DATA DSPR Appendix-50...
  • Page 245 MSM64164C User's Manual Appendix F Table of LCD Driver Mask Options (1/3 duty) (2/2) COM1 COM2 COM3 SIGNAL C/S/P DATA DSPR DATA DSPR DATA DSPR Appendix-51...
  • Page 246 MSM64164C User's Manual Appendix F Table of LCD Driver Mask Options (1/2 duty) (1/2) COM1 COM2 SIGNAL C/S/P DATA DSPR DATA DSPR Appendix-52...
  • Page 247 MSM64164C User's Manual Appendix F Table of LCD Driver Mask Options (1/2 duty) (2/2) COM1 COM2 SIGNAL C/S/P DATA DSPR DATA DSPR Appendix-53...
  • Page 248: Electrical Characteristics

    MSM64164C User's Manual Appendix G Appendix G: Electrical Characteristics (1) 1.5 V Spec. Absolute Maximum Ratings = 0 V) Parameter Symbol Condition Rating Unit Power supply voltage 1 Ta = 25°C –2.0 to +0.3 Power supply voltage 2 Ta = 25°C –4.0 to +0.3...
  • Page 249 MSM64164C User's Manual Appendix G DC Characteristics = 0 V, V = –1.5 V, Ta = –40 to +85˚C unless otherwise mentioned) (1/5) Measuring Parameter Symbol Condition Min. Typ. Max. Unit circuit = 0.1 mF voltage +100% –3.2 –3.0 –2.8 –50%...
  • Page 250 MSM64164C User's Manual Appendix G l DC Characteristics = 0 V, V = –1.5 V, Ta = –40 to +85˚C unless otherwise mentioned) (2/5) Measuring Parameter Symbol Condition Min. Typ. Max. Unit circuit Supply CPU in halt state Ta = –40 to +40°C —...
  • Page 251 MSM64164C User's Manual Appendix G l DC Characteristics = 0 V, V = –1.5 V, V = –3.0 V, V = –4.5 V, Ta = –40 to +85˚C, unless otherwise mentioned) (3/5) Parameter Measuring Symbol Condition Min. Typ. Max. Unit...
  • Page 252 MSM64164C User's Manual Appendix G DC Characteristics = 0 V, V = –1.5 V, V = –3.0 V, V = –4.5 V, Ta = –40 to +85°C, unless otherwise mentioned) (4/5) Parameter Measuring Symbol Condition Min. Typ. Max. Unit (pin name)
  • Page 253 MSM64164C User's Manual Appendix G DC Characteristics = 0 V, V = –1.5 V, V = –3.0 V, V = –4.5 V, Ta = –40 to +85˚C, unless otherwise mentioned) (5/5) Parameter Measuring Symbol Condition Min. Typ. Max. Unit (pin name)
  • Page 254: Measuring Circuit

    MSM64164C User's Manual Appendix G Measuring circuit 1 OSC1 XTAL OSC2 0.1 µF 300 kΩ XTAL 32.768 kHz 10 kΩ/2 kΩ 820 pF 10 kΩ Measuring circuit 2 (Note 2) (Note 1) Appendix-60...
  • Page 255 MSM64164C User's Manual Appendix G Measuring circuit 3 (Note 3) Measuring circuit 4 Waveform (Note 3) Monitoring Note 1: Input logic circuit to determine the specified measuring conditions. Note 2: Measured at the specified output pins. Note 3: Measured at the specified input pins.
  • Page 256 MSM64164C User's Manual Appendix G A/D Converter Characteristics = 0 V, V = –1.5 V,Ta = –40 to +85°C unless otherwise mentioned) Measuring Parameter Symbol Condition Min. Typ. Max. Unit circuit Resistor for oscillation RS0, RS1, RT0, CS0, CT0, CS1 ≥ 740 pF —...
  • Page 257 MSM64164C User's Manual Appendix G AC Characteristics (Serial interface, V = 0 V, V = –1.5 V, V = –5.0 V, Ta = –40 to +85˚C) Parameter Symbol Condition Min. Typ. Max. Unit (pin name) SCLK input fall time —...
  • Page 258 MSM64164C User's Manual Appendix G (2) 3.0 V Spec. Absolute Maximum Ratings = 0 V) Parameter Symbol Condition Rating Unit Power supply voltage 1 Ta = 25°C –2.0 to +0.3 Power supply voltage 2 Ta = 25°C –4.0 to +0.3 Power supply voltage 3 Ta = 25°C...
  • Page 259 MSM64164C User's Manual Appendix G DC Characteristics = 0 V, V = –3.0 V, Ta = –40 to +85˚C unless otherwise mentioned) (1/5) Measuring Parameter Symbol Condition Min. Typ. Max. Unit circuit = 0.1 mF voltage +100% –1.7 –1.5 –1.3 –50%...
  • Page 260 MSM64164C User's Manual Appendix G l DC Characteristics = 0 V, V = –3.0 V, Ta = –40 to +85˚C unless otherwise mentioned) (2/5) Measuring Parameter Symbol Condition Min. Typ. Max. Unit circuit Supply CPU in halt state Ta = –40 to +40°C —...
  • Page 261 MSM64164C User's Manual Appendix G l DC Characteristics = 0 V, V = –1.5 V, V = –3.0 V, V = –4.5 V, Ta = –40 to +85˚C, unless otherwise mentioned) (3/5) Parameter Measuring Symbol Condition Min. Typ. Max. Unit...
  • Page 262 MSM64164C User's Manual Appendix G DC Characteristics = 0 V, V = –1.5 V, V = –3.0 V, V = –4.5 V, Ta = –40 to +85˚C, unless otherwise mentioned) (4/5) Parameter Measuring Symbol Condition Min. Typ. Max. Unit (pin name)
  • Page 263 MSM64164C User's Manual Appendix G DC Characteristics = 0 V, V = –1.5 V, V = –3.0 V, V = –4.5 V, Ta = –40 to +85˚C, unless otherwise mentioned) (5/5) Parameter Measuring Symbol Condition Min. Typ. Max. Unit (pin name)
  • Page 264 MSM64164C User's Manual Appendix G Measuring circuit 1 OSC1 XTAL OSC2 0.47 µF 0.1 µF 100 kΩ XTAL 32.768 kHz 10 kΩ/2 kΩ 820 pF 10 kΩ Measuring circuit 2 (Note 2) (Note 1) Appendix-70...
  • Page 265 MSM64164C User's Manual Appendix G Measuring circuit 3 (Note 3) Measuring circuit 4 Waveform (Note 3) Monitoring Note 1: Input logic circuit to determine the specified measuring conditions. Note 2: Measured at the specified output pins. Note 3: Measured at the specified input pins.
  • Page 266 MSM64164C User's Manual Appendix G A/D Converter Characteristics = 0 V, V = –3.0 V,Ta = –40 to +85°C unless otherwise mentioned) Measuring Parameter Symbol Condition Min. Typ. Max. Unit circuit Resistor for oscillation RS0, RS1, RT0, CS0, CT0, CS1 ≥ 740 pF —...
  • Page 267 MSM64164C User's Manual Appendix G AC Characteristics (Serial interface, V = 0 V, V = –3.0 V, V = –5.0 V, Ta = –40 to +85˚C) Parameter Symbol Condition Min. Typ. Max. Unit (pin name) SCLK input fall time —...
  • Page 268: Appendix H Instruction List

    MSM64164C User's Manual Appendix H Appendix H: Instruction List "B" indicates the byte length of an instruction. "C" indicates the execution machine cycle number of an instruction. Mnemonic Op-code Operation ← A, C A + M (HL) + C ←...
  • Page 269 MSM64164C User's Manual Appendix H Mnemonic Op-code Operation ← A – 1, Skip if A = 0F H ← H – 1, Skip if H = 0F H ← L – 1, Skip if L = 0F H ← M (HL) M (HL) –...
  • Page 270 MSM64164C User's Manual Appendix H Mnemonic Op-code Operation ← LAMB M b (HL) ← LAMB M b (XY) ← LAMD M (m 8 ) ← LAMDB M b (m 8 ) ← ← ∀ LAMM M (HL), H ← ←...
  • Page 271 MSM64164C User's Manual Appendix H Mnemonic Op-code Operation ← LMBI M b (HL) ← LMBI @XY, n 8 M b (XY) ← M (HL) ← LMTB M b (HL) T (a 4 , XY) ← ← ← LXYI ← ←...
  • Page 272 MSM64164C User's Manual Appendix H Mnemonic Op-code Operation ← ← ← ← M (HL) [n 2 ] ← @XY, n 2 M (XY) [n 2 ] ← SMBD m 8 , n 2 M (m 8 ) [n 2 ] ←...
  • Page 273 MSM64164C User's Manual Appendix H [Explanation of Symbols] The meaning of the symbols used in the following sections are explained below. • A .......... Accumulator • C ......... Carry flag • B, H, L, X, Y ......Working registers • BA ........Indicates 8-bit data of the content of B registers (B3 to B0), and accumulators (A3 to A0), with B register at the MSB side •...
  • Page 274 MSM64164C User's Manual Appendix H • PC ........Indicates content of program counter (max. 12 bit). The PC value is the program memory address. • SP ........Indicates content of stack pointer (8-bit). SP value is the stack address in data memory.
  • Page 275 MSM64164C User's Manual Appendix H • Skip if ....... The next instruction is skipped if the condition is met, that is, the machine cycle time of the next instruction is spent and the instruction is not executed. • Carry ........ Indicates the carry of an operation result.
  • Page 276 MSM64164C User's Manual Appendix H Appendix-82...

Table of Contents