M16C APPLICATION NOTE. Target Setup for the In-Circuit Debugger. 1.0 Abstract. 2.0 Introduction

Similar documents
M16C APPLICATION NOTE. Firmware Requirements for In-Circuit Debugger. 1.0 Abstract. 2.0 Introduction

M16C/62 APPLICATION NOTE. Programming the M16C/62 in Flash Parallel Mode. 1.0 Abstract. 2.0 Introduction. 3.0 Setting Up the PGM1000 Programmer

This function allows the user to erase any Flash block within the MCU including the near area memory (below address 0xFFFF).

Applications Engineering!"!"

M16C/26 APPLICATION NOTE. Using the DMAC with a Forward Source. 1.0 Abstract. 2.0 Introduction

M16C/62 APPLICATION NOTE. Using the M16C/62 CRC. 1.0 Abstract. 2.0 Introduction. 3.0 A Lesson in CRC and the CCITT Polynomial

M16C/60 Series and M16C/20 Series

M16C/26 APPLICATION NOTE. Using Timer B in Pulse Period/Width Measurement Mode. 1.0 Abstract. 2.0 Introduction

M16C/62 APPLICATION NOTE. Using the M16C/62 DMAC in Forward Source Mode. 1.0 Abstract. 2.0 Introduction

The following article describes how to use the M16C/62 timers A s as square wave generators (Pulse Output Mode).

M16C/26 APPLICATION NOTE. Measuring Computation Time of a Function Call. 1.0 Abstract. 2.0 Introduction. 3.0 Number of Function Call Returns

In repeat transfer mode of DMAC, choose functions from those listed in Table 1. Operations of the checked items are described below.

M16C/26 APPLICATION NOTE. Using the M16C/26 Timer in Event Counter Mode. 1.0 Abstract. 2.0 Introduction

H8SX Family APPLICATION NOTE. Vector Table Address Switching. Introduction. Target Devices. Contents

The following article introduces and shows an example of how to set up and use the watchdog timer on the M16C/26 microcontroller (MCU).

M16C/62 Group APPLICATION NOTE. Signed 32 Bit Multiplication Library. 1. Abstract. 2. Introduction

Multi-Bit Shift of 32-Bit Data (Arithmetic Right Shift)

M16C R8C FoUSB/UART Debugger. User Manual REJ10J

APPLICATION NOTE R8C, M16C, M32C

M16C R8C FoUSB/UART Debugger. User s Manual REJ10J

Renesas LIN Overview. White paper REU05B Introduction

This application note describes the time measurement function of Timer S with the gate function.

M16C/26 APPLICATION NOTE. Implementing Real Time Clock and WAIT Mode. 1.0 Abstract. 2.0 Introduction. 3.0 Real-Time Clock Setup and Implementation

This document describes how to set up and use the timer RA in timer mode on the R8C/25 Group device.

1. Specifications Functions Used Operation Software Flowcharts Program Listing... 13

Interrupt Level Setting and Modification by Interrupt Controller

Silicon Epitaxial Planar Zener Diode for Stabilized Power Supply. Type No. Mark Package Code HZS Series Type No. MHD B 7

M16C/62 APPLICATION NOTE. Using the Expanded Memory Mode with the M16C/ Abstract. 2.0 Introduction. 3.0 Memory Expansion Mode

M16C/26 APPLICATION NOTE. Interfacing with 1-Wire Devices. 1.0 Abstract. 2.0 Introduction Wire Interface. 3.1 Hardware

SH7080/SH7146/SH7125/SH7200 Series

M16C/Tiny Series APPLICATION NOTE. Operation of Timer A. (2-Phase Pulse Signal Process in Event Counter Mode, Multiply-by-4 Mode) 1.

VLA HYBRID IC ISOLATED TYPE DC-DC CONVERTER DESCRIPTION OUTLINE DRAWING FEATURES APPLICATIONS BLOCK DIAGRAM. +Vo +V IN.

M32C/84 Group APPLICATION NOTE. Operation of Key-Input Interrupt. 1. Abstract. 2. Introduction

This document describes how to set up and use the timer RB in programmable one-shot generation mode on the R8C/25 Group device.

Regarding the change of names mentioned in the document, such as Hitachi Electric and Hitachi XX, to Renesas Technology Corp.

M32C/84 Group APPLICATION NOTE. Operation of timer A (2-phase pulse signal process in event counter mode, normal mode selected) 1.

RTE/L Return from Exception Handling with Data Restoration

