IE-784038-R-EM1 I/O EMULATION BOARD © 1996 Document No. U11383EJ1V0UM00 (1st edition) Date Published June 1996 P Printed in Japan This device is a Class I information processing device (an information processing device for use in a commercial or industrial area). It complies with the standards set by the Conference on the Voluntary Control of Radio Interference (VCCI), which are intended to prevent radio wave interference in commercial and industrial areas. If used in a residential area or area adjacent to such as area, it may interfere with radio and television receivers. Please comply with the user's manual and handle this device appropriately. The information in this document is subject to change without notice. No part of this document may be copied or reproduced in any form or by any means without the prior written consent of NEC Corporation. NEC Corporation assumes no responsibility for any errors which may appear in this document. NEC Corporation does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from use of a device described herein or any other liability arising from use of such device. No license, either express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of NEC Corporation or of others. INTRODUCTION General Product Description: The IE-784038-R-EM1 board connects to the IE-784000-R-EM board, and these insert into the IE784000-R cabinet. The IE-784038-R-EM1 board is used to debug the µPD784038/µPD784038Y subseries Note of 16/8-bit single-chip microcontrollers. Note µPD784038 subseries : µPD784031, µPD784035, µPD784036, µPD784037, µPD784038, and µPD78P4038 µPD784038Y subseries : µPD784031Y, µPD784035Y, µPD784036Y, µPD784037Y, µPD784038Y, and µPD78P4038Y Remark The µPD784038 and µPD784038Y subseries are under development. Target users: This manual is intended for engineers who plan to develop a system containing the µPD784038/ µPD784038Y subseries 16/8-bit single-chip microcontroller and want to debug the system using IE-784000-R and IE-784000-R-EM in combination with the IE-784038-R-EM1. In addition, it is also intended for engineers who wish to use other in-circuit emulators by providing them with the same functions as the IE-784000-R. Therefore, this manual assumes that the readers will be well-versed in the functions and methods of using the µPD784038/µPD784038Y subseries of microcontrollers and have the expertise of those who do debugging. Objectives: The objectives of this manual are to provide an understanding of the methods of connecting the IE-784038-R-EM1 to the IE-784000-R-EM and the IE-784000-R as well as the methods of making settings when debugging the µPD784038/ µPD784038Y subseries of microcontrollers. Organization: The manuals describing how to use the IE-784000-R are the manual that comes with the IE-784038R-EM1 (this manual) and the manual that comes with the IE-784000-R. IE-784038-R-EM1 IE-784000-R User’s Manual User’s Manual System configuration Basic specifications External interface functions System configuration to the IE-784000-R Connection methods How to read this manual: To obtain a general understanding of the IE-784038-R-EM1 functions, read this manual in the same sequence as the table of contents. For an understanding of the specifications, read the general description in CHAPTER 1. To examine the settings for connecting the IE-784038-R-EM1 to the IE-784000-R and debugging the µ PD784038/µPD784038Y subseries devices, read the installation procedures in CHAPTER 2. Terminology: The special terms used in the manual are defined in the following table: Legend: Term Definition Emulation device A generic term for devices in the emulator that are to be emulated. This includes the emulation CPU. Emulation CPU The CPU portion of the emulator that executes the user-created program. Target device The device whose operation is emulated (the actual device). Target program The program that is to be debugged (a user-created program). Target system The system that is the subject of debugging (a user-created system). This includes the target program and the hardware created by the user. The narrow definition refers only to the hardware. (1) The term “Note” placed in the text indicates that an explanation will be provided somewhere below. (2) The term “Caution” indicates an explanation that the reader should pay particular attention to. (3) The term “Remark” indicates that a supplemental explanation of the text will be provided. CONTENTS CHAPTER 1 GENERAL DESCRIPTION ......................................................................................... 1 1.1 Characteristics ....................................................................................................................................... 1 1.2 Packing List ............................................................................................................................................ 1 1.3 Name of Components ............................................................................................................................ 3 1.4 Target Devices ....................................................................................................................................... 4 1.5 Emulation Probe .................................................................................................................................... 4 1.6 Precautions ............................................................................................................................................ 4 CHAPTER 2 INSTALLATION PROCEDURES ................................................................................ 5 2.1 Insertion in the IE-784000-R .................................................................................................................. 5 2.2 Connecting to the Target System ........................................................................................................ 8 2.3 No Connection to the Target System ................................................................................................... 9 CHAPTER 3 SETTING THE USER CLOCK .................................................................................. 11 3.1 Setting the Operating Clock .................................................................................................................. 11 3.2 Installing the Crystal Oscillator ............................................................................................................ 12 3.3 Supplying a Clock from the Target System ........................................................................................ 14 CHAPTER 4 STARTUP ..................................................................................................................... 17 CHAPTER 5 DIFFERENCES BETWEEN THE IN-CIRCUIT EMULATOR AND THE TARGET DEVICE .................................................................................... 19 APPENDIX A PRODUCT SPECIFICATIONS .................................................................................. 23 APPENDIX B CN1 AND EMULATION PROBE PINS .................................................................. 25 APPENDIX C JUMPER SWITCH SETTINGS ................................................................................. 27 -i- [MEMO] CHAPTER 1 CHAPTER 1 GENERAL DESCRIPTION GENERAL DESCRIPTION The IE-784038-R-EM1 is the I/O emulation board for the µPD784038/ µPD784038Y subseries 16/8-bit single-chip microcontroller. The IE-784038-R-EM1 and emulation probe (EP-78230GC-R/EP-78054GK-R) can be used in combination with the IE-784000-R and IE-784000-R-EM for the efficient debugging and operational confirmation of systems using the µPD784038/µPD784038Y subseries of microcontrollers. 1.1 Characteristics The characteristics of the IE-784038-R-EM1 when combined with the IE-784000-R-EM and the IE-784000-R are as follows: (1) The peripheral functions (I/O ports, etc.) of the µPD784038/ µPD784038Y subseries devices can be emulated. (2) A CPU operation clock can be provided. 1.2 Packing List The IE-784038-R-EM1 board consists of the components indicated below. Be sure to check the content of the package. (1) One IE-784038-R-EM1 board (2) One user’s manual (this manual) Caution The dedicated devices (peripheral emulation devices) for emulating the peripheral functions (I/O ports, etc.) of the target device are on the IE-784038-R-EM1. 1 CHAPTER 1 GENERAL DESCRIPTION Figure 1-1. IE-784038-R-EM1 Board Configuration (1) IE-784038-R-EM1 Front Back 2 CHAPTER 1 GENERAL DESCRIPTION (2) User’s manual (this manual) USER’S MANUAL IE-784038-R-EM1 I/O EMULATION BOARD 00000000000000000 00000000000000000 1.3 Name of Components Table 1-1 shows the names of the components, for instance, the connectors. Table 1-1. IE-784038-R-EM1 Component Names Name Function CN1 Emulation probe connector PJ1 PJ2 Emulation board connector TGCN1 Not used TGCN2 IC9 Remark Peripheral emulation device mounting socket Emulation probe: EP-78230GC-R, EP-78054GK-R 3 CHAPTER 1 1.4 GENERAL DESCRIPTION Target Devices The following devices of the µPD784038/ µPD784038Y subseries can be emulated by using the IE-784000-R-EM and the IE-784000-R in combination with the IE-784038-R-EM1: 1.5 µPD784038 subseries µPD784038Y subseries • µPD784031 • µPD784031Y • µPD784035 • µPD784035Y • µPD784036 • µPD784036Y • µPD784037 • µPD784037Y • µPD784038 • µPD784038Y • µPD78P4038 • µPD78P4038Y Emulation Probe The emulation probe is sold separately. Part Number EP-78230GC-R (for 80-pin QFP : 14 × 14 mm) EP-78054GK-R (for 80-pin TQFP : 12 × 12 mm) 1.6 Precautions (1) Turn the IE-784000-R and the target system power supplies off when connecting or disconnecting the IE-784038R-EM1, IE-784000-R, IE-784000-R-EM or the target system. (2) Be aware that there are differences in the pin characteristics when the IE-784038-R-EM1 is connected to the IE-784000-R and IE-784000-R-EM to emulate the target device. (See the section concerning the differences with the target device in CHAPTER 5.) (3) Connect the IE-784038-R-EM1 appropriately to the IE-784000-R-EM. (4) Insert the IE-784000-R-EM appropriately in the IE-784000-R cabinet. 4 CHAPTER 2 CHAPTER 2 2.1 INSTALLATION PROCEDURES INSTALLATION PROCEDURES Insertion in the IE-784000-R Figure 2-1 shows a conceptual drawing for setting up the IE-784000-R. Figure 2-1. IE-784000-R Installation Emulation Probe IE-784000-R cover IE-784000-R-EM board (sold separately) IE-784038-R-EM1 IE-784000-R cabinet 5 CHAPTER 2 INSTALLATION PROCEDURES <1> Setting the user clock Refer to the section on the user clock setting in CHAPTER 3. <2> Jumper switch confirmation Confirm that the IE-784038-R-EM1 jumper switch is open by referring to the section on jumper switch settings in APPENDIX C. <3> Connecting the IE-784038-R-EM1 to the IE-784000-R-EM Connect the PJ1 and PJ2 connectors on the IE-784000-R-EM board to connectors PJ1 and PJ2 on the IE784038-R-EM1 board. Figure 2-2. Connecting IE-784038-R-EM1 and IE-784000-R-EM PJ1 IE-784038-R-EM1 PJ2 PJ1 IE-784000-R-EM PJ2 6 CHAPTER 2 INSTALLATION PROCEDURES <4> Removing the top cover Remove the six screws from the top of the cabinet shown in Figure 2-3. Then remove the top cover. Figure 2-3. Removing the Top Cover of the IE-784000-R <5> Insert the IE-784000-R-EM and the IE-784038-R-EM1 into the second and third slots (see Figure 2-4) of the IE-784000-R, respectively. Then, replace the top cover and tighten it down with the screws. Figure 2-4. Inserting the IE-784000-R-EM and IE-784038-R-EM1 Boards in the IE-784000-R IE-784000-R-BK (performance board) in the fourth slot IE-784000-R-EM in the second slot IE-784038-R-EM1 in the third slot Power switch IE-784000-R-BK (event tracing board) in the fifth slot Supervisor board (fixed) 7 CHAPTER 2 2.2 INSTALLATION PROCEDURES Connecting to the Target System To connect the IE-784000-R and the target system, use the EP-78230GC-R or EP-78054GK-R emulation probe, which is sold separately. Figure 2-5. Connecting the EP-78230GC-R to the Target System Grounding clip 80-pin GC Cut-out In-circuit emulator 41 21 40 External sensing clips 20 60 1 61 80 Target system 8 Conversion socket (EV-9200GC-80) CHAPTER 2 Figure 2-6. INSTALLATION PROCEDURES Connecting the EP-78054GK-R to the Target System Grounding clip 80-pin GK In-circuit emulator Cut-out External sensing clips 41 40 21 Conversion adapter (EV-9500GK-80) 60 20 61 80 1 Cut-out Target system 2.3 No Connection to the Target System The IE-784000-R can be started up even when it is not connected to the target system. 9 CHAPTER 2 [MEMO] 10 INSTALLATION PROCEDURES CHAPTER 3 CHAPTER 3 SETTING THE USER CLOCK SETTING THE USER CLOCK In the case of the IE-784000-R, as long as the settings of the clock are not changed, the dedicated clock on the IE-784038-R-EM1 board will be supplied to the emulation device. When operating with the target system oscillating clock or with an optional clock, the clock IC socket (IC3 OPCK) must be selected and the debugger must be used to select the user-selected clock. For the methods of making settings using the debugger, refer to the “ID78K/4 Integrated Debugger User’s Manual”. For operation with the target system oscillating clock or a clock with a user-specified frequency, refer to the appropriate sections in this chapter. 3.1 Setting the Operating Clock Using the IE-784000-R, the following operating clock settings are possible: (1) Operation with the dedicated clock on the IE-784038-R-EM1 board When the debugger is used to select the clock within the emulator, the dedicated clock (32 MHz) on the emulator board will be supplied to the emulation device. This mode is entered after the IE-784000-R power is turned on. (2) Operation with an optional clock on the IE-784038-R-EM1 board A crystal oscillator of the same frequency as the clock supplied to the target device is inserted in the clock IC socket (IC3 OPCK) on the IE-784038-R-EM1 board. Then, the debugger is used to select the user clock settings, and an optional clock that is determined by the oscillator in the clock IC socket is supplied to the emulation device. (A maximum 32-MHz crystal oscillator can be used.) For details, refer to “Installing the Crystal Oscillator” in 3.2. (3) Operation of the oscillating clock on the target system By inserting the 74HC04 CMOS IC in the clock IC socket (IC3 OPCK) on the emulation board and using the debugger to select user clock settings, the square-wave clock supplied from the target system will be supplied to the emulation device. For details, refer to “Supplying a Clock from the Target System” in 3.3. For connection information, refer to “INSTALLATION PROCEDURES” in CHAPTER 2. Caution It is prohibited to perform an emulation in which oscillation is obtained by directly connecting a crystal resonator or ceramic resonator into the X1 and X2 pins of the target device. When using a frequency other than 32 MHz, provide an oscillating frequency clock that is actually employed using the method in (2) above. 11 CHAPTER 3 3.2 SETTING THE USER CLOCK Installing the Crystal Oscillator ◊ Procedures: <1> Ready an IE-784038-R-EM1 board. <2> For shipment, the 74HC04 is inserted in the IE-784038-R-EM1 clock IC socket (IC3 OPCK). Remove it. <3> Install the crystal oscillator (max. 32 MHz) to the clock IC socket (IC3 OPCK) on the IE-784038-R-EM1. Insert the pins of the crystal oscillator into the clock IC socket as indicated in the table below. IC3 OPCK NC VCC GND CLOCK OUT [Crystal oscillator] 1 14 2 13 3 12 4 11 NC 1 5 10 GND 7 6 9 CLOCK OUT 8 7 8 VCC 14 Crystal Oscillator Pin Socket Pin Number [IC socket] Figure 3-1. Clock IC Location on the IE-784038-R-EM1 Board 12 CHAPTER 3 SETTING THE USER CLOCK When the user clock setting is selected using the debugger, the following circuit will be formed and a clock will be supplied from the crystal oscillator to the emulation device in the IE-784000-R-EM. Figure 3-2. IE-784038-R-EM1 Clock Supply Diagram VCC 4.7 k Filter Clock in the IE-784038-R-EM1 clock IC socket VHC244 Selector ALS157 CLOCK IN (to emulation device) 13 CHAPTER 3 3.3 SETTING THE USER CLOCK Supplying a Clock from the Target System The 74HC04 CMOS IC is inserted in the IE-784038-R-EM1 clock IC socket (IC3 OPCK) for shipment. If the user clock setting is selected using the debugger, the following circuit will be formed and a clock will be supplied from the target system to the IE-784000-R-EM emulation devices. Figure 3-3. IE-784038-R-EM1 Clock Supply Diagram LVCC VCC 4.7 kΩ Target system ×1 (to target clock) AC04 VCC 4.7 kΩ 4.7 kΩ Filter Selector AS04 × 2 HC04 ALS157 CLOCK IN (to emulation device) VHC244 Caution A clock cannot be supplied from a crystal resonator or a ceramic resonator that is connected to the X1 and X2 pins of the target system. If the 74HC04 is removed for some reason, such as a change in the operating clock, make the setting as indicated below: ◊ Procedures: <1> Ready an IE-784038-R-EM1. <2> Insert a 74HC04 in the IE-784038-R-EM1 clock IC socket (IC3 OPCK) paying close attention so that the number 1 pin marks match. IC3 OPCK 1 14 1 14 2 13 2 13 3 12 3 12 4 11 4 11 5 10 5 10 6 9 6 9 7 8 7 8 [74HC04] 14 [IC socket] CHAPTER 3 SETTING THE USER CLOCK Figure 3-4. Clock IC Location on the IE-784038-R-EM1 Board JAPAN D74HC04 15 CHAPTER 3 [MEMO] 16 SETTING THE USER CLOCK CHAPTER 4 CHAPTER 4 STARTUP STARTUP As for the method of startup, after connecting the board to the host computer, refer to the “ID78K4 Integrated Debugger User’s Manual”. If the startup does not go well, make confirmation by referring to this document or the IE-784000-R User’s Manual. 17 CHAPTER 4 [MEMO] 18 STARTUP CHAPTER 5 DIFFERENCES BETWEEN THE IN-CIRCUIT EMULATOR AND THE TARGET DEVICE CHAPTER 5 DIFFERENCES BETWEEN THE IN-CIRCUIT EMULATOR AND THE TARGET DEVICE Because this in-circuit emulator emulates through the emulation CPU and the peripheral emulation devices, there are differences in pin characteristics. 19 CHAPTER 5 DIFFERENCES BETWEEN THE IN-CIRCUIT EMULATOR AND THE TARGET DEVICE Figure 5-1. Equivalent Circuits of the Port Pin Emulation Circuits (1 of 3) IE-784038-R-EM1 side (emulation device) Probe side (target system) 27 Ω P00 P00 ··· ··· 1 MΩ P07 P07 27 Ω P10 P10 ··· ··· 1 MΩ P17 P17 PAL 27 Ω P20 Q D P20 1 MΩ NMI MASK1 Emulation board 27 Ω P21 P21 P27 ··· ··· 1 MΩ P27 27 Ω P30 P30 P37 ··· ··· 1 MΩ P37 27 Ω P40 P40 P47 ··· ··· 1 MΩ P47 27 Ω P50 20 1 MΩ ··· ··· P57 P50 P57 CHAPTER 5 DIFFERENCES BETWEEN THE IN-CIRCUIT EMULATOR AND THE TARGET DEVICE Figure 5-1. Equivalent Circuits of the Port Pin Emulation Circuits (2 of 3) IE-784038-R-EM1 side (emulation device) Probe side (target system) 27 Ω P60 P60 ··· ··· 1 MΩ P67 P67 P70 P70 ··· ··· P77 VCC ALS157 1/2 4.7 kΩ P77 VCC ALS157 4.7 kΩ Selector Selector CKIN 32 MHz VHC244 VCC Filter OPCK AS04 × 2 LVCC 4.7 kΩ 4.7 kΩ X1 HC04 or clock module (socket mounted) AS04 × 2 AC04 X2 27 Ω ASTB ASTB 21 CHAPTER 5 DIFFERENCES BETWEEN THE IN-CIRCUIT EMULATOR AND THE TARGET DEVICE Figure 5-1. Equivalent Circuits of the Port Pin Emulation Circuits (3 of 3) IE-784038-R-EM1 side (emulation device) Probe side (target system) Regulator AVDD NC VDD VDD AVSS AVSS AVREF1 AVREF2 AVREF3 AVREF1 AVREF2 AVREF3 TEST OPEN ANO0 ANO1 TEST ANO0 ANO1 VSS VSS VCC 4.7 kΩ VHC244 ACT244 LVCC AS244 HC125 4.7 kΩ RESET RESET MACH Mask signal RESET MASK1 22 AVDD 27 Ω APPENDIX A APPENDIX A PRODUCT SPECIFICATIONS PRODUCT SPECIFICATIONS Part number : IE-784038-R-EM1 Operating temperature : 10°C to 40°C (without condensation) Humidity : 10% to 80% (without condensation) Storage temperature : –15°C to +45°C (without condensation) Power supply : +3.0 V to +5.5 V (supplied from the IE-784000-R) Printed circuit board dimensions : 305 mm × 149 mm Connectors : PJ1 Emulation board connector PJ2 CN1 Emulation probe connector 23 APPENDIX A [MEMO] 24 PRODUCT SPECIFICATIONS APPENDIX B APPENDIX B CN1 AND EMULATION PROBE PINS CN1 AND EMULATION PROBE PINS The following table shows the correspondence between CN1 and emulation probe pins. Table B-1. CN1 and Emulation Probe (EP-78230GC-R/EP-78054GK-R) Pin Correspondence CN1 Pin No. Emulation probe CN1 Pin No. Emulation probe CN1 Pin No. Emulation probe CN1 Pin No. Emulation probe 1 GND 25 15 49 34 73 61 2 GND 26 16 50 33 74 NC 3 EXT0 27 17 51 32 75 NC 4 EXT1 28 18 52 31 76 70 5 EXT2 29 19 53 41 77 69 6 EXT3 30 20 54 42 78 68 7 EXT4 31 21 55 43 79 67 8 EXT5 32 NC 56 44 80 66 9 EXT6 33 NC 57 45 81 65 10 EXT7 34 30 58 46 82 64 11 1 35 29 59 47 83 63 12 2 36 28 60 48 84 62 13 3 37 27 61 49 85 80 14 4 38 26 62 50 86 79 15 5 39 25 63 51 87 78 16 6 40 24 64 52 88 77 17 7 41 23 65 53 89 76 18 8 42 22 66 54 90 75 19 9 43 40 67 55 91 74 20 10 44 39 68 56 92 73 21 11 45 38 69 57 93 72 22 12 46 37 70 58 94 71 23 13 47 36 71 59 95 GND 24 14 48 35 72 60 96 GND 25 APPENDIX B [MEMO] 26 CN1 AND EMULATION PROBE PINS APPENDIX C APPENDIX C JUMPER SWITCH SETTINGS JUMPER SWITCH SETTINGS Set the jumper switch leaving open. IE-784038-R-EM1 SHORT OPEN 4026 4038 27 APPENDIX C [MEMO] 28 JUMPER SWITCH SETTINGS Facsimile Message From: Name Company Tel. Although NEC has taken all possible steps to ensure that the documentation supplied to our customers is complete, bug free and up-to-date, we readily accept that errors may occur. Despite all the care and precautions we've taken, you may encounter problems in the documentation. Please complete this form whenever you'd like to report errors or suggest improvements to us. FAX Address Thank you for your kind support. North America Hong Kong, Philippines, Oceania NEC Electronics Inc. NEC Electronics Hong Kong Ltd. Corporate Communications Dept. Fax: +852-2886-9022/9044 Fax: 1-800-729-9288 Asian Nations except Philippines NEC Electronics Singapore Pte. Ltd. Fax: +65-250-3583 Europe NEC Electronics (Europe) GmbH Technical Documentation Dept. Fax: +49-211-6503-274 Korea NEC Electronics Hong Kong Ltd. Seoul Branch Fax: 02-551-0451 Japan NEC Corporation Semiconductor Solution Engineering Division Technical Information Support Dept. Fax: 044-548-7900 South America NEC do Brasil S.A. Fax: +55-11-889-1689 Taiwan NEC Electronics Taiwan Ltd. Fax: 02-719-5951 I would like to report the following error/make the following suggestion: Document title: Document number: Page number: If possible, please fax the referenced page or drawing. Document Rating Excellent Good Acceptable Poor Clarity Technical Accuracy Organization CS 95.12