NEW DATABASE - 350 MILLION DATASHEETS FROM 8500 MANUFACTURERS
M68EML05X32/D HC05X32 MMDS05 M68HC05EVS HC05EVS X32LVEM MC68HC 05X32 05B32 - Datasheet Archive
Rev. 3 Sept1995 HC05X32 LOW VOLTAGE EMULATOR MODULE USER'S MANUAL Fourth Edition © MOTOROLA Ltd., 1994, 1995; All Rights
M68EML05X32/D M68EML05X32/D Rev. 3 Sept1995 HC05X32 HC05X32 LOW VOLTAGE EMULATOR MODULE USER'S MANUAL Fourth Edition © MOTOROLA Ltd., 1994, 1995; All Rights Reserved M68EML05X32/D M68EML05X32/D 3-1 MOTOROLA Motorola reserves the right to make changes without further notice to any products herein to improve reliability, function, or design. Motorola does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. Motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other application in which the failure of the Motorola product could create a situation where personal injury or death may occur. Should Buyer purchase or use Motorola products for any such unintended or unauthorized application, Buyer shall indemnify and hold Motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that Motorola was negligent regarding the design or manufacture of the part. Motorola and the Motorola logo are registered trademarks of Motorola Inc. Motorola Inc. is an Equal Opportunity/Affirmative Action Employer. M68EML05X32/D M68EML05X32/D 3-2 MOTOROLA CONTENTS CHAPTER 1 INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4 1.1 DEVELOPMENT SYSTEMS.1-5 1.1.1 Motorola Modular Development System (MMDS05 MMDS05).1-5 1.1.2 M68HC05EVS M68HC05EVS Evaluation System (HC05EVS HC05EVS).1-6 1.2 EM LAYOUT.1-7 1.3 CONNECTOR P5 AND P6 PIN ASSIGNMENTS.1-8 1.4 CONNECTOR P1 DESCRIPTION.1-9 1.5 COP WATCHDOG EMULATION CONSIDERATIONS.1-9 CHAPTER 2 MMDS05 MMDS05 CONFIGURATION AND OPERATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 - 1 0 2.1 SETTING X32LVEM X32LVEM JUMPER HEADERS.2-11 2.1.1 Low Voltage Select (J1).2-12 IMPORTANT NOTE.2-12 2.1.2 Stretch Select (J2).2-12 2.1.3 Clock Select (J3 and J5).2-13 2.1.4 Timer Stop Select (J4).2-14 2.1.5 Keyboard Enable/Disable Select (J6).2-14 2.1.6 Emulated MCU Select (J7, J8, J13 and J14).2-15 2.1.7 RESET Selection (J9 and J10).2-16 2.1.8 VDD1 and VSS1 Voltage Selection (J11 and J12).2-17 2.1.9 EEPROM / RAM Select (J15).2-17 2.1.10 MOR Register Switches (S1).2-18 2.2 THE EMULATED MCU.2-19 2.2.1 MC68HC MC68HC(7)05X32 05X32 Emulation.2-20 2.2.2 MC68HC MC68HC(7)05B32 05B32 Emulation.2-20 2.2.3 MC68HC05X16 MC68HC05X16 Emulation.2-20 2.2.4 MC68HC MC68HC(7)05B16 05B16 Emulation.2-21 2.3 REMAINING SYSTEM INSTALLATION.2-22 CHAPTER 3 HC05EVS HC05EVS CONFIGURATION AND OPERATION.3-22 3.1 SETTING X32LVEM X32LVEM JUMPER HEADERS.3-23 3.1.1 Low Voltage Select (J1).3-24 IMPORTANT NOTE.3-24 3.1.2 Stretch Select (J2).3-24 3.1.3 Clock Select (J3 and J5).3-25 3.1.4 Timer Stop Select (J4).3-26 3.1.5 Keyboard Enable/Disable Select (J6).3-26 3.1.6 Emulated MCU Select (J7, J8, J13 and J14).3-27 3.1.7 RESET Selection (J9 and J10).3-29 3.1.8 VDD1 and VSS1 Voltage Selection (J11 and J12).3-29 3.1.9 EEPROM / RAM Select (J15).3-30 3.1.16 MOR Register Switches (S1).3-30 3.2 THE EMULATED MCU.3-31 3.2.1 MC68HC705X32 MC68HC705X32 Emulation.3-31 3.2.2 MC68HC705B32 MC68HC705B32 Emulation.3-31 3.2.3 MC68HC05X16 MC68HC05X16 Emulation.3-31 3.2.4 MC68HC705B16 MC68HC705B16 Emulation.3-32 3.3 EVS LIMITATIONS.3-33 3.4 LOGIC ANALYZER CONNECTOR P4.3-34 3.5 REMAINING SYSTEM INSTALLATION.3-36 M68EML05X32/D M68EML05X32/D 3-3 MOTOROLA TABLE OF FIGURES F i g u r e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Page F IGURE 1-1 M68EML05X32 M68EML05X32 E MULATOR MODULE .1-7 F IGURE 1-2. CONNECTOR P5 AND P6 P IN ASSIGNMENTS .1-8 F IGURE 3-1. CONNECTOR P4 P IN ASSIGNMENTS .3-34 TABLE OF TABLES T a b l e . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Page TABLE 2-1 MCU S AND P ERSONALITY F ILES.2-19 TABLE 3-1 LOGIC ANALYSER C ONNECTOR P IN DESCRIPTION .3-35 M68EML05X32/D M68EML05X32/D 3-4 MOTOROLA CHAPTER 1 INTRODUCTION This user's manual explains connection, configuration, and operation information specific to the M68EML05X32 M68EML05X32 Low Voltage Emulator Module (X32LVEM X32LVEM). The X32LVEM X32LVEM makes possible emulation and debugging of target systems based on these microcontroller units (MCUs): MC68HC MC68HC(7)05B16 05B16 MC68HC05X16 MC68HC05X16 MC68HC MC68HC(7)05B32 05B32 MC68HC MC68HC(7)05X32 05X32 The X32LVEM X32LVEM can be part of two development systems. This chapter describes those systems and explains the layout of the X32LVEM X32LVEM. The MC68HC705X32 MC68HC705X32 is the resident MCU in the X32LVEM X32LVEM. This EM board will allow for low voltage emulation down to 3V +/- 10%. 1.1 DEVELOPMENT SYSTEMS Your X32LVEM X32LVEM can be part of two Motorola development tools: the HC05 Motorola Modular Development System (MMDS05 MMDS05) or the M68HC05EVS M68HC05EVS Evaluation System (HC05EVS HC05EVS). 1.1.1 Motorola Modular Development System (MMDS05 MMDS05) The MMDS05 MMDS05 is an emulator system that provides a bus state analyzer and real-time memory windows. The unit's integrated design environment includes an editor, an assembler, user interface, and source-level debug. A complete MMDS05 MMDS05 consists of: · a station module - the metal MMDS05 MMDS05 enclosure, containing the control board and the internal power supply. Most system cables connect to the MMDS05 MMDS05 station module. (The cable to an optional target system, however, runs through an aperture in the station module enclosure to connect directly to the emulator module.) · an emulator module (EM) - such as the X32LVEM X32LVEM: a printed circuit board that enables system functionality for a specific set of MCUs. The EM fits into the station module through a sliding panel in the enclosure top. The EM has a connector for the target cable. · two logic clip cable assemblies - twisted-pair cables that connect the station module to your target system, a test fixture, a clock, or any other circuitry useful for evaluation or analysis. One end of each cable assembly has a molded connector, which fits into station-module pod A or pod B. Leads at the other end of each cable terminate in female probe tips. Ball clips come with the cable assemblies. M68EML05X32/D M68EML05X32/D 3-5 MOTOROLA · a 9-lead RS-232 RS-232 serial cable - the cable that connects the station module to the host computer RS-232 RS-232 port. · a 9- to 25-pin adapter - a molded assembly that lets you connect the 9-lead cable to a 25-pin serial port. · system software - software, on 3-1/2 inch diskettes. · MMDS05 MMDS05 documentation - an MMDS05 MMDS05 operations manual (MMDS05OM/D MMDS05OM/D) and the appropriate EM user's manual. As mentioned, your X32LVEM X32LVEM gives the MMDS05 MMDS05 the ability to emulate MC68HC MC68HC(7)05B16 05B16, MC68HC05X16 MC68HC05X16, MC68HC MC68HC(7)05B32 05B32, and MC68HC MC68HC(7)05X32 05X32 MCUs. By substituting a different EM, you can enable your MMDS05 MMDS05 to emulate an MCU of a different series. (Your Motorola representative can explain all the EMs available.) Chapter 2 explains how to configure and use your X32LVEM X32LVEM as part of an MMDS05 MMDS05 system. For information about MMDS05 MMDS05 software or the station module, see the MMDS05 MMDS05 operations manual. For layout and configuration information pertaining to a different EM, see the corresponding EM user's manual. 1.1.2 M68HC05EVS M68HC05EVS Evaluation System (HC05EVS HC05EVS) An HC05EVS HC05EVS is an economical, two-board tool for designing, debugging, and evaluating target systems based on an MC68HC05 MC68HC05 MCU. A complete HC05EVS HC05EVS consists of: · a platform board (PFB) - the bottom board, which supports the emulator module. The platform board has connectors for power and for the terminal or host computer. · an emulator module (EM) - such as the X32LVEM X32LVEM: a printed circuit board that enables system functionality for a specific set of MCUs. The EM fits onto the PFB. The EM has connectors for a target cable and for a cable to a logic analyzer. · an RS-232 RS-232 serial cable - the cable that connects the PFB to the host computer RS232 RS232 port. · system software - software, on 3-1/2 inch diskettes. · HC05EVS HC05EVS documentation - an HC05EVS HC05EVS operations manual (HC05EVSOM/D HC05EVSOM/D) and the appropriate EM user's manual. As mentioned, your X32LVEM X32LVEM gives the MMDS05 MMDS05 the ability to emulate MC68HC MC68HC(7)05B16 05B16, MC68HC05X16 MC68HC05X16, MC68HC MC68HC(7)05B32 05B32, and MC68HC MC68HC(7)05X32 05X32 MCUs. By substituting a different EM, you can enable your HC05EVS HC05EVS to emulate an MCU of a different series. (Your Motorola representative can explain all the EMs available.) Chapter 3 explains how to configure and use your X32LVEM X32LVEM as part of an HC05EVS HC05EVS system. For information about HC05EVS HC05EVS software or the platform board, see the HC05EVS HC05EVS operations manual. For layout and configuration information pertaining to a different EM, see the corresponding EM user's manual. M68EML05X32/D M68EML05X32/D 3-6 MOTOROLA 1.2 EM LAYOUT Figure 1-1 shows the layout of the X32LVEM X32LVEM. Jumper J1 enables low voltage operation. J2 enables clock stretching. J3 and J5 select the clock source for the board. J4 enables the timer stop feature. J6 enables the wired-or interrupt. J7, J8, J13 and J14 configure the board for different MCUs. J9 and J10 configure the RESET source. J11 and J12 select between internal and external VDD1 and VSS1 operating voltages. J15 selects EEPROM memory configuration. Connectors P5 and P6, provide the interface to the target system. If you install the X32LVEM X32LVEM in the MMDS05 MMDS05 station module, the target cable passes through the slit in the station module enclosure. Connector P4 connects to a logic analyzer. (Connector P4 has more significance for an EVS system, as an MMDS05 MMDS05 system includes a bus analyzer.) Expansion header connectors P2 and P3 connect together the EM and the control board (for an MMDS05 MMDS05) or the EM and the platform board (for an EVS). P1 allows the connection of a low voltage supply to the X32LVEM X32LVEM. J1 J2 J4 J6 S1 J3 J5 J8 P4 P1 J7 P2 P3 1 P4 P5 2 1 2 J9 J11 J10 J12 BX32 Package Adapter Board 59 M68EML05X32 M68EML05X32 J15 J13 60 59 60 J14 Figure 1-1 M68EML05X32 M68EML05X32 Emulator Module M68EML05X32/D M68EML05X32/D 3-7 MOTOROLA 1.3 CONNECTOR P5 AND P6 PIN ASSIGNMENTS Figure 1-2 shows the pin assignments for connector P5 and P6. For signal descriptions, consult the technical data book for the specific MCU. P5 GND TCAP1 NC PA6 PA4 PH6 PH5 GND PH3 PH1 PA3 PA1 TX0 TX1 GND PB5 PB3 PB1 NC PE6 PE5 GND PE3 PE1 NC PC7 PC5 PC4 GND NC 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 P6 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 PLMB TCAP2 PA7 PA5 PH7 GND PH4 VBATH PH2 PH0 PA2 PA0 GND PB7 PB6 PB4 PB2 PB0 PE7 GND PE4 VBATE PE2 PE0 VSS PC6 GND PC3 PC2 GND PC1 VDDH VSS1 GND VDD1 SCLK PF7 PF5 VBATF PF3 GND PF0 TCMP1 PD6 NC VRH PD4 GND PD2 PD0 PG6 PG4 PG3 PG2 GND NC NC NC GND PLMA 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 PC0 GND RX0 RX1 RDI TDO PF6 PF4 GND PF2 PF1 TCMP2 PD7 PD5 VRL GND EVDD PD3 PD1 PG7 PG5 VBATG GND PG1 PG0 NC TOSC1 RESET IRQ GND NOTE NOTE: Ports E, F, H, G and associated VBAT pins are no connects on the standard 05X32LVEM 05X32LVEM. Figure 1-2. Connector P5 and P6 Pin Assignments As connector P4 has more importance to an HC05EVS HC05EVS than to an MMDS05 MMDS05, pin assignments for connector P4 are in Chapter 3. To configure your X32LVEM X32LVEM for use as part of an MMDS05 MMDS05, follow the instructions of Chapter 2. To configure your X32LVEM X32LVEM for use as part of an HC05EVS HC05EVS, follow the instructions of Chapter 3. M68EML05X32/D M68EML05X32/D 3-8 MOTOROLA 1.4 CONNECTOR P1 DESCRIPTION Connector P1 is provided to allow the emulator board to operate at target specific voltages. The X32LVEM X32LVEM is specified to operate from 3V +/- 10% to 5V. Lower or higher voltages than those specified may result in damage to the EM board and or the platform/MMDS05 board. The pinout of connector P1 is shown below. 1 (2) P1 GND + The terminal marked + is intended to be the positive voltage with respect to the terminal marked GND. NOTE The GND reference on connector P1 is directly connected to the GND for the whole emulator system. The voltage supply on P1 must be able to support a much greater current demand than would the MCU on its own. Allow at least 400mA at 5V. If jumper J1 selects the LV supply then that power should be present. To prevent damage to the emulator the board includes some protection circuitry that will supply a limited current should the voltage at P1 drop below 2.4V. Although this will allow the board to operate it is not advised to use this source since the limited current available may cause the board to fail unpredictably. Also bear in mind that the X32 itself operates at the lower voltage and so notice must be taken of any reduced performance specified for the part at lower voltages e.g. operating frequency and EEPROM programming. 1.5 COP WATCHDOG EMULATION CONSIDERATIONS All of the devices emulated by this system include on-chip COP watchdogs. watchdogs are configurable in the emulator according to the following procedures. These On M68HC M68HC(7)05B16/32 05B16/32, M68HC05X16 M68HC05X16 and M68HC M68HC(7)05X32 05X32 the COP and other system functions are controlled by the Mask Option Register. The value that this contains is determined at reset by the value on switch S1 (see 2.1.10 or 3.1.10). The COP watchdog bit is MOR bit 7. Set this bit according to the system requirements - switch closed for watchdog enable. M68EML05X32/D M68EML05X32/D 3-9 MOTOROLA This page intentionally left blank M68EML05X32/D M68EML05X32/D 3-10 MOTOROLA CHAPTER 2 MMDS05 MMDS05 CONFIGURATION AND OPERATION This chapter explains how to configure and use your X32LVEM X32LVEM as part of an MMDS05 MMDS05. For other parts of system installation or configuration, see the MMDS05 MMDS05 operations manual (MMDS05OM/D MMDS05OM/D). (If you will use your X32LVEM X32LVEM as part of an HC05EVS HC05EVS system, go to Chapter 3 for corresponding information.) Paragraph 2.1 explains how to set X32LVEM X32LVEM jumper headers. Paragraph 2.2 explains considerations pertaining to the MCU you emulate. Paragraph 2.3 explains remaining system installation. Note that you can configure a X32LVEM X32LVEM already installed in the MMDS05 MMDS05 station module enclosure. To do so, switch off station-module power, remove the panel, then follow the guidance of this chapter. CAUTION Be sure to switch off power if you reconfigure an installed EM. Reconfiguring EM jumper headers with power left on can damage MMDS05 MMDS05 circuits. 2.1 SETTING X32LVEM X32LVEM JUMPER HEADERS Your X32LVEM X32LVEM has 15 jumper headers, J1 to J15 and one switch pack, S1. Paragraphs 2.1.1. and 2.1.10 explain how to configure these headers and the switch pack. M68EML05X32/D M68EML05X32/D 3-11 MOTOROLA 2.1.1 Low Voltage Select (J1) Jumper header J1 determines if the MCU operating voltage should be supplied from connector P1 or from the main +5V supply. The diagram below shows the factory configuration: the fabricated jumper between pins 1 and 2 disables the low voltage feature. 1 (2) (3) J1 ON OFF FABRICATED JUMPER IMPORTANT NOTE If jumper J1 is in the ON position the user must supply an external supply to the P1 connector. A high impedance supply of 2.7V is supplied to the MCU when the low voltage option is selected, the user must supply a greater voltage than this to the P1 connector.The power up sequence should be as follows: Power up MMDS05 MMDS05, then apply target power to the target system. On powering down remove target power first then power down the MMDS05 MMDS05. 2.1.2 Stretch Select (J2) When set to ON jumper header J2 stretches the MCU clock source by one cycle when in background mode. This feature allows the X32LVEM X32LVEM to operate at a faster than normal clock frequency when used on an EVS system. The factory set configuration for this jumper is shown below: OFF (2-3) this is the only valid setting for this jumper when using an MMDS05 MMDS05 system. 1 (2) (3) J2 OFF ON FABRICATED JUMPER M68EML05X32/D M68EML05X32/D 3-12 MOTOROLA 2.1.3 Clock Select (J3 and J5) Jumper headers J3 and J5 select the source of the clock oscillator for the MCU. You may choose between on-board oscillator (EM), MMDS supplied oscillator (MMDS) or clock from the target system (TOSC). To select either EM or MMDS you must place the J5 jumper at the (J3) position as well as correctly selecting the J3 setting. The diagram below shows the factory configuration: the fabricated jumper on J3 between pins 1 and 2 selects the X32LVEM X32LVEM on-board canned oscillator clock source. 1 (2) (3) J3 MMDS EM FABRICATED JUMPERS 1 (2) (3) J5 TOSC (J3) Alternatively, you may use a clock source originating from the control board. To do so, reposition the J3 jumper between pins 2 and 3, then use the MMDS05 MMDS05 OSC command to select a frequency. To select a clock from the target system position jumper header J5 between pins 2 and 3. In this case the position of the jumper header on J3 is not important. M68EML05X32/D M68EML05X32/D 3-13 MOTOROLA 2.1.4 Timer Stop Select (J4) Jumper header J4 determines if the MCU timers should be stopped in background mode. The diagram below shows the factory configuration: the fabricated jumper between pins 2 and 3 disables the timer stop feature. 1 (2) (3) J4 OFF ON FABRICATED JUMPER NOTE When ON the internal timers on the X32 MCU are stopped when the emulator is stopped. The timers will continue to run when the emulator executes a GO. The timers will also increment when an internal register or memory to the X32 is examined. In this case the timers will `creep' forward by a small number of cycle counts when the emulator is accessing the internal feature. 2.1.5 Keyboard Enable/Disable Select (J6) Jumper header J6 selects if wired-or interrupts (WOI) interrupts are enabled or disabled. The diagram below shows the factory configuration: the fabricated jumper between pins 1 and 2 enables WOI. The J6 jumper between pins 2 and 3 disables the WOI interrupts. 1 (2) (3) J6 ENB DISENB FABRICATED JUMPER M68EML05X32/D M68EML05X32/D 3-14 MOTOROLA 2.1.6 Emulated MCU Select (J7, J8, J13 and J14) The X32LVEM X32LVEM provides four jumpers to allow selection of the appropriate emulated and installed MCU. J7 selects the correct R/W source; this changes between the X16 and X32. If an X32 MCU is installed in the X32LVEM X32LVEM board then the jumper header must be set between positions 1 and 2; this is the factory configuration. If an X16 MCU is installed then the jumper header must be re-placed between pins 2 and 3. 1 (2) (3) J7 RW16 RW32 FABRICATED JUMPER J8 selects whether or not the address line A14 is selected or not; this determines the size of the memory map accessible to the MCU. If you wish to emulate an X32 or B32 then the jumper header must be set between pins 1 and 2; this is the factory configuration. If you wish to emulate an X16 or B16 then the jumper header must be re-placed between pins 2 and 3. 1 (2) (3) J8 OFF ON FABRICATED JUMPER NOTE When an X32 MCU is installed in the X32LVEM X32LVEM this jumper allows you to select between X32 (ON) and X16 (OFF) emulation. However, when an X16 MCU is installed in the X32LVEM X32LVEM the OFF position is the only valid setting. M68EML05X32/D M68EML05X32/D 3-15 MOTOROLA J13 selects between X/B16 X/B16 and X/B32 X/B32 MCUs while J14 selects between X and B type MCUs. The factory configuration of these jumper headers selects X32 MCU emulation. To emulate an X16 MCU replace the J14 jumper between pins 2 and 3; note that you do not have to replace the installed X32 in this case, however if an X16 MCU is installed then jumper J13 must be placed between pins 2 and 3. To emulate a B32 MCU set jumper header J13 between pins 1 and 2 and jumper header J14 between pins 1 and 2. See section 2.2 for a description of the appropriate settings of all four jumpers 1 (2) (3) J13 16 32 FABRICATED JUMPERS 1 (2) (3) J14 X32 B32 2.1.7 RESET Selection (J9 and J10) Jumper headers J9 and J10 control the source of the reset to the emulator board. The figures below show the factory configuration: no fabricated jumper installed. This is the correct position, unless the low voltage feature is enabled, and enables your software to control resets. When using the low voltage enable function both the select headers J9 and J10 must be configured as shown in the table below: LOW VOLTAGE J9 JUMPER POSITION J10 JUMPER POSITION ON 1-2 NOT FITTED OFF NOT FITTED 1-2 1 (2) 1 (3) (2) J10 J9 OUT ON IN FABRICATED JUMPER FABRICATED JUMPER M68EML05X32/D M68EML05X32/D OFF 3-16 MOTOROLA 2.1.8 VDD1 and VSS1 Voltage Selection (J11 and J12) Jumper header J11 selects between an internal VDD1 source and an external VDD1 source. Jumper header J12 selects between an internal VSS1 source and an external VSS1 source. The factory set configuration for this jumpers are shown below. In both cases jumper header between pins 2 and 3 select the emulator operating voltages. 1 (2) (3) J11 VTGT EXT FABRICATED JUMPERS 1 (2) (3) J12 GND EXT 2.1.9 EEPROM / RAM Select (J15) Jumper header J15 selects between using MCU EEPROM or emulation system RAM. The factory set configuration for this jumper is shown below: EEPROM (1-2) selects MCU EEPROM. RAM (2-3) selects emulation system RAM and this replaces the on-chip EEPROM. 1 (2) (3) J15 EEPROM RAM FABRICATED JUMPER NOTE When the jumper header is set between pins 2 and 3 the internal EEPROM on the X32 is inaccessible. You must also enable emulator RAM on the MMDS05 MMDS05 using the SETMEM command before this RAM can be used. M68EML05X32/D M68EML05X32/D 3-17 MOTOROLA 2.1.10 MOR Register Switches (S1) The factory configuration of switch S1 is shown below. This sets the MOR to what would be it normal erase value of zero. For further information on the mask option register consult the device technical data. S1 MOR BIT 0 MOR BIT 1 MOR BIT 2 MOR BIT 3 MOR BIT 4 MOR BIT 5 MOR BIT 6 MOR BIT 7 OPEN M68EML05X32/D M68EML05X32/D CLOSE 3-18 MOTOROLA 2.2 THE EMULATED MCU Your MMDS05 MMDS05 system uses a specific personality file for the MCU type being emulated. For example, to emulate an MC68HC705X32 MC68HC705X32 the system uses personality file 00223Vxx.MEM. Table 2-1 lists all the personality files that pertain to the B32EM B32EM. Note that personality file names follow the pattern 00ZZZVxx.MEM, where ZZZ is the EM identifier or MCU name, and xx is the version of the file. EMULATED MCU MC68HC MC68HC(7)05X32 05X32 MC68HC MC68HC(7)05B32 05B32 MC68HC05X16 MC68HC05X16 MC68HC MC68HC(7)05B16 05B16 PERSONALITY FILE RESIDENT MCU 00223Vxx.MEM 00222Vxx.MEM 00205Vxx.MEM 00204Vxx.MEM MC68HC705X32 MC68HC705X32 MC68HC705X32 MC68HC705X32 MC68HC705X32 MC68HC705X32 MC68HC705X32 MC68HC705X32 COMMENTS See See See See paragraph paragraph paragraph paragraph 2.2.1 2.2.2 2.2.3 2.2.4 Table 2-1 MCUs and Personality Files MMDS05 MMDS05 software loads the personality file upon powerup; the default personality file is 00222Vxx.MEM for the X32. To replace the default personality file with a different one, use the LOADMEM command. (For more information about the LOADMEM command, see the explanation in the MMDS05 MMDS05 operations manual.) Alternatively, you can insert the line LOADMEM 00ZZZVxx.MEM in the STARTUP.05 script file. This way, the system automatically loads the specified personality file as part of system startup. (For more information about the STARTUP.05 script file, see the SCRIPT command explanation in the MMDS05 MMDS05 operations manual.) M68EML05X32/D M68EML05X32/D 3-19 MOTOROLA 2.2.1 MC68HC MC68HC(7)05X32 05X32 Emulation To emulate the X32 MCU configure jumpers J7, J8, J13, J14 as follows J7 RW32 J8 ON J13 32 J14 X32 When emulating a MC68HC MC68HC(7)05X32 05X32 using the X32EM X32EM you should not to write to location $004F as this may cause a system malfunction. Also S-records downloads should avoid this location or write 0 into it. For more information about the MC68HC MC68HC(7)05X32 05X32 features, see the corresponding technical data book. Limitations: The ECLK out function on PC2 is not supported. 2.2.2 MC68HC MC68HC(7)05B32 05B32 Emulation To emulate the B32 MCU configure jumpers J7, J8, J13, J14 as follows J7 RW32 J8 ON J13 32 J14 B32 When emulating a MC68HC MC68HC(7)05B32 05B32 using the X32EM X32EM you should not to write to location $004F as this may cause a system malfunction. Also S-records downloads should avoid this location or write 0 into it. For more information about the MC68HC MC68HC(7)05X32 05X32 features, see the corresponding technical data book. Limitations: The ECLK out function on PC2 is not supported. 2.2.3 MC68HC05X16 MC68HC05X16 Emulation To emulate the X16 MCU with an X32 MCU installed configure jumpers J7, J8, J13, J14 as follows J7 RW32 J8 OFF J13 16 J14 X32 To emulate the X16 MCU with an X16 MCU installed configure jumpers J7, J8, J13, J14 as follows J7 RW16 J8 OFF J13 16 J14 X32 When emulating a MC68HC05X16 MC68HC05X16 using the X32EM X32EM you should not to write to location $004F as this may cause a system malfunction. Also S-records downloads should avoid this location or write 0 into it. For more information about the MC68HC05X16 MC68HC05X16 features, see the corresponding technical data book. M68EML05X32/D M68EML05X32/D 3-20 MOTOROLA Limitations: The ECLK out function on PC2 is not supported. 2.2.4 MC68HC MC68HC(7)05B16 05B16 Emulation To emulate the B16 MCU with an X32 MCU installed configure jumpers J7, J8, J13, J14 as follows J7 RW32 J8 OFF J13 16 J14 B32 To emulate the B16 MCU with an X16 MCU installed configure jumpers J7, J8, J13, J14 as follows J7 RW16 J8 OFF J13 16 J14 B32 When emulating a MC68HC MC68HC(7)05B16 05B16 using the X32EM X32EM you should not to write to location $004F as this may cause a system malfunction. Also S-records downloads should avoid this location or write 0 into it. For more information about the MC68HC MC68HC(7)05B16 05B16 features, see the corresponding technical data book. Limitations: The ECLK out function on PC2 is not supported. M68EML05X32/D M68EML05X32/D 3-21 MOTOROLA 2.3 REMAINING SYSTEM INSTALLATION When you have configured headers J1 to J15 and switch pack S1, you are through with X32LVEM X32LVEM configuration: · To install the X32LVEM X32LVEM in an MMDS05 MMDS05 station module, remove the panel from the station-module top. Fit together EM connectors P2 and P3 (on the bottom of the board) and control-board connectors P11 and P12. Snap the corners of the EM onto the plastic standoffs. Connect the target cable, if appropriate. Replace the panel. At this point, you are ready to make remaining cable connections, as necessary, and restore power. For instructions, consult the MMDS05 MMDS05 operations manual (MMDS05OM/D MMDS05OM/D). M68EML05X32/D M68EML05X32/D 3-22 MOTOROLA CHAPTER 3 HC05EVS HC05EVS CONFIGURATION AND OPERATION This chapter explains how to configure your X32LVEM X32LVEM for use as part of an HC05EVS HC05EVS. For other parts of system installation or configuration, see the HC05EVS HC05EVS operations manual (HC05EVSOM/D HC05EVSOM/D). (If you will use your X32LVEM X32LVEM as part of an MMDS05 MMDS05 system, go to Chapter 2 for configuration information.) Paragraph 3.1 explains how to set X32LVEM X32LVEM jumper headers and switch pack S1. Paragraph 3.2 explains considerations pertaining to the MCU you emulate. Paragraph 3.3 lists limitations on using the X32LVEM X32LVEM in an HC05EVS HC05EVS. Paragraph 3.4 explains pin assignments and signal descriptions for the logic analyzer connector (P1). Paragraph 3.5 explains remaining system configuration. Note that you can configure a X32LVEM X32LVEM already installed on the HC05EVS HC05EVS platform board. To do so, disconnect platform-board power, then follow the guidance of this chapter. CAUTION Be sure to disconnect power if you reconfigure an installed EM. Reconfiguring EM jumper headers with power left on can damage HC05EVS HC05EVS circuits. 3.1 SETTING X32LVEM X32LVEM JUMPER HEADERS Your X32LVEM X32LVEM has 15 jumpers, J1 to J12 and one switch pack, S1. Paragraphs 3.1.1. and 3.1.10 explain how to configure these headers and the switch pack. M68EML05X32/D M68EML05X32/D 3-23 MOTOROLA 3.1.1 Low Voltage Select (J1) Jumper header J1 determines if the MCU operating voltage should be supplied from connector P1 or from the main +5V supply. The diagram below shows the factory configuration: the fabricated jumper between pins 1 and 2 disables the low voltage feature. 1 (2) (3) J1 ON OFF FABRICATED JUMPER IMPORTANT NOTE If jumper J1 is in the ON position the user must supply an external supply to the P1 connector. A high impedance supply of 2.7V is supplied to the MCU when the low voltage option is selected, the user must supply a greater voltage than this to the P1 connector.The power up sequence should be as follows: Power up EVS, then apply target power to the target system. On powering down remove target power first then power down the EVS. 3.1.2 Stretch Select (J2) When set to ON jumper header J2 stretches the MCU clock source by one cycle when in background mode. This feature allows the X32LVEM X32LVEM to operate at a faster than normal clock frequency when used on an EVS system. The factory set configuration for this jumper is shown below. When the jumper is set between pins 1 and 2 the EVS will operate at half speed when in terminal mode. 1 (2) (3) J2 OFF ON FABRICATED JUMPER M68EML05X32/D M68EML05X32/D 3-24 MOTOROLA 3.1.3 Clock Select (J3 and J5) Jumper headers J3 and J5 select the source of the clock oscillator for the MCU. You may choose between on-board oscillator (EM) or clock from the target system (TOSC). To select EM you must place the J5 jumper at the (J3) position as well as correctly selecting the J3 setting. The diagram below shows the factory configuration: the fabricated jumper on J3 between pins 1 and 2 selects the X32LVEM X32LVEM on-board canned oscillator clock source. 1 (2) (3) J3 MMDS EM FABRICATED JUMPERS 1 (2) (3) J5 TOSC (J3) To select a clock from the target system position jumper header J5 between pins 2 and 3. In this case the position of the jumper header on J3 is not important. M68EML05X32/D M68EML05X32/D 3-25 MOTOROLA 3.1.4 Timer Stop Select (J4) Jumper header J4 determines if the MCU timers should be stopped in background mode. The diagram below shows the factory configuration: the fabricated jumper between pins 2 and 3 disables the timer stop feature. 1 (2) (3) J4 OFF ON FABRICATED JUMPER NOTE When ON the internal timers on the X32 MCU are stopped when the emulator is stopped. The timers will continue to run when the emulator executes a GO. The timers will also increment when an internal register or memory to the X32 is examined. In this case the timers will `creep' forward by a small number of cycle counts when the emulator is accessing the internal feature. 3.1.5 Keyboard Enable/Disable Select (J6) Jumper header J6 selects if wired-or interrupts (WOI) interrupts are enabled or disabled. The diagram below shows the factory configuration: the fabricated jumper between pins 1 and 2 enables WOI. The J6 jumper between pins 2 and 3 disables the WOI interrupts. 1 (2) (3) J6 ENB DISENB FABRICATED JUMPER M68EML05X32/D M68EML05X32/D 3-26 MOTOROLA 3.1.6 Emulated MCU Select (J7, J8, J13 and J14) The X32LVEM X32LVEM provides four jumpers to allow selection of the appropriate emulated and installed MCU. J7 selects the correct R/W source; this changes between the X16 and X32. If an X32 MCU is installed in the X32LVEM X32LVEM board then the jumper header must be set between positions 1 and 2; this is the factory configuration. If an X16 MCU is installed then the jumper header must be re-placed between pins 2 and 3. 1 (2) (3) J7 RW16 RW32 FABRICATED JUMPER J8 selects whether or not the address line A14 is selected or not; this determines the size of the memory map accessible to the MCU. If you wish to emulate an X32 or B32 then the jumper header must be set between pins 1 and 2; this is the factory configuration. If you wish to emulate an X16 or B16 then the jumper header must be re-placed between pins 2 and 3. 1 (2) (3) J8 OFF ON FABRICATED JUMPER NOTE When an X32 MCU is installed in the X32LVEM X32LVEM this jumper allows you to select between X32 (ON) and X16 (OFF) emulation. However, when an X16 MCU is installed in the X32LVEM X32LVEM the OFF position is the only valid setting. M68EML05X32/D M68EML05X32/D 3-27 MOTOROLA J13 selects between X/B16 X/B16 and X/B32 X/B32 MCUs while J14 selects between X and B type MCUs. The factory configuration of these jumper headers selects X32 MCU emulation. To emulate an X16 MCU replace the J14 jumper between pins 2 and 3; note that you do not have to replace the installed X32 in this case, however if an X16 MCU is installed then jumper J13 must be placed between pins 2 and 3. To emulate a B32 MCU set jumper header J13 between pins 1 and 2 and jumper header J14 between pins 1 and 2. See section 2.2 for a description of the appropriate settings of all four jumpers 1 (2) (3) J13 16 32 FABRICATED JUMPERS 1 (2) (3) J14 B32 M68EML05X32/D M68EML05X32/D X32 3-28 MOTOROLA 3.1.7 RESET Selection (J9 and J10) Jumper header J9 controls the path of a target reset. The diagram below shows the factory configuration: the fabricated jumper between pins 1 and 2 enables the EVS to drive a reset to a target system. The fabricated jumper between pins 2 and 3 allows the target system to drive reset to the EVS provided that a fabricated jumper is installed between pins 1 and 2 of J3 on the PFB. Jumper header J10 is part of RESET signal control: no fabricated jumper should be installed on J10 when LVX32EM LVX32EM is used as part of an EVS system 1 (2) 1 (3) (2) J10 J9 OUT ON IN OFF FABRICATED JUMPER FABRICATED JUMPER 3.1.8 VDD1 and VSS1 Voltage Selection (J11 and J12) Jumper header J11 selects between an internal VDD1 source and an external VDD1 source. Jumper header J12 selects between an internal VSS1 source and an external VSS1 source. The factory set configuration for this jumpers are shown below. In both cases jumper header between pins 2 and 3 select the emulator operating voltages. 1 (2) (3) J11 VTGT EXT FABRICATED JUMPERS 1 (2) (3) J12 GND EXT M68EML05X32/D M68EML05X32/D 3-29 MOTOROLA 3.1.9 EEPROM / RAM Select (J15) Jumper header J15 selects between using MCU EEPROM or emulation system RAM. The factory set configuration for this jumper is shown below: EEPROM (1-2) selects MCU EEPROM. RAM (2-3) selects emulation system RAM and this replaces the on-chip EEPROM. 1 (2) (3) J15 EEPROM RAM FABRICATED JUMPER 3.1.16 MOR Register Switches (S1) The factory configuration of switch S1 is shown below. This sets the MOR to what would be it normal erase value of zero. For further information on the mask option register consult the device technical data. S1 MOR BIT 0 MOR BIT 1 MOR BIT 2 MOR BIT 3 MOR BIT 4 MOR BIT 5 MOR BIT 6 MOR BIT 7 OPEN M68EML05X32/D M68EML05X32/D CLOSE 3-30 MOTOROLA 3.2 THE EMULATED MCU The factory ships the X32LVEM X32LVEM with an MC68HC705X32 MC68HC705X32 resident MCU, which is appropriate for emulating MC68HC705X32/B32 MC68HC705X32/B32 and MC68HC705X16/B16 MC68HC705X16/B16 series MCUs. 3.2.1 MC68HC705X32 MC68HC705X32 Emulation To emulate the X32 MCU configure jumpers J7, J8, J13, J14 as follows J7 RW32 J8 ON J13 32 J14 X32 When emulating a MC68HC705X32 MC68HC705X32 using the X32EM X32EM you should not to write to location $004F as this may cause a system malfunction. Also S-records downloads should avoid this location or write 0 into it. For more information about the MC68HC705X32 MC68HC705X32 features, see the corresponding technical data book. 3.2.2 MC68HC705B32 MC68HC705B32 Emulation To emulate the B32 MCU configure jumpers J7, J8, J13, J14 as follows J7 RW32 J8 ON J13 32 J14 B32 When emulating a MC68HC705B32 MC68HC705B32 using the X32EM X32EM you should not to write to location $004F as this may cause a system malfunction. Also S-records downloads should avoid this location or write 0 into it. For more information about the MC68HC705X32 MC68HC705X32 features, see the corresponding technical data book. 3.2.3 MC68HC05X16 MC68HC05X16 Emulation To emulate the X16 MCU with an X32 MCU installed configure jumpers J7, J8, J13, J14 as follows J7 RW32 J8 OFF J13 16 J14 X32 To emulate the X16 MCU with an X16 MCU installed configure jumpers J7, J8, J13, J14 as follows J7 RW16 J8 OFF J13 16 J14 X32 When emulating a MC68HC05X16 MC68HC05X16 using the X32EM X32EM you should not to write to location $004F as this may cause a system malfunction. Also S-records downloads should avoid this location or write 0 into it. M68EML05X32/D M68EML05X32/D 3-31 MOTOROLA For more information about the MC68HC05X16 MC68HC05X16 features, see the corresponding technical data book. 3.2.4 MC68HC705B16 MC68HC705B16 Emulation To emulate the B16 MCU with an X32 MCU installed configure jumpers J7, J8, J13, J14 as follows J7 RW32 J8 OFF J13 16 J14 B32 To emulate the B16 MCU with an X16 MCU installed configure jumpers J7, J8, J13, J14 as follows J7 RW16 J8 OFF J13 16 J14 B32 When emulating a MC68HC705B16 MC68HC705B16 using the X32EM X32EM you should not to write to location $004F as this may cause a system malfunction. Also S-records downloads should avoid this location or write 0 into it. For more information about the MC68HC705B16 MC68HC705B16 features, see the corresponding technical data book. M68EML05X32/D M68EML05X32/D 3-32 MOTOROLA 3.3 EVS LIMITATIONS This paragraph explains the limitations that apply to using your X32EM X32EM in an HC05EVS HC05EVS. Limitation 1. CLI/RTI. You may not trace a clear interrupt mask (CLI) or return from interrupt (RTI) instruction with an interrupt enabled and pending, due to MCU interrupt handling. Attempting such a trace causes an interrupt in the monitor map; this forces a software reset of the HC05EVS HC05EVS. User breakpoints remain in the user map as SWI instructions; you must remove such SWI instructions. Limitation 2. Branch. Do not trace a conditional branch instruction (such as BRCLR) that branches to itself. As the monitor places an SWI instruction on the object of the branch, the system never would execute the instruction. However, it would appear to you that the instruction had executed. You may enter a G command while the PC points to this type of instruction as long as the instruction is not a breakpoint address. Limitation 3. IRQ/SWI. Whenever possible, avoid mixing interrupt requests (IRQs) and user software interrupts (SWIs). This prevents a possible IRQ-SWI timing problem: a concurrent hardware interrupt and SWI could cause an HC05EVS HC05EVS failure that could stop program execution. To recover from such a failure (which occurs very infrequently, statistically), press the master reset switch (SW3). Limitation 4. Memory Map. You must be aware of the memory map of the MCU being simulated; be sure to use only valid ROM locations. The HC05EVS HC05EVS does not provide protection to limit user programs to the exact amount of MCU ROM available. (For information about memory maps, consult the technical data book for the MCU.) Limitation 5. COP. The COP is not supported by the current platform board. Limitation 6. At slow E clock rates the MCU will be unable to load S-records correctly. This is due to communication overruns, due to the inability of the MCU to service the ccommunication chip fast enough. To avoid this problem you can slow the transmission rate (not baud rate) or use a faster clock to load the MCU and then slow the clock down. Limitation 7. ECLK out function on PC2 is not supported. M68EML05X32/D M68EML05X32/D 3-33 MOTOROLA 3.4 LOGIC ANALYZER CONNECTOR P4 Figure 3-1 shows the pin assignments for logic analyzer connector P4. Table 3-2 lists signal descriptions for this connector. P1 NC NC LA11 LA10 LA9 LA8 LA7 LA6 LA5 LA4 LA3 LA2 LA1 LA0 LR/W NC NC NC VCC RESET 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 GND NC GND LA12 LA13 LA14 NC D7 D6 D5 D4 D3 D2 D1 D0 LIR NC NC E NC Figure 3-1. Connector P4 Pin Assignments M68EML05X32/D M68EML05X32/D 3-34 MOTOROLA PIN MNEMONIC 1, 3, 4, 12, 14, 31, 33 - 36, 40 2, 6 5, 7, 9, 11. 13. 15. 17, 19, 21, 23, 25, 27 8, 10,12 16, 18, 22, 24, 28, 30 29 SIGNAL - No connection GND LA11 - LA0 GROUND LATCHED ADDRESSES (bits 11-0) - MCU latched output address bus. LA12, LA13, LATCHED ADDRESSES (bit 12 and 13) - MCU LA14 latched output address bus. 20, AD7 - AD0 DATA BUS (bits 7-0) - MCU multiplexed I/O data 26, bus. LR/W 32 LIR 37 VCC 38 E 39 RESET LATCHED READ/WRITE - Active-high output signal that indicates the direction of data transferred on the bus. LOAD INSTRUCTION REGISTER - Open-drain, active-low output signal that indicates an instruction is starting. +5 VDC POWER - Input voltage (+5 Vdc @ 1.0 A) used by EVS logic circuits. EXTERNAL CLOCK - Internally generated output clock signal used as a timing reference. The frequency of E clock is 1/2 the input frequency of the signal on the OSC2 pin. RESET - Active-low bidirectional signal for starting an EVS reset. Table 3-1 Logic Analyser Connector Pin Description M68EML05X32/D M68EML05X32/D 3-35 MOTOROLA 3.5 REMAINING SYSTEM INSTALLATION When you have configured headers J1 to J9 and switch S1, you are through with X32LVEM X32LVEM configuration. Find jumper header J1 of the HC05EVS HC05EVS platform board. Make sure that three fabricated jumpers are installed, per the diagram below. J1 A14 1 2 A13 3 4 A12 5 6 A11 7 8 FABRICATED JUMPERS To install the X32LVEM X32LVEM on an HC05EVS HC05EVS platform board, fit together EM connectors P2 and P3 (on the bottom of the board) and platform-board connectors P3 and P4. Snap the corners of the EM onto the plastic standoffs. At this point, you are ready to make remaining cable connections, as necessary, and restore power. For instructions, consult the HC05EVS HC05EVS operations manual (HC05EVSOM/D HC05EVSOM/D). M68EML05X32/D M68EML05X32/D 3-36 MOTOROLA