32176 Group APPLICATION NOTE. Application of the CAN Module (Remote Frame Transmission) 1. Overview. 2. Introduction

Regarding the change of names mentioned in the document, such as Hitachi Electric and Hitachi XX, to Renesas Technology Corp.

Old Company Name in Catalogs and Other Documents

1. Specifications Operational Overview of Functions Used Principles of Operation Description of Software...

Single Power Supply F-ZTAT On-Board Programming

SH7144/45 Group APPLICATION NOTE. 2-Phase Encoder Count. 1. Specifications

VLA A HYBRID IC ISOLATED TYPE DC-DC CONVERTER DESCRIPTION FEATURES BLOCK DIAGRAM

Old Company Name in Catalogs and Other Documents

Regarding the change of names mentioned in the document, such as Hitachi Electric and Hitachi XX, to Renesas Technology Corp.

1. Specifications Conditions for Application Description of Modules Used Description of Operation... 7

Application Note [AN-006] Liquid Crystal Display (LCD) Construction Methods

SKP16C26 Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

Old Company Name in Catalogs and Other Documents

Old Company Name in Catalogs and Other Documents

Old Company Name in Catalogs and Other Documents

RTA-FoUSB-MON. Target Board Circuit Example USB Driver Installation Version Update Information

Regarding the change of names mentioned in the document, such as Hitachi Electric and Hitachi XX, to Renesas Technology Corp.

M37544 StarterKit. User s Manual REJ10J Z. RENESAS SINGLE-CHIP MICROCOMPUTER 740 Family 740 Series. Rev.1.00 Revision Date : Nov 26, 2004

M16C/62 APPLICATION NOTE. Using the M16C/62 Power Saving Modes. 1.0 Abstract. 2.0 Introduction. 3.0 Power Conservation: Introduction

A pplications Engineering. Powerful Processors Easy to Use SKP16C26. User's M anual. Rev. 1.0 December w w w.renesas.com

R8C/Tiny. StarterKit Plus SKP8CMINI-15, SKP8CMINI-17. Clock Stop Detect

Preliminary USERS MANUAL Ver. 1.0

Old Company Name in Catalogs and Other Documents

A pplications Engineering. Powerful Processors Easy to Use. SKP8CMini-13. User's M anual. Rev. 1.0 October w w w.renesas.com

OUTLINE DRAWING. ABSOLUTE MAXIMUM RATINGS (Tc=25 C UNLESS OTHERWISE NOTED)

E1/E20 Emulator Additional Document for User s Manual (RX User System Design)

S3 Flash In-System Programmer

SKP16C62P Tutorial 2 Creating A New Project Using TM. Renesas Technology America Inc.

1. Specifications Applicable Conditions Operational Overview of Functions Used Principles of Operation...

( 2 / 26 ) * TR4943, R4945 and R4945A are trademarks of Advantest Corporation.

F-ZTAT Microcomputer On-Board Programming

M32C/84, 85, 86, 87, 88 Group

P&E Microcomputer Systems, Inc. P.O. Box 2044, Woburn, MA 01888, USA

< Silicon RF Power MOS FET (Discrete) > RD04LUS2

Old Company Name in Catalogs and Other Documents

User s Manual. BNS Solutions. QSK62P Plus Quick-Start Kit. BNS Learning. Revision 1.0. BNS Solutions. page 1

M16C/62P QSK QSK62P Plus Tutorial 1. Software Development Process using HEW4

HOW TO MAKE PRPGRAMMING ON TARGET BOARD

ATtiny104 Xplained Nano. Preface. AVR 8-bit Microcontrollers USER GUIDE

Renesas E8 On-Chip Debugging Emulator

Operation of Timer A (2-phase pulse signal process in event counter mode, multiply-by-4 processing operation)

M3H Group(1) Application Note. I 2 C Interface (I2C-B) MASTER/SLAVE

M32C/84, 85, 86, 87, 88 Group

F2MC MB90385 series Evaluation Board Documentation. Revision Date Comment V New document

Purchase Agreement. P&E Microcomputer Systems, Inc. P.O. Box 2044 Woburn, MA Manual version 1.

Purchase Agreement. P&E Microcomputer Systems, Inc. P.O. Box 2044 Woburn, MA Manual version 1.

ez80f91 Modular Development Kit

M3H Group(1) Application Note I 2 C Interface (I2C-B)

STAND-ALONE PROGRAMMER

This document describes a program for timer RA in pulse period measurement mode.

