Oki Dr.63514 User Manual

In-circuit emulator
Table of Contents

Advertisement

Quick Links

Dr.63514
In-Circuit Emulator
User's Manual
ML63512/514 Program Development Support System
Second Edition, Feb 5, 1999
This manual contains important information pertaining to the safe use
of the above product. Before using the product, read these safety notes
thoroughly and then keep this manual handy for immediate reference.
Oki Electric Industry Co., Ltd.

Advertisement

Table of Contents
loading

Summary of Contents for Oki Dr.63514

  • Page 1 Second Edition, Feb 5, 1999 ♦ This manual contains important information pertaining to the safe use of the above product. Before using the product, read these safety notes thoroughly and then keep this manual handy for immediate reference. Oki Electric Industry Co., Ltd.
  • Page 2 This manual describes the setup and operation of the Dr.63514 in-circuit emulator, the hardware portion of the Dr.63514 development support system for developing user application programs for Oki Electric's ML63512/514 of 4-bit CMOS microcontrollers.
  • Page 3 4. OKI assumes no responsibility or liability whatsoever for any failure or unusual or unexpected operation resulting from misuse, neglect, improper installation, repair,...
  • Page 4 Table of Contents...
  • Page 5: Table Of Contents

    Table of contents Preface ---------------------------------------------------------------------------------------- 0-1 1. Product Inquiries ---------------------------------------------------------------------------------------- 0-2 2. Using this Product Safely and Properly--------------------------------------------------------- 0-3 2.1 Important Safety Notes----------------------------------------------------------------------- 0-4 3. Notation ---------------------------------------------------------------------------------------------------- 0-6 4. Manual Organization----------------------------------------------------------------------------------- 0-7 5. Package Contents -------------------------------------------------------------------------------------- 0-8 5.1 Verify Shipping Contents -------------------------------------------------------------------- 0-8 Chapter 1.
  • Page 6 2.17 LED Indicator ---------------------------------------------------------------------------------2-46 2.18 Power Supplies-------------------------------------------------------------------------------2-47 Chapter 3. Setting Up and Starting Up ----------------------------------------- 3-1 1. Setting up and turning on the Dr.63514 in-circuit emulator------------------------------ 3-2 1.1 Device configuration--------------------------------------------------------------------------- 3-2 1.2 Switch and Jumper Settings---------------------------------------------------------------- 3-3 1.3 Emulator Connections------------------------------------------------------------------------- 3-6 1.4 Powering Up ------------------------------------------------------------------------------------- 3-7...
  • Page 7: Preface

    Preface...
  • Page 8: Product Inquiries

    Preface 1. Product Inquiries Thank you for purchasing the Dr.63514 Development Support System. Please direct any comments or questions that you may have about this product to your nearest Oki Electric Industry representative. 0 -2...
  • Page 9: Using This Product Safely And Properly

    Preface 2. Using this Product Safely and Properly This User’s Guide uses various labels and icons that serve as your guides to operating this product safely and properly so as to prevent death, personal injury, and property damage. The following table lists these labels and their definitions.
  • Page 10: Important Safety Notes

    Preface 2.1 Important Safety Notes Please read this page before using the product. Warning Use only the specified voltage. Using the wrong voltage risks fire and electrical shock. At the first signs of smoke, an unusual smell, or other problems, unplug the emulator and disconnect all external power cords.
  • Page 11 Preface Please read this page before using the product. Caution Do not use this product on an unstable or inclined base as it can fall or overturn, producing injury. Do not use this product in an environment exposing it to excessive vibration, strong magnetic fields, or corrosive gases.
  • Page 12: Notation

    Preface 3. Notation This User's Guide uses the following notational conventions. Type Notation Meaning Numerals xxh, xxH Hexadecimal number Binary number W (word) Units 1 word = 2 bytes = 4 nibbles = 16 bits B (byte) 1 byte = 2 nibbles = 8 bits N (nibble) 1 nibble = 4 bits M (mega-)
  • Page 13: Manual Organization

    Preface 4. Manual Organization This manual consists of the following four chapters. Chapter 1. Overview This chapter introduces the emulator and its parts. Chapter 2. Functions This chapter describes the functions of the emulator. Chapter 3. Setting and Starting Up This chapter describes configuring the emulator and powering it up.
  • Page 14: Package Contents

    Preface 5. Package Contents 5.1 Verify Shipping Contents When you receive your Dr.63514 development support system, check the package contents against the Dr.63514 packing list. Oki Electric has every confidence that the contents are both complete and undamaged. Should a component be damaged or missing, however, please contact your nearest Oki Electric representative.
  • Page 15: Chapter 1. Overview

    Chapter 1. Overview...
  • Page 16: Overview

    Chapter 1. Overview 1. Overview The Dr.63514 in-circuit emulator supports the development of user application programs for the Oki ML63512/514 of CMOS 4-bit microcontroller.
  • Page 17: Package Components

    This, the document that you are now reading, is Dr.63514 the manual for the package. Accessories AC power Power supply for the Dr.63514 in-circuit emulator. supply pack [TAC-2] AC power cable Cable that connects to the AC power supply pack.
  • Page 18: Configurations

    The emulator is used in the two configurations shown below. (1) Emulation This configuration is for high-level debugging using a dedicated debugger running on a development host. Host computer RS232C cable User cable Dr.63514 User application In-Circuit system Emulator AC power pack Probe cable...
  • Page 19: Names Of Parts

    Chapter 1. Overview 4. Names of Parts 248mm 248mm Rear view RESET POWER RS232C OFF ON DC 9V Top view PIN32 Dr.63514 PIN28 HIGH XT.SEL OSC.SEL VDD.SEL MODE 10 11 12 13 14 Front view 186mm Left side view PROBE...
  • Page 20 Chapter 1. Overview 1. Baud rate switches (BAUD) These switches specify the baud rate for the serial interface to the development host. 2. Device configuration switch (SETICE) This switch is used when specifying the target microcontroller with the dedicated emulator setup utility.
  • Page 21 Chapter 1. Overview 12. Error LED (ERROR) This red LED lights when a problem within the emulator prevents normal operation from proceeding. It also may flash during emulator initialization. 13. Voltage check LED (VCHECK) This red LED lights when VDD, positive power supply voltage, falls below 0.7V. 14.
  • Page 22: Chapter 2. Functions

    Chapter 2. Functions...
  • Page 23: Emulator Specifications

    Chapter 2. Functions 1. Emulator Specifications Function Specification Interface serial interface 4800/9600/19200/38400/51200/57600/76800/115200 bps, 8 bits, no parity, 1 stop bit, XON/XOFF flow control Program size Code memory size: up to 64 KW, depending on the microcontroller Memory backup: approx. 1 day Data storage Depending on the microcontroller Emulation...
  • Page 24 248 (W)5186 (D)574 (H) mm weight Weight: 1.8 kg _______________________________________________________________________________________________________________ n Note 1 n Although the ML63512 and ML63514 have four mask options (low-speed oscillator clock, high- speed oscillator clock, and reset), the Dr.63514 in-circuit emulator only supports the reset- related mask options. _______________________________________________________________________________________________________________________________...
  • Page 25 The Dr.63514 in-circuit emulator supports that difference with a "package selection switch". ________________________________________________________________________________________________________________________________ ________________________________________________________________________________________________________________ n Note 3 n The Dr.63514 in-circuit emulator does not support a user interface for the package type. ________________________________________________________________________________________________________________________________ ________________________________________________________________________________________________________________ n Note 4 n The circuits that correspond to the ML63512/514 for the Dr.63514 in-circuit emulator consist of the nX-4/250 core evaluation chip, which corresponds to the ML63512/514 CPU core block, and a block that corresponds to the ML63512/514 I/O block.
  • Page 26: Functions

    2. Functions 2.1 Configuring for Target Device The emulator is used to develop user application program for the Oki ML63512/514 of 4-bit microcontroller even though the individual devices have different ROM sizes and onboard peripherals. A dedicated emulator setup utility running on the development host configures the emulator to cover these differences by downloading the contents of the device information file (.TCD file) for the target...
  • Page 27: Evaluation Operation

    Chapter 2. Functions 2.2 Evaluation Operation 2.2.1 Overview The emulation configuration is for high-level debugging using a dedicated debugger running on a development host; the evaluation configuration, for stand-alone execution of the user application program from EPROMs. The MODE switch switches between the two, taking effect the next time that the power is applied or the reset switch is pressed.
  • Page 28 The RESETB pin is only enabled during periods when the RUN LED is lit. In particular, reset signal input to the RESETB pin from the user application system is disabled while the Dr.63514 in-circuit emulator is initializing and after real-time emulation has been forcibly terminated.
  • Page 29: Emulation Operation

    ________________________________________________________________________________________________________________ n Note 1 n The circuits that correspond to the ML63512/514 for the Dr.63514 in-circuit emulator consist of the nX-4/250 core evaluation chip, which corresponds to the ML63512/514 CPU core block, and a block that corresponds to the ML63512/514 I/O block. Note that since the I/O block is formed from normal discrete components, the electrical characteristics of the ports and other circuits differ somewhat from those of the ML63512/514.
  • Page 30: Real-Time Emulation

    Chapter 2. Functions • Instruction executed (IE) bit updates and sync out output continue. • User cable reset (RESETB) input from user cable does nothing. • The pauses after each instruction prevent operation of serial ports and other time-sensitive portions. _______________________________________________________________________________________________________________ n Note 1 n Do not press the emulator's reset switch during single-step emulation.
  • Page 31 Chapter 2. Functions These break conditions generate a break request. Acceptance terminates the real-time emulation. ________________________________________________________________________________________________________________ n Note 2 n The second group uses parameters that the user must set in advance. ________________________________________________________________________________________________________________________________ Figure 2-3 shows the interaction between these break conditions and the break condition register. Address break Address pass count break RAM data match break...
  • Page 32: Breaks With Parameters

    Chapter 2. Functions 2.3.2.1 Breaks with Parameters (1) Address break Execution breaks after the instruction at the specified break address has executed. Break address 100H 101H 102H Break address 103H 303H Break address 304H (2) Address pass count break Execution breaks after the instruction at the specified address has executed the specified number of times.
  • Page 33 Chapter 2. Functions Specifying an address of any, a MOV CBR,#3H 1FFH comparison value of 3, and a MOV A,#3H 200H count of 1 produces a break one MOV H,#0FH 201H i n s t r u c t i o n a f t e r t h e o n c e MOV L,#0FH 202H execution of the MOV [HL],A...
  • Page 34 Chapter 2. Functions MOV CBR,#3H 300H Specifying an address of 300H and a MOV H,#0H 301H c o u n t o f 2 p r o d u c e s a b r e a k o n e MOV L,#0H 302H i n s t r u c t i o n a f t e r t h e M O V [ H L ] , A...
  • Page 35 Chapter 2. Functions The break timing is not immediately after the instruction satisfying the break condition, but an additional instruction later. Specifying a code memory address produces a break only if the instruction at that address is a ROM table reference instruction. (6) Internal ROM table address match break Execution breaks when a ROM table reference instruction (MOVHB or MOVLB) reads from the specified code memory address.
  • Page 36 Chapter 2. Functions (b) The second word of a 2-word instruction 100H The address 103H never 101H produces an address break. 102H LJMP 4324H Break address 103H _______________________________________________________________________________________________________________________________ _______________________________________________________________________________________________________________ n Note 6 n Some break types support bit masks for extending data or address matches. (a) Data match: Specifying a data memory address of 200H, a comparison value of 4H, and a mask of 0111B produces a match whenever 4H, 0CH is written to data address 200H.
  • Page 37: Breaks On Specific Conditions

    Chapter 2. Functions 2.3.2.2 Breaks on Specific Conditions These breaks are the result of specific conditions involving flag bits and counters. (1) Breakpoint break For each code memory address, the emulator provides a breakpoint bit for enabling these breaks. Setting a breakpoint at a code memory address sets the corresponding breakpoint bit to “1.” Breakpoint Code memory bit memory...
  • Page 38 Chapter 2. Functions (b) The second word of a 2-word instruction Breakpoint bit memory Code memory The breakpoint bit for address 101H is never accessed. 100H MOVLB [HL], 300H 101H Breakpoint break specification _______________________________________________________________________________________________________________________________ (2) Trace memory full break If these breaks are enabled, overflow during real-time emulation of the trace pointer, a 13-bit counter giving the location of the next entry to be written within its 8192-entry trace table produces a break request of this type.
  • Page 39 Chapter 2. Functions break of this type is not until the next overflow. ________________________________________________________________________________________________________________________________ (3) Cycle counter overflow break If these breaks are enabled, overflow during real-time emulation of the cycle counter, a 24-bit counter summing the machine cycles for instructions executed produces a break request of this type. Cycle counter Cycle count signal Cycle counter...
  • Page 40 Chapter 2. Functions System clock M1S1 EXT.BRK External break request External break occurs _______________________________________________________________________________________________________________________________ (5) Power down (HALT) break If these breaks are enabled, a HALT instruction produces a break request of this type. _______________________________________________________________________________________________________________ n Note 6 n The HALT instruction produces a temporary transition to halt mode followed by an immediate return.
  • Page 41: Forced Breaks

    Chapter 2. Functions When a register stack push/pop is performed, if the emulator detects a stack pointer overflow or underflow, then it will output a register stack overflow break request. ________________________________________________________________________________________________________________________________ ___________________________________________________________________________________________________________ n Reference n The stack size appears in the user's manual for the target microcontroller. ________________________________________________________________________________________________________________________________ 2.3.2.3 Forced Breaks Forced breaks are breaks that do not depend on parameters or specific conditions.
  • Page 42 Chapter 2. Functions When code memory has been expanded to 64K words using the code memory expansion function, only the test data area will be an N area. _______________________________________________________________________________________________________________________________ (2) User break User break input from the keyboard produces a break request of this type. Real-time emulation immediately terminates.
  • Page 43: Code Memory Operations

    Chapter 2. Functions 2.4 Code Memory Operations Code memory is a 16-bit address space that corresponds to the masked ROM of the volume production device. The emulator starts with a code memory area the size of the ROM in the microcontroller specified with the dedicated emulator setup utility.
  • Page 44: Displaying/Changing/Moving Code Memory

    Chapter 2. Functions Load Code Memory Verify HIGH side LOW side (higher 8 bits) (lower 8 bits) 16 bits Figure 2-5 Data Operations between Code Memory and EPROMs _______________________________________________________________________________________________________________ n Note 1 n Stand-alone, evaluation operation does not use code memory. The user application program executes directly from the EPROMs in the EPROM sockets.
  • Page 45: Expanding Code Memory

    Chapter 2. Functions 2.4.5 Expanding Code Memory The EXPAND command temporarily expands the code memory to the full address space (64 KW) for debugging a user application program that is too large for the user application program memory. Expanded mode 0FFFFH Normal mode 1FDFH...
  • Page 46: Real-Time Tracing

    Chapter 2. Functions 2.5 Real-time Tracing Real-time tracing stores the current instruction address, the contents of ACC and other registers, flag states, etc. for post mortem analysis of real-time emulation. The emulator uses the 13-bit trace pointer to keep track of the location of the next entry to be written within its 8192-entry trace table.
  • Page 47: Trace Entries

    Chapter 2. Functions 2.5.1 Trace Entries Trace entries track the following data items. Label Description Bits ADRS Execution address Accumulator RADR RAM address RAM data Flag register Master interrupt enable flag Melody request flag Current bank register Extra bank register HL register XY register Stack pointer...
  • Page 48 Chapter 2. Functions a. With trace enable bits Tracing depends on the trace enable bit contents. Only addresses with a trace enable bit of 1 are traced. Code memory Trace enable bits MOV A,#3H 100H MOV H,#8H 101H Trace enable bits specify tracing MOV L,#2H 102H for addresses 101H to 105H.
  • Page 49 Chapter 2. Functions Code memory Trace enable bits Trace start MOV A, #3H 100H address MOV H, #8H 101H MOV L, #2H 102H Tracing starts at code memory MOV [HL], A 103H address 100H, but trace enable bits MOV A, #4H 104H limit it to addresses 102H through INCB HL...
  • Page 50: Displaying/Searching Trace Entries

    Chapter 2. Functions _______________________________________________________________________________________________________________ n Note 4 n Only the trace enable bits corresponding to the first word of an instruction produce results. One specifying the second word of a two-word instruction or an entry in the ROM table is ignored. Disabling the option produces tracing regardless of the enable bit contents.
  • Page 51: Profiling

    Chapter 2. Functions 2.6 Profiling The emulator supports two types of profiling: • Checking code memory addresses accessed with instruction executed (IE) bits • Measuring execution times with the cycle counter 2.6.1 Instruction Executed (IE) Bits For each code memory address, the emulator provides an instruction executed (IE) bit for use in tracking instruction access during execution.
  • Page 52: Cycle Counter

    Chapter 2. Functions 2.6.2 Cycle Counter The 24-bit cycle counter tracks the machine cycles of each instruction executed as a yardstick to user application program execution times. Cycle count Cycle counter signal Cycle counter Cycle Machine overflow cycle signal control circuit counter break request Program counter...
  • Page 53 Chapter 2. Functions ________________________________________________________________________________________________________________ n Note 1 n Counting is enabled during real-time emulation and disabled during single-step emulation. ________________________________________________________________________________________________________________________________ ________________________________________________________________________________________________________________ n Note 2 n The trigger fires just before execution of the instruction at the corresponding address, so the instruction at the start address is counted, but not the one at the stop address.
  • Page 54: Probe Cable

    Chapter 2. Functions 2.7 Probe Cable The emulator’s probe cable carries the following six signals. • Break (EXT.BRK) input • Sync out (SYNC.OUT) output • Trace (PROBE0 to PROBE3) inputs 2.7.1 Break Signal Input If external breaks are enabled, a rising edge in this signal produces a break request. Rising edge External EXT.BRK...
  • Page 55: Sync Out Signal

    Chapter 2. Functions 2.7.2 Sync Out Signal For each code memory address, the emulator provides a sync out bit that controls this output. If a bit is “1,” execution of the instruction at the corresponding address pulls the probe cable sync out (SYNC.OUT) output to “L”...
  • Page 56: Trace Inputs

    Chapter 2. Functions 2.7.3 Trace Inputs These inputs are for tracing external signals during real-time emulation. PROBE0 51KΩ PROBE1 51KΩ To trace circuit PROBE2 51KΩ PROBE3 (Probe cable) 51KΩ 1/2 VDD Figure 2-14 Trace Inputs Built-in voltage conversion circuits convert the trace (PROBE0 to PROBE3) inputs to the internal “H” level from VDD, the positive power supply voltage (0.9 to 5.5 V).
  • Page 57: Clock Switching

    The emulator offers the choice of internal or external clock signals to the XT (low-speed) and OSC (high-speed) pins on the evaluation chip. These clocks can be selected from the following: the Dr.63514 clock and the clocks input to the USR.TXT and USR.OSC pins on the user cable.
  • Page 58 On the other hand, since the oscillator is started after power is applied when the Dr.63514 in- circuit emulator is used, the clock signal is supplied immediately when oscillator start has been specified by setting the FCON ENOSC bit to 1.
  • Page 59: Reset Input Switching

    The RESETB pin is only enabled during periods when the RUN LED is lit. In particular, reset signal input to the RESETB pin from the user application system is disabled while the Dr.63514 in-circuit emulator is initializing and after real-time emulation has been forcibly terminated.
  • Page 60: Mask Option

    This option is set by defining location 0FE2H (1FE2H) in the mask option allocated data area in the test data area. On the other hand, in the Dr.63514 in-circuit emulator, this is implemented by defining location 0FE2H (1FE2H) in code memory in the same manner as in the ML63512/514.
  • Page 61: Comparator Selection Function

    Chapter 2. Functions 2.11 Comparator Selection Function The P7.0 and P7.1 pins in the ML63512/514 can be used as input ports or comparators. The Dr.63514 implements the input port block with discrete components and the comparator block with an ML63514 itself.
  • Page 62: Backup Switching

    The ML63512/514 includes a built-in backup circuit that doubles the power-supply voltage. The backup circuit is used when the positive power-supply voltage (VDD) falls below 1.8 V. The Dr.63514 in-circuit emulator includes an ML63514 to implement the level detector and comparator functions. The positive power-supply voltage (VDD) in this ML63514 depends on the setting of the VDD.SEL switch, and has...
  • Page 63: Package Type Setting

    64-pin TQFP package), and due to that difference, ports 6, 9, and A are either available as I/O pins or are not available. The Dr.63514 in-circuit emulator supports this difference with the 48/64 switch. When the 48/64 switch is turned off, the connections to the port 6, 9, and A pins in the user cable are disconnected and signal I/O is disabled.
  • Page 64: Operating Power Supply Selection Function

    Chapter 2. Functions 2.14 Operating power supply selection function Except for port 8 and the monitor pins, the voltage on all pins in the user cable and all signal in the probes depend on this operating power supply setting. • emulator internal power supply (1.5 V) •...
  • Page 65: Internal Signal Monitoring

    Chapter 2. Functions 2.15 Internal Signal Monitoring The user cables provide pins for monitoring the following internal signals. • Halt mode (HALT.OUT) signal • Low-speed clock (XT.OUT) signal • High-speed clock (OSC.OUT) signal (1) Halt mode (HALT.OUT) signal “H” level output indicates that the evaluation chip is in halt mode. (2) Low-speed clock (XT.OUT) signal This pin monitors the low-speed (XT) clock signal to the evaluation chip.
  • Page 66: Baud Switches

    The IBM PC/AT and compatibles do not support the 51,200bps and 76,800bps speeds. When turning on or resetting the Dr.63514, if an initialization message is not produced on the dedicated debugger’s screen or a communication error occurs, lower both the Dr.63514 baud rate setting and the dedicated debugger’s speed parameter.
  • Page 67: Led Indicator

    Chapter 2. Functions 2.17 LED Indicator The emulator has five LEDs. Label Color Meaning POWER Power supply Green Execution ERROR Error VCHECK Voltage check HALT Orange Halt mode (1) POWER This LED lights when power is being supplied to the emulator. (2) RUN This LED lights during real-time emulation.
  • Page 68: Power Supplies

    Chapter 2. Functions 2.18 Power Supplies The Dr.63514 in-circuit emulator can be operated from a DC power supply. The TAC-2 AC adapter provide with the emulator can be used to provide the required 9 V DC power. DC 9V DC power jack Do not use any DC power supply other than the provided AC adapter.
  • Page 69: Chapter 3. Setting Up And Starting Up

    Chapter 3. Setting Up and Starting Up...
  • Page 70: Setting Up And Turning On The Dr.63514 In-Circuit Emulator

    Chapter 3. Setting Up and Starting Up 1. Setting up and turning on the Dr.63514 in-circuit emulator This section describes the set up procedure that must be followed prior to turning on the Dr.63514 in- circuit emulator, and then the procedure for turning on the emulator.
  • Page 71: Switch And Jumper Settings

    The IBM PC/AT and compatibles do not support the 51,200bps and 76,800bps speeds. When turning on or resetting the Dr.63514, if an initialization message is not produced on the dedicated debugger’s screen or a communication error occurs, lower both the Dr.63514 baud rate setting and the dedicated debugger’s speed parameter.
  • Page 72 The IBM PC/AT and compatibles do not support the 51,200bps and 76,800bps speeds. When turning on or resetting the Dr.63514, if an initialization message is not produced on the dedicated debugger’s screen or a communication error occurs, lower both the Dr.63514 baud rate setting and the dedicated debugger’s speed parameter.
  • Page 73 External 1.8 to 5.5 V (9) EPROM Socket Insert the low-side and high-side EPROMs into which the user program has been stored in the Dr.63514 in-circuit emulator low-side and high-side EPROM sockets. However, note that the EPROMs do not need to be inserted if the emulator is operated in emulation mode.
  • Page 74: Emulator Connections

    Chapter 3. Setting Up and Starting Up 1.3 Emulator Connections Connect the Dr.63514 in-circuit emulator to its accessories and peripherals as shown in the figure. Host computer Dr.63514 User application system Probe cable RS232C cable PROBE Note 1 User cable...
  • Page 75: Powering Up

    Chapter 3. Setting Up and Starting Up 1.4 Powering Up First make sure that • the emulator is connected to the host computer, • the emulator switches have been properly set, • the emulator is connected to the user application system. Follow the procedure below to start the emulator.
  • Page 76: Chapter 4. Additional Usage Notes

    Chapter 4. Additional Usage Notes...
  • Page 77: Debugging Notes

    (4) User cable pins In the Dr.63514 in-circuit emulator, the user-cable I/O pins have the following I/O circuits, and as a result, their I/O characteristics differ from the corresponding pins in the ML63512/514.
  • Page 78 Chapter 4. Additional Usage Notes 2. Input-output port (P0,P1,P2,P3,P4,P5,P6,P9,PA) Ports 0 through 6, 9, and A in the ML63512/514 are I/O ports whose direction (input or output) can be selected in bit units. When input mode is selected, either a pull-up resistor input or a high-impedance input can be selected.
  • Page 79 Chapter 4. Additional Usage Notes Ÿ Comparator port The P7.0 and P7.1 pins in the ML63512/514 can be used as input ports or comparators. The Dr.63514 implements the input port block with discrete components and the comparator block with an ML63514 itself.
  • Page 80 Pins P7.2 and P7.3 in the ML63512/514 can be used as either input ports or as level detector inputs. The Dr.63514 in-circuit emulator implements the input port block with discrete components and the level detector block with an ML63514. However, the discrete components (circuits) in the input block influence the characteristics of the level detector.
  • Page 81 Chapter 4. Additional Usage Notes Ÿ Comparator/level detector circuit In the Dr.63514 in-circuit emulator, the comparator and level detector blocks are implemented using an ML63514. ML63514 (48pin) VDDH IO IO 0.1µF VDDL TST1B 1.0µF TST2B IO IO P5.3 BACKUP BUPCNT RESET 0.1µF...
  • Page 82 Chapter 4. Additional Usage Notes 4. Output PORT Port 8 in the ML63512/514 is an n-channel open-drain port that can drive LEDs. port circuit port8 (LCA ) SN7407 Figure 4-6 Output port 5. MD terminal 100Ω HC4066 melody circuit (LCA) HC4066 Figure 4-7 MD terminal...
  • Page 83 Mask option data settings in the Dr.63514 in-circuit emulator are implemented by defining the mask option data allocation area at location 0FE2H (1FE2H) in code memory in the same manner as in the ML63512/514.
  • Page 84 Chapter 4. Additional Usage Notes (5) Clock circuit These clocks can be selected from the following. Low-speed (XT) Internal (32.768kHz) External (user cable USR.XT pin) High-speed (OSC) Internal (2MHz) External (user cable USR.OSC pin) A built-in voltage conversion circuit converts the external clock input to the internal “H” level from VDD, the positive power supply voltage (0.9 to 5.5V).
  • Page 85: Initialization

    Chapter 4. Additional Usage Notes 2. Initialization The following table summarizes the results of the initializations when the power is first applied and when the reset switch is pressed. Item Powering up Reset Evaluation chip Same as for production versions of ML63512/514.
  • Page 86: Operation Timing

    Chapter 4. Additional Usage Notes 3. Operation Timing M1.S1 Trace Latch Trace Write Figure 4-10 Trace Timing Chart M1.S1 Cycle Counter up Syncout clock Figure 4-11 Cycle Counter/Sync Out Timing Chart 4-11...
  • Page 87 Chapter 4. Additional Usage Notes RESET CYCLE RESET remove M1.S1 Figure 4-12 Reset Timing Chart HALT M1.S1 Interrupt request INT (INT) (INT)+1 (INT)+2 HALT instruction address (INT) : Entry point of interrupt survice routine Figure 4-13 Halt Mode Timing Chart 4-12...
  • Page 88: Appendices

    Appendices...
  • Page 89: User Cable Connector Layout

    Appendices 1. User Cable Connector Layout The figure shows the structure of the Dr.63514 in-circuit emulator's user connector (a 60-pin connector). This user connector is connected to the user cable and used to connect to the user's application circuit. 1 pin...
  • Page 90: User Cable Layout

    Appendices 2. User cable layout The figure below shows the structure of the user cable, which is an accessory for the Dr.63514 in-circuit emulator. This user cable is used attached to the Dr.63514 in-circuit emulator to connect to the user application circuit.
  • Page 91: User Cable Pin Arrange

    3. User cable pin arrange Of the pins in the ML63512/514, the TEST1B, TEST2B, XTO, XT1, OSC0, OSC1, OSCM, CB1, CB2, VDDL, VDDH, and VDDI pins are not implemented by the Dr.63514 in-circuit emulator. Table A-1 User Cable Pin List...
  • Page 92 Appendices TQFP-48 TQFP-64 Signal name Input- Function Output number number number P7.0/CMPIN 4-bit input port P7.1/CMPREF P7.2/LDIN0 P7.3/LDIN1 P8.0 4-bit output port P8.1 P8.2 P8.3 melody output pin RESETB reset input pin USR.XT external low-speed clock input pin USR.OSC external high-speed clock input pin HALT monitor pin...
  • Page 93: Probe Cable Connectors And Pin Layout

    Appendices 4. Probe Cable Connectors and Pin Layout The probe connector on left side of the emulator is for the probe cable. 15 pin 1 pin Polar key side The 16-pin connector shown in the figure at the left is the probe connector.
  • Page 94 Appendices black brown orange yellow green blue purple Figure A-4 Probe cable layout...
  • Page 95: Rs232C Cable Wiring Diagrams

    Appendices 5. RS232C Cable Wiring Diagrams TCS-DRIBM (9-9 pin cable) 9-pin D-SUB connector (female) 9-pin D-SUB connector (male) Emulator...
  • Page 96 Appendices TCS-DRPC (25-9 pin cable) 25-pin D-SUB connector (male) 9-pin D-SUB connector (male) Emulator S.GND F.GND N.C. _______________________________________________________________________________________________________________ n Note 1 n All pins other than those listed above are not connected. _______________________________________________________________________________________________________________________________...
  • Page 97: Rs232C Interface Circuit

    Appendices 6. RS232C Interface Circuit Dr.63514 MAX237 RS232C (Level converters) MSM82C51 (UART) connector N.C. Figure A-5 RS232C interface circuit A-10...
  • Page 98: Installing Eproms

    Appendices 7. Installing EPROMs There are two EPROM sockets on top of the emulator. Evaluation involves executing the user application program directly from EPROMs in them. Emulation offers commands for transferring EPROM contents to code memory. Install an EPROM in its socket with the following procedure. (1) Turn off the power to the emulator.
  • Page 99 Appendices Pin 1 EPROM locking lever EPROM socket The sockets accept the following EPROM types. Note how the position of pin 1 differs for each type. • MSM27512 and compatible devices (64K 5 8 bits; 28 pins) • MSM27101 and compatible devices (128K 5 8 bits; 32 pins) (1) MSM27512 Pin 32 Install with pin 14 all the way to the right.
  • Page 100 Appendices _______________________________________________________________________________________________________________ n Note 1 n Always be sure that the power is off before removing or installing an EPROM. _______________________________________________________________________________________________________________________________ _______________________________________________________________________________________________________________ n Note 2 n A user application program always requires two EPROMs: one each in the EPROM.HIGH and EPROM.LOW sockets.
  • Page 101: If Emulator Doesn't Start

    If the Dr.63514 in-circuit emulator does not operate correctly even if above measures are taken, the Dr.63514 in-circuit emulator itself may have failed. Contact your Oki Electric Industry sales outlet or your Oki Electric Industry representative immediately.

Table of Contents