Renesas QB-78K0KX1H-DA User Manual
Renesas QB-78K0KX1H-DA User Manual

Renesas QB-78K0KX1H-DA User Manual

On-chip debug emulator

Advertisement

Quick Links

To our customers,
st
On April 1
, 2010, NEC Electronics Corporation merged with Renesas Technology
Corporation, and Renesas Electronics Corporation took over all the business of both
companies. Therefore, although the old company name remains in this document, it is a valid
Renesas Electronics document. We appreciate your understanding.
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
Send any inquiries to http://www.renesas.com/inquiry.
Note that the following URLs in this document are not available:
http://www.necel.com/
http://www2.renesas.com/
Please refer to the following instead:
Development Tools | http://www.renesas.com/tools
Download | http://www.renesas.com/tool_download
For any inquiries or feedback, please contact your region.
http://www.renesas.com/inquiry
Old Company Name in Catalogs and Other Documents
Renesas Electronics website: http://www.renesas.com
st
April 1
, 2010
Renesas Electronics Corporation

Advertisement

Table of Contents
loading

Summary of Contents for Renesas QB-78K0KX1H-DA

  • Page 1 On April 1 , 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the old company name remains in this document, it is a valid Renesas Electronics document. We appreciate your understanding.
  • Page 2 Renesas Electronics. Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as “Specific”...
  • Page 3 User’s Manual QB-78K0MINI On-Chip Debug Emulator Document No. U17029EJ3V0UM00 (3rd edition) Date Published March 2005 NS CP(K) 2004 Printed in Japan...
  • Page 4 [MEMO] User’s Manual U17029EJ3V0UM...
  • Page 5 MINICUBE is a trademark of NEC Electronics Corporation. Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. PC/AT is a trademark of International Business Machines Corporation. • The information in this document is current as of March, 2005. The information is subject to change without notice.
  • Page 6 GENERAL PRECAUTIONS FOR HANDLING THIS PRODUCT 1. Circumstances not covered by product guarantee • If the product was disassembled, altered, or repaired by the customer • If it was dropped, broken, or given another strong shock • Use at overvoltage, use outside guaranteed temperature range, storing outside guaranteed temperature range •...
  • Page 7 INTRODUCTION Readers This manual is intended for engineers who will use the QB-78K0MINI for debugging. Engineers who read this manual are assumed to be familiar with device functions and uses and to have knowledge about debugging. Purpose This manual is intended to give users an understanding of the basic specifications of the QB-78K0MINI.
  • Page 8 The related documents indicated in this publication may include preliminary versions. However, preliminary versions are not marked as such. Documents related to development tools (user’s manuals) Document Name Document No. QB-78K0MINI On-Chip Debug Emulator This manual QB-78K0KX1H-DA Debagging Adapter for QB-78K0MINI U17402E RA78K0 Assembler Package Ver.3.80 Operation U17199E Language U17198E...
  • Page 9: Table Of Contents

    CONTENTS CHAPTER 1 GENERAL ..........................8 1.1 Features............................8 1.2 Functional Specifications......................9 1.3 System Configuration ........................11 1.4 Contents in Carton ........................14 CHAPTER 2 NAMES OF PARTS......................15 2.1 Names of Parts in Main Unit......................15 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS ..............17 3.1 Hardware ............................
  • Page 10: Chapter 1 General

    CHAPTER 1 GENERAL The QB-78K0MINI is an emulator that connects to a target device that includes an on-chip debug unit and is used to efficiently debug both hardware and software. 1.1 Features Enables general-purpose use on any microcontroller that includes a 78K/0 Series on-chip debug unit Enables debugging when mounted on a microcontroller installed on a system under development Communication method uses X1 and X2 (also enables communications that use port pins other than X1 and Uses flash self-programming function to enable downloading of programs to flash memory...
  • Page 11: Functional Specifications

    CHAPTER 1 GENERAL 1.2 Functional Specifications Table 1-1. Product Specifications Item Specification Operating power supply 5 V power supply via USB cable Maximum current consumption: 500 mA Since the maximum current consumption is 500 mA, be sure to use a self-powered hub when using a USB hub.
  • Page 12 CHAPTER 1 GENERAL Notes 1. The minimum operating frequency and minimum operating voltage for rewriting the flash memory are determined for each device. When using the 78K0/Kx1+, for example, at least a clock of 2 MHz and an operating voltage of 2.7 V must be supplied. 2.
  • Page 13: System Configuration

    CHAPTER 1 GENERAL 1.3 System Configuration Three possible system configurations when using the QB-78K0MINI are shown below. Figure 1-2. System Configuration 1 <1> Target device <5> <4> <2> <6> Target system <3> <7> <8> Remark <1> Host machine (equipped with USB port) <2>...
  • Page 14 <2> USB interface cable (Mini B ←→ A: supplied with this product) <3> QB-78K0MINI (this product) <4> Connection cable for QB-78K0MINI (supplied with this product) <5> QB-78K0KX1H-DA (sold separately) (78K0/KF1+ device that includes an on-chip debug macro) Note 1 Note 1 <6>...
  • Page 15 CHAPTER 1 GENERAL Figure 1-4. System Configuration 3 <1> Target device (78K0/KF1+) <4> <2> <5> Self-check board <3> (power supplied via cable) <6> <7> Remark <1> Host machine (equipped with USB port) <2> USB interface cable (Mini B ←→ A: supplied with this product) <3>...
  • Page 16: Contents In Carton

    CHAPTER 1 GENERAL 1.4 Contents in Carton The following packaging is used with the QB-78K0MINI. Make sure all of these items are included. If any items are missing or damaged, please contact an NEC Electronics sales representative or a distributor. Also, be sure to fill out and return enclosed user registration form.
  • Page 17: Chapter 2 Names Of Parts

    CHAPTER 2 NAMES OF PARTS This chapter provides the names of the QB-78K0MINI's parts. 2.1 Names of Parts in Main Unit Figure 2-1. Main Unit (Top View) Screw Figure 2-2. Main Unit (Side Views) (a) Left side (b) Right side Screw USB connector Interface connector for QB-78K0MINI...
  • Page 18 CHAPTER 2 NAMES OF PARTS Figure 2-3. External View of Board CLK1 USB1 LED1 LED2 LED3 User’s Manual U17029EJ3V0UM...
  • Page 19: Chapter 3 Hardware Settings And Functions

    CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS In order to connect the QB-78K0MINI to the target system for debugging, a circuit for connecting the QB-78K0MINI to the target system must be created. For details, see the target device’s user’s manual. Remark Since the environment used for on-chip debugging is the same as the actual debugging environment, debugging is performed with the microcontroller installed in a system.
  • Page 20: Hardware

    CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3.1 Hardware 3.1.1 USB connector A USB2.0 compliant MINI-B type connector (UX60A-MB-5ST: Hirose Electric Co., Ltd.) is used. 3.1.2 Clock socket for target device For clock supply to the target device, a 14-pin DIP socket is implemented as CLK1. A 14-pin type oscillator (5 V) or a parts board that can configure an oscillation circuit can be mounted on the 14-pin DIP socket.
  • Page 21: Connectors For Qb-78K0Mini

    CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS (e) Parts board mounted in CLK1 socket 3.1.3 Connectors for QB-78K0MINI The QB-78K0MINI’s connector CN1 (a two-row 2.54 pitch type connector, with reverse-insertion blocker) is described below. Note Pin No. Name IN/OUT Remark RESET_IN Target reset input RESET_OUT Target CPU reset output...
  • Page 22: Display Devices

    CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3.1.5 Display devices Three LEDs are included as status display devices. Name Display Function Remark LED1 STATUS RUN: Blinking (slow) (RUN, BREAK, DOWNLOAD) After break or debugger start: ON DOWNLOAD: Blinking (fast) Before starting debugger: OFF LED2 TARGET Before starting...
  • Page 23: Qb-78K0Mini Equivalent Circuit

    CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3.2.1 QB-78K0MINI equivalent circuit Figure 3-1. Equivalent Circuit • Supervisor side • QB78K0MINI side Note 74VHC125 RESET_OUT RESET_IN 74LV07 1 kΩ 100 kΩ PULL UP 3.3 kΩ 3.3 V 1 kΩ PULL UP 74LV07 Jumper Note 74VHC125...
  • Page 24: Target Reset Processing

    CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3.3 Target Reset Processing The target reset processing differs depending on whether or not this product is connected to the target device. Both types of processing are described below. (1) When using jumper (a) With QB-78K0MINI Connect using the connection cable for QB-78K0MINI.
  • Page 25 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS (3) When using resistors (auto switch) Figure 3-4. When Using Resistors Target device RESET_OUT RESET 1 kΩ Note RESET_IN Reset circuit Note Be sure to insert a buffer when connecting via resistors. In particular, if a power-on reset circuit is connected directly, the time constant may become invalid due to RESET_OUT output from the QB- 78K0MINI, in which case a lack of drive capacity in the circuit where the reset occurs may prevent proper detection of the reset.
  • Page 26: Target Connectors

    CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3.4 Target Connectors The QB-78K0MINI’s target connector (a two-row 2.54 pitch type connector, with reverse-insertion blocker) is described below. Pins 9 and 10 should be left open on the target. • Recommended connectors: (straight) HIF3FC-10PA-2.54DSA (manufactured by Hirose Electric Co., Ltd.) (right angle) HIF3FC-10PA-2.54DS (manufactured by Hirose Electric Co., Ltd.)) Pin No.
  • Page 27: Connection Circuit Examples

    CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3.5 Connection Circuit Examples The following are examples of circuits required when connecting the QB-78K0MINI to the target system. For details, see the target device’s user’s manual. Figure 3-6. Connection Circuit Example (When QB-78K0MINI Is Not Used) Target device QB-78K0MINI target connector Shorted by jumper...
  • Page 28 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS Note 1 Figure 3-8. Connection Circuit Example (When Using QB-78K0MINI: Ports A and B Are Used) Target device QB-78K0MINI target connector FLMD0 FLMD0 Note 2 Target reset RESET IN RESET RESET OUT Note 3 Note 2 Note 3 Notes 1.
  • Page 29: Connections And Startup Procedure

    CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3.6 Connections and Startup Procedure 3.6.1 Mounting clock The following describes mounting the clock to be supplied to the target system in the QB-78K0MINI. (1) Loosen the QB-78K0MINI’s screw. (2) Remove the cover. Use the interface connector side as a reference point when lifting the USB connector side. User’s Manual U17029EJ3V0UM...
  • Page 30 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS The product appears as shown below when the cover has been removed. Clock socket (3) Insert an oscillator or oscillation circuit. Insert an oscillator or oscillation circuit for the clock to be supplied to the target system into the clock socket. User’s Manual U17029EJ3V0UM...
  • Page 31 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS (4) Replace the cover. Make sure that the cover is aligned with the two tabs on the interface connector side. Tabs (5) Close the cover and tighten the screw. This completes the clock mounting procedure. User’s Manual U17029EJ3V0UM...
  • Page 32: Connecting Qb-78K0Mini To Related Devices

    CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3.6.2 Connecting QB-78K0MINI to related devices Follow the steps described below when connecting the QB-78K0MINI to other related devices. Caution Before connecting to any related device, be sure to install the integrated debugger (ID78K0-QB), USB driver, OCD Checker, and device files in the host machine.
  • Page 33 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS (2) Attach the QB-78K0MINI connection cable (self-check board or target system side) Align the ridge in the QB-78K0MINI connection cable’s socket with the groove in the target connector on the self-check board or target system side for preventing reverse insertion and insert the socket into the connector. Groove to prevent reverse insertion Ridge to prevent...
  • Page 34 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS (3) USB interface cable connection (QB-78K0MINI side) Connect the USB interface cable’s MINI-B connector to the QB-78K0MINI’s USB connector. MINI-B connector User’s Manual U17029EJ3V0UM...
  • Page 35 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS (4) USB interface cable connection (host machine side) Connect the USB interface cable’s A connector to the host machine’s USB port. A connector side User’s Manual U17029EJ3V0UM...
  • Page 36 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS (5) Power-on (a) When using a self-check board After connecting the USB interface cable to the host machine, turn on the power to the QB-78K0MINI and the self-check board (the QB-78K0MINI’s TARGET and POWER LEDs are ON and the self-check board’s LED1 is ON).
  • Page 37 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS (b) When using a target system When the USB interface cable is connected to the host machine, only the QB-78K0MINI’s POWER LED is ON (the QB-78K0MINI’s power is ON and the target system’s power is OFF). When turning on the power to the target system, POWER LED is ON (the QB-78K0MINI’s power is ON and the target system’s power is ON).
  • Page 38: Disconnecting Qb-78K0Mini From Related Devices

    CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3.6.3 Disconnecting QB-78K0MINI from related devices Follow the steps described below when disconnecting the QB-78K0MINI from other related devices. (1) Close the ID78K0-QB. (2) Turn off the power to the target system (if using a target system). (3) Remove the USB interface cable from the QB-78K0MINI and the host machine.
  • Page 39: Cautions On Creating Target System

    CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3.8 Cautions on Creating Target System Be sure to note the following cautions when creating the target system. • Do not place X1 and X2 next to each other on the target board. If the layout requires this, they should be made as short as possible.
  • Page 40: Chapter 4 Cautions On Use Of Self-Check Board

    CHAPTER 4 CAUTIONS ON USE OF SELF-CHECK BOARD 4.1 Functions of Self-check Board (1) Self check The OCD Checker can be used to perform self checking of the QB-78K0MINI. (2) Operation check Start the integrated debugger and download the user program, then check the operation. When checking operation in this way, be sure to refer to the self-check board circuit diagram shown in Figure 4-1.
  • Page 41 CHAPTER 4 CAUTIONS ON USE OF SELF-CHECK BOARD Figure 4-1. Circuit Diagram of Self-check Board User’s Manual U17029EJ3V0UM...
  • Page 42: Self-Check Board Recovery

    CHAPTER 4 CAUTIONS ON USE OF SELF-CHECK BOARD 4.2 Self-check Board Recovery Perform the following steps to recover in cases where the integrated debugger or the OCD Checker operate abnormally, such as when the self-check board’s embedded ID code is uncertain, or when an area (at address 0x84) reserved for use by the QB-78K0MINI has been set as a use-prohibited area.
  • Page 43 CHAPTER 4 CAUTIONS ON USE OF SELF-CHECK BOARD (2) Enter the settings for the flash programmer. Figure 4-3. Example of Settings for PG-FP4 (3) Perform a chip erase operation. User’s Manual U17029EJ3V0UM...
  • Page 44: Chapter 5 Restrictions

    CHAPTER 5 RESTRICTIONS The restrictions are described below. A delay period of about 50 µs from cancellation of a target reset (RESET_IN) to cancellation of a target device reset (RESET_OUT) (the period from when the target reset (RESET_IN) becomes low to when the target device reset (RESET_OUT) becomes high) is required for mode setting.
  • Page 45 CHAPTER 5 RESTRICTIONS Note Restriction on using the self-check board (1.0) for operation check. • There is a communication problem due to a bug in the microcontroller mounted on the self-check board when the QB-78K0MINI operates on the Ring-OSC. The debugger takes a measure to avoid this problem by forcibly switching to the main clock when a break occurs, and re-switches to the Ring-OSC when the program is executed.
  • Page 46: Chapter 6 Cautions

    CHAPTER 6 CAUTIONS 6.1 Cautions When On-chip Debug (1) Reserved area used by QB-78K0MINI The following reserved areas are used by QB-78K0MINI. (a) Flash memory area Addresses 0x02 and 0x03 Addresses 0x7E and 0x7F (when using a software break) Address 0x84 Addresses 0x85 to 0x8E Addresses 0x8F to 0x18F: Standard value of program (+256 bytes when using pseudo real-time RAM monitor function)
  • Page 47 CHAPTER 6 CAUTIONS (4) Values at address 0x7E and 0x7F Use the areas at addresses 0x7E and 0x7F for setting a software break. Refer to the program example shown below and secure those areas so that they are not used by the user program. Example: When securing address 0x7E to 0x7F CSEG 07EH;...
  • Page 48 CHAPTER 6 CAUTIONS (9) Overwriting flash memory during on-chip debugging If the following operations are performed during on-chip debugging, the flash memory in the device is overwritten. <1> Manipulation in Download dialog box <2> Manipulation in Memory Fill dialog box <3>...
  • Page 49 CHAPTER 6 CAUTIONS MOV PFCMD,#0A5H MOV FLPMC,#1H ← <1> MOV FLPMC,#0FEH MOV FLPMC,#1H ----------------------- From this position ← <2> ↑ CALL !08100H MOV PFCMD,#0A5H MOV FLPMC,#0H Mode A1 MOV FLPMC,#0FFH MOV FLPMC,#0H ← <3> ↓ ----------------------- To this position The section between <2> and <3> is in self programming mode A1 (including A2). Step execution or a break by STOP or a breakpoint cannot be performed by the debugger in this section.
  • Page 50 CHAPTER 6 CAUTIONS (17) Software break If the debugger does not terminate normally due to a factor such as a freeze while a software break is set, the instruction for which the software break is set and that has been substituted by a debug instruction remains as is. To avoid this, select “Object”...
  • Page 51 CHAPTER 6 CAUTIONS RRM Point Break Processing Time Total interrupt Pending Time MAX. Interrupt Pending Time µ µ µ 2 bytes 106 + 19 + (35 + 19) x 2 = 233 40 + 8 + 19 + (35 + 19) x 2 = 175 µ...
  • Page 52: Caution On Option Byte

    CHAPTER 6 CAUTIONS 6.2 Caution on Option Byte Emulation of the option byte which is assigned to addresses 0x80 to 0x83 (refer to the user’s manual of the device used for the address and function) is performed as follows. When QB-78K0MINI is connected: The option byte setting reflected in emulation.
  • Page 53: Appendix A On-Chip Flash Memory Security Functions

    APPENDIX A ON-CHIP FLASH MEMORY SECURITY FUNCTIONS Microcontrollers that include flash memory include an authentication function that reads an embedded 10-byte ID code as a security measure against unauthorized access to flash memory. This ID code’s specifications are described below. Be sure to write the ID code to on-chip flash memory according to these specifications.
  • Page 54: Appendix B Revision History

    APPENDIX B REVISION HISTORY The revision history is shown below. Applicable Chapter refers to the chapter in each version. Version Revised Points Applicable Chapter Second Change of Figure 1-1 External Dimensions of QB-78K0MINI CHAPTER 1 GENERAL Table 1-1 Product Specifications Addition and change of description 1.3 System Configuration Addition and change of description Addition of Figure 1-5 Package Contents <7>...

This manual is also suitable for:

Qb-78k0miniQb-78k0mini-kf2Qb78k0miniee

Table of Contents