Old Company Name in Catalogs and Other Documents

In timer mode, choose functions from those listed in Table 1. Operations of the circled items are described below.

New 8FX Family 8-bit MICROCONTROLLER BGM ADAPTOR MB E OPERATION MANUAL

BGM Adaptor MB E Operation Manual. 8FX Family 8-bit Microcontroller. Doc. # Rev. *A

SPI Overview and Operation

USB-to-I2C Basic. Hardware User s Manual.

TABLE 1: PACKAGE LIST. XRA1402IL16-F 16-pin QFN U7. XRA1402IG16-F 16-pin TSSOP U6. XRA1404IL16-F 16-pin QFN U7. XRA1404IG16-F 16-pin TSSOP U6

This document describes a program for timer RF in pulse width measurement mode.

M16C/26 APPLICATION NOTE. C Compiler Startup Files. 1.0 Abstract. 2.0 Introduction 3.0 NCRT0.A SECT30.INC

M3H Group(2) Application Note Asynchronous Serial Communication Circuit (UART-C)

UnRegistered MB39C602 LED LIGHTING SYSTEM BULB 9W ZIGBEE CONTROL USER MANUAL. Fujitsu Semiconductor Design (Chengdu) Co. Ltd.

FEBL620Q504H_RB-01. ML620Q504H Reference Board User s Manual

XR21B1411 USER S MANUAL

Transcription:

APPLICATION NOTE MC.0 Abstract The ICD (In-Circuit Debugger), or USB-Monitor, is a low cost, compact interface that has two functions for Renesas MC Flash microcontrollers: ) an in-circuit debugger tool with KD0 Debugger, and ) an in-system programmer with FoUSB (Flash-over-USB TM ) Flash Programmer. The following article introduces, and shows examples of, how to configure the target hardware with Renesas MC Flash MCU to interface with the ICD for in-circuit debugging..0 Introduction When used with KD0, the ICD provides an easy-to-use in-circuit debugging environment during application development. In addition, when used with the FoUSB Flash Programmer, it also provides an in-system programming interface to the target Renesas MC Flash MCU. The ICD, by taking advantage of Universal Serial Bus (USB), provides plug-and-play connectivity and fast data transfers between the computer and the MC target board. The ICD is powered by Renesas M full speed USB Flash MCU, which also makes it upgradeable to support future Renesas MC MCUs. Powering the ICD is user selectable: USB Bus powered or Target powered. When used in bus-powered mode, the USB bus supplies power to the ICD and target board. When in target-powered mode, USB bus power is disconnected and the ICD sources power from the MC target board. Renesas recommends to use Target Power Mode and NOT USB Bus Power Mode when connected to non-renesas SKP target boards. If you plan to use the ICD to supply power to non-skp boards, please contact Renesas representative for details and assistance. Aside from a standalone kit (RTA-FoUSB-MON), the ICD comes included with the following Renesas Starter Kits: MSV00-SKP MSV0-SKP MSV0-SKP MC System Evaluation Kit SKPC SKPC SKPCP SKPCMini REU0B000-00Z March 00 Page of

MC PC with Windows, 000, Me, or XP and available USB port Figure ICD System Connectivity A picture of the ICD with key components indicated is shown below. Target or (USB) Bus Powered Switch 0-pin Polarized Connector to MC Target Board Mini-USB Connector LED s: Red Target Stopped Green Target Running Yellow USB-Monitor Status Red Power Figure ICD (or USB-Monitor) Note:. The USB Bus Power Mode was designed to supply power to Renesas SKP boards. If non-renesas SKP boards (i.e. customer developed MC board) are used as target boards, use the ICD in Target Power mode. Contact your Renesas representative if you plan to use the ICD in Bus Power mode to supply power to your non-skp target board.. The ICD ships with a mini USB cable to connect to your PC and a 0-pin flat ribbon target cable to connect to the MC target board.. The ICD requires V for re-programming if a new MCU file (MMI) needs to be downloaded to the ICD (i.e. when the target MCU selected does not match the MCU file on the ICD). To accomplish this, disconnect the ICD from the target, set to Bus Power Mode, and then download new MCU file. After MCU file has been downloaded, switch back to Target Power Mode. REU0B000-00Z March 00 Page of

MC.0 Target Hardware Connectivity for In-Circuit Debugging This section describes the hardware connections to the ICD for in-circuit debugging operations. Examples for different MC MCU s are shown at the end of the section. For target MCU resources used during in-circuit debugging, see reference section for details. The ICD connects to an MC target board through a polarized,.00 (.mm), 0-pin connection using a flat ribbon cable. It communicates with the MC MCU using the boot UART/SIO in a clocked SIO configuration. The signals used and how these signals are assigned is described below. TXD 0 RESET CE RXD S Figure Target Board 0-Pin /Connector Signal Assignment Note: All target interface lines are in high impedance state until instructed to do otherwise by the KD0 Debugger application.. Power Supply Pin This provides the common connection point for power between ICD and the target board. This must be connected to the target board s line/plane. In Target Power mode, the ICD requires at least.v and ma to operate properly. The ICD requires V when downloading new MCU Monitor Image (MMI).. Busy Target MCU SIO Busy Signal This line indicates whether the target is busy (and cannot receive data) or not. This must be connected to the target MCU s boot UART/SIO (CTS/RTS) pin. This pin cannot be used while the ROM monitor is running (during in-circuit debug operations).. S Target MCU Serial Clock Signal This clock is used for synchronous serial communication between ICD and target board. This must be connected to the target MCU s boot UART/SIO S pin. This pin cannot be used while the ROM monitor is running (during in-circuit debug operations). REU0B000-00Z March 00 Page of

MC. RXD Target MCU Receive Data Input Signal (ICD Transmit Data Output Signal) This is the ICD SIO transmit data output. This must be connected to the target MCU s boot UART/SIO receive data input (RXD) pin. This pin cannot be used while the ROM monitor is running (during in-circuit debug operations).. CE Pin This pin is used to enter boot mode for programming of the target MC MCU. Not all MC MCU s have a CE pin. If a CE pin exists on the target MCU, it should be connected to this pin (refer to serial mode flash programming in the target MCU s datasheet). If not, leave pin unconnected. This pin is in high impedance when in user mode (during debug operations). If the target MCU s CE pin is used as input, isolate the driving circuit from the header connection with a Kohm resistor. If to be left unconnected (if users decides to), care must be taken to ensure that the target MCU s CE pin has a high signal level using a pull-up resistor during any programming operations.. Pin The pin is used to control target MCU s pin (if it exists on the target MCU). pin is used during programming of the target MCU. If this pin exists on the target MCU (and in Target Powered mode), it should be connected to the header (refer to serial mode flash programming of the target MCU s datasheet). If not, leave pin unconnected. If the target MCU s pin is used as input, isolate the driving circuit from the header connection using a Kohm resistor. If the pin of the MC MCU is left unconnected (no external circuit and not connected to 0-pin header), care must be taken to ensure that the target MCU s pin has a low signal level using a pull-down resistor during any programming operations.. Ground Pin This provides the common point where the ICD ground and target board ground planes can be connected. This must be connected to target board s line/plane.. RESET Target MCU Reset Signal This active low signal is used by the ICD to reset the target MCU. This must be connected to the target board s reset circuit or target MCU s reset pin. The user must ensure that the ICD can drive the pin to a valid low level with ma current. REU0B000-00Z March 00 Page of

MC. Target MCU Pin This active high signal is used by the ICD to control the target MCU s pin for programming purposes. This must be connected to the target MCU s pin. During normal operation, this pin must have a low signal. To accomplish this, connect a 0K pull-down resistor. See MC MCU datasheet on pin description for details..0 TXD Target MCU Transmit Data Output Signal (ICD Receive Data Input Signal) This is the ICD SIO receive data input. This must be connected to the target MC MCU s boot UART/SIO transmit data output (TXD) pin. This pin must be pulled down with a resistor connected to. The target MCU s ROM monitor polls this pin for the presence of the ICD before running the user program. Without the pull-down resistor, the target MCU will only run the ROM monitor program. This pin cannot be used while the ROM monitor is running (during in-circuit debug operations).. Hardware Summary and Precautions Connect pull-down resistors to RXD and lines. Connect Reset line to the target MCU Reset pin or the target board s reset circuit. If or CE lines are used as input pins, isolate the driving circuit from the 0-pin header using a Kohm resistor. If possible, avoid using the boot SIO/UART pins for other purposes. Table lists the MC Flash MCU s supported, CE or pin support, the boot UART/SIO, DBC interrupt support, and the number of breakpoints that can be set in KD0. REU0B000-00Z March 00 Page of

MC Table MC MCU Support Summary MC MCU CE/ Pin Boot UART/SIO DBC Irq Support Breakpoints MC/0 None UART0 No M0FC Both UART No MC/ CE UART Yes MC/ CE UART Yes MC/ CE UART Yes M0GFN Both UART No MC/P, N Both UART Yes M0VFG Both UART0 No RC/0, / None UART Yes Examples of target board hardware connection to 0-pin header (ICD) when used for debugging purposes only. If you cannot find your MC Flash MCU in the examples shown, please contact Renesas representative for assistance. 0-Pin MC/, MC/, MC/ 0-Pin MC/0 CE 0 P_/RTS (Busy) P_/ (S) P_/ () P_/XCout (CE) P_/ () CE 0 P_/CNTR0 (Busy) P_/0 (S) P_/0 () P_/0 () 0-Pin M0F 0-Pin RC/0, RC/ CE 0 P_/RTS (Busy) P_/ (S) P_/ () P_0/WRL (CE) P_/HOLD () P_/ () CE** 0 * MODE (Busy) (S) P_ () P0_0 () REU0B000-00Z March 00 Page of

MC CE* * 0-Pin 0 MC/P P_/RTS (Busy) P_/ (S) P_/ () P_0/WRL (CE) P_/HOLD () P_/ () CE* ** 0-Pin 0 RHOLD*** MC/P in Expanded Memory Mode P_/RTS (Busy) P_/ (S) P_/ () P_0/WRL (CE) P_/HOLD () P_/ () * CE and pins are high impedance in user mode (during debug). * CE and pin are high impedance in user mode (during debug ). ** HOLD/ pin must be pulled high in memory expansion mode. Note: If you cannot find your MC Flash MCU in the examples shown, please contact Renesas representative for assistance..0 Conclusion The ICD is an easy-to-use interface for setting up an MC MCU development environment to support in-circuit debugging. It does not require a lot of resources from the target board. Correct hardware connectivity will guarantee proper operation..0 Reference Renesas Technology Corporation Semiconductor Home Page http://www.renesas.com E-mail Support support_apl@renesas.com User s Manual RTA-FoUSB-MON User s Manual Target Setup for FoUSB Programmer App Note Firmware Requirements for In-Circuit Debugger Support App Note REU0B000-00Z March 00 Page of

Keep safety first in your circuit designs! Renesas Technology Corporation puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. Trouble with semiconductors may lead to personal injury, fire or property damage. Remember to give due consideration to safety when making your circuit designs, with appropriate measures such as (i) placement of substitutive, auxiliary circuits, (ii) use of nonflammable material or (iii) prevention against any malfunction or mishap. Notes regarding these materials These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corporation product best suited to the customer's application; they do not convey any license under any intellectual property rights, or any other rights, belonging to Renesas Technology Corporation or a third party. Renesas Technology Corporation assumes no responsibility for any damage, or infringement of any third-party's rights, originating in the use of any product data, diagrams, charts, programs, algorithms, or circuit application examples contained in these materials. All information contained in these materials, including product data, diagrams, charts, programs and algorithms represents information on products at the time of publication of these materials, and are subject to change by Renesas Technology Corporation without notice due to product improvements or other reasons. It is therefore recommended that customers contact Renesas Technology Corporation or an authorized Renesas Technology Corporation product distributor for the latest product information before purchasing a product listed herein. The information described here may contain technical inaccuracies or typographical errors. Renesas Technology Corporation assumes no responsibility for any damage, liability, or other loss rising from these inaccuracies or errors. Please also pay attention to information published by Renesas Technology Corporation by various means, including the Renesas Technology Corporation Semiconductor home page (http://www.renesas.com). When using any or all of the information contained in these materials, including product data, diagrams, charts, programs, and algorithms, please be sure to evaluate all information as a total system before making a final decision on the applicability of the information and products. Renesas Technology Corporation assumes no responsibility for any damage, liability or other loss resulting from the information contained herein. Renesas Technology Corporation semiconductors are not designed or manufactured for use in a device or system that is used under circumstances in which human life is potentially at stake. Please contact Renesas Technology Corporation or an authorized Renesas Technology Corporation product distributor when considering the use of a product contained herein for any specific purposes, such as apparatus or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use. The prior written approval of Renesas Technology Corporation is necessary to reprint or reproduce in whole or in part these materials. If these products or technologies are subject to the Japanese export control restrictions, they must be exported under a license from the Japanese government and cannot be imported into a country other than the approved destination. Any diversion or reexport contrary to the export control laws and regulations of Japan and/or the country of destination is prohibited. Please contact Renesas Technology Corporation for further details on these materials or the products contained therein.