Home

QB-78K0MINI On-Chip Debug Emulator UM

image

Contents

1. I p I I I I I RESET IN when shorter than 50 ws I I 15 us I ar RESET OUT RESET IN when longer than 50 us I I _ i RESET_OUT I I I n2 o O When setting to on chip debugging mode via the normal port without using pins X1 and X2 two of the user ports will be unavailable for use O When the user program is downloaded flash memory programming is performed by self writing At that time be sure to use a clock that supports the self programming routine s operating frequency range O A high level signal is always output from to the FLMDO pin during emulation Be sure to connect a pull down resistor to the FLMDO pin and manipulate this pin based on high high impedance levels rather than on high low levels when using ports for manipulation 42 User s Manual U17029EJ3VOUM CHAPTER 5 RESTRICTIONS O Restriction on using the self check board 1 oy for operation check Note There is a communication problem due to a bug in the microcontroller mounted on the self check board when the QB 78KOMINI 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 Consequently the QB 78KOMINI always operates on the main clock during a break A fail safe break Uninitialize Stack Pointer a break that occurs du
2. Decimal Prefix indicating power of 2 address space memory capacity K kilo 2 1 024 M mega 27 1 024 User s Manual U17029EJ3VOUM 5 Terminology The following terms are used in this manual Target device This is the device to be emulated Target system This is the system to be debugged user specified system It includes the program the user specified hardware On chip debug unit This is a circuit in the device that is used for on chip This is a circuit in the device that is used for on chip debugging MINICUBE Generic name for NEC Electronics high performance compact on chip debugging emulator Pseudo real time RAM RAM Monitor A function that reads memory contents during monitor functions execution of a program DMM functions Dynamic Memory Modification A function that overwrites RAM contents during execution of a program Related Documents When using this manual also refer to the following manuals 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 RA78KO0 Assembler Package Ver 3 80 Structured Assembly U17197E Language CCT8K0 C Compiler Ver 3 70 UITZO1E ID78KO QB Ver 2 90 Integrated Debugger U17437E PM plus Ver 5 20 U16934E Caution The related documents listed above
3. User s Manual U17029EJ3VOUM 33 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 78KOMINI and the self check board the QB 78KOMINI s TARGET and POWER LEDs are ON and the self check board s LED1 is ON Before connecting After connecting LEDs are ON 34 User s Manual U17029EJ3VOUM 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 78KOMINI s POWER LED is ON the QB 78KOMINI 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 78KOMINI s power is ON and the target system s power is ON 6 ID78K0 QB startup After making sure the power is supplied to the QB 78KOMINI and either the self check board or the target system start up the ID78KO QB User s Manual U17029EJ3VOUM 35 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3 6 3 Disconnecting QB 78KOMINI from related devices Follow the steps described below when disconnecting the QB 78KOMINI from other related devices 1 Close the ID78KO0 QB 2 Turn off the power to the target system if using a target system 3 Remove the USB interface cable from the QB 78KOMINI and the host machine 4 Remove the QB 78KOMINI connection cable from the QB 78KOM
4. 40 CHAPTER 5 RESTRICTIONS beta usuris uuu ___ __ ___ __ _ 42 CHAPTER 6 CAUTIONS QE a SERE E CER EP Coo a CU RED Eck Sape caged vua gabe Es Susa 44 61 Cautions When On chip Debug U 44 602 Caution OM Option BERRuuyu u ull E 50 APPENDIX A ON CHIP FLASH MEMORY SECURITY FUNCTIONS 51 APPENDIX B REVISION HISTORY eee u 52 User s Manual U17029EJ3VOUM T CHAPTER 1 GENERAL The QB 78KOMINI 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 O Enables general purpose use on any microcontroller that includes a 78K 0 Series on chip debug unit O Enables debugging when mounted on a microcontroller installed on a system under development O Communication method uses X1 and X2 also enables communications that use port pins other than X1 and X2 O Uses flash self programming function to enable downloading of programs to flash memory O Does not require an external power supply power is supplied via the USB bus O Host interface is USB2 0 compliant O Enables maintenance using auto diagnostic program and self check board O The QB 78KOMINI s shape dimensions are described below Pseudo real time RAM monitor and DMM functions Depth
5. Processing Note 2 of 2 Change of description 3 5 Connection Circuit Examples Note of Figure 3 6 to 3 8 Change of description Change of CHAPTER 5 RESTRICTIONS CHAPTER 5 Change of CHAPTER6CAUTIONS of CHAPTER 6 CAUTIONS CHAPTER 6 CAUTIONS 6 CAUTIONS 52 User s Manual U17029EJ3VOUM
6. USB interface cable Mini B A length 2 m Connection cable for QB 78KOMINI length 20 cm ID78KO QB Disk Self check board QB 78KOKX1H TB User registration form 78K0 MINICUBE setup manual Packing list User s Manual U17029EJ3VOUM CHAPTER 2 NAMES OF PARTS This chapter provides the names of the QB 78KOMINI s parts 2 1 Names of Parts in Main Unit Figure 2 1 Main Unit Top View Screw LED Figure 2 2 Main Unit Side Views a Left side b Right side USB connector Screw Interface connector for QB 78KOMINI User s Manual U17029EJ3VOUM 15 16 0581 CHAPTER 2 NAMES OF PARTS Figure 2 3 External View of Board CLK1 User s Manual U17029EJ3VOUM CN1 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS In order to connect the QB 78KOMINI to the target system for debugging a circuit for connecting the QB 78KOMINI 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 The debugging environment is built by connecting the on chip debug unit and the on chip debug emulator User s Manual U17029EJ3VOUM 17 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 sock
7. according to the target device When the target device is the 78KO KF1 these pins are P31 and P32 Table 1 3 List of Debug Functions On chip ROM flash security functions 10 byte ID code authentication Event triggered break functions One break before execution zero if using a software break a access break Software break functions break functions 2000 points Forced break functions Included Execution functions Continuous execution free running execution from cursor position restart and step execution Pseudo real time RAM monitor RAM area 16 bytes breaks can be set at up to 8 locations in 1 bit units enabled by a functions temporary break DMM functions Included implemented as temporary break Register manipulation functions Included Mask functions SP setting overlook protection Yes function Execution time measurement Not included 10 User s Manual U17029EJ3VOUM CHAPTER 1 GENERAL 1 3 System Configuration Three possible system configurations when using the QB 78KOMINI are shown below Figure 1 2 System Configuration 1 Target device 6 Target system Remark Host machine equipped with USB port USB interface cable Mini B A supplied with this product QB 78KOMINI this product Connection cable for QB 78KOMINI supplied with this product Target connector for QB 78KOMINI 10 general purpose connector 2 54 mm pitch sold separately Target system user specified CD
8. are subject to change without notice Be sure to use the latest version of each document for designing 6 User s Manual U17029EJ3VOUM CONTENTS CHAPTER T GENERAL uuu uuu Gs aa Up oe 8 iU MB UL OS 8 1 2 Functional uu cx ea accu etes ecol ta Se EpL IE 9 1 9 SyStem 11 tA In Cartoni etc u ce iur es uy u yn TE 14 CHAPTER 2 NAMES OF PARIS dicc Z CREME CUR encom CUN X SNC FEE X SU AF FES ME EI E x CHR En 15 2 1 Names of Parts in Main Unit u 15 CHAPTER HARDWARE SETTINGS AND FUNCTIONS 17 ANAWA 25251 l 55 5 345 55 dO y cu en Cur dv tI eeepc E TEES 18 3 1 1 USB eonrieclol aciem DEI te EE LI LE I 18 3 1 2 Clock socket for target device a nennen nnn nnne nnn enn 18 9 1 3 Connectors Tor QB 7SI SOMINL ii o aor eoe Lodge Dese aa p di e CO odi 19 SA MEE Use ESSI TU EU 19 3 1 5 Bie A eee ee ee E EA y 20 3 2 Signal Funct
9. as follows When QB 78KOMINI is connected The option byte setting reflected in emulation The following shows a software description example for setting the option byte Example When setting address 0x80 to 0x00 555 CSEG AT 080H 555 is any name up to 8 characters DB OH 50 Users Manual U17029EJ3VOUM 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 Also when using the integrated debugger with the QB 78KOMINI to start debugging i e when reading the target device s on chip flash memory code enter the ID code in the integrated debugger s configuration screen and perform ID code authentication ID code specifications The values of addresses 0x85 to Ox8E comprise the 10 byte ID code Bits 0 and 1 at address 0x84 the use enable flag bits for the QB 78KOMINI use prohibited any other value use enabled If the ID code input to the integrated debugger matches the ID code embedded in the on chip flash memory debugging can be performed Even if these two ID codes match debugging cannot be performed when the QB 78KOMINI use enable flag value is 00b When flash memor
10. as that immediately before RRM is started 3 When RRM is used the IXS value is forcibly set as shown below so that the internal low speed RAM area size becomes the maximum When using a device such as the 78K0 Kx1 1 When using a device such as the 78K0 Kx2 2 00h 4 f the interrupt disabled state DI setting is set or the operating clock is switched to Ring OSC 3 or subclock by the user program during RRM processing the RRM processing is suspended 5 f RRM is executed during a standby state the standby state is released 6 The RRM function is supported in QB 78KOMINI with control code B or later Notes 1 Devices in which OCD Control Code V1 xx is displayed by selecting About from the Help menu in the ID78K0 QB 2 Devices in which OCD Control Code V2 00 or later is displayed by selecting About from the Help menu in the ID78K0 QB 3 Only when using a device of Note 1 23 Handling of device that was used for debugging Do not mount a device that was used for debugging on a mass produced product this is because the flash memory was rewritten during debugging and the number of rewrites of the flash memory cannot be guaranteed User s Manual U17029EJ3VOUM 49 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
11. example Reset circuit Reset circuit To RESET IN Buffer To RESET IN zi 7 7 Caution The reset is driven from the QB 78KOMINI when a resistor is connected between RESET IN and RESET OUT and the QB 78KOMINI is connected When the QB 78KOMINI is not connected the reset is driven via the resistor and from within the target device Remark All constants shown in this circuit are reference values Users Manual 17029 23 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3 4 Target Connectors The QB 78KOMINI 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 RESET IN Target reset input signal RESET OUT Reset signal output to target device 3 FLMDO OUT Output signal used to control on chip debugging functions 4 IN IN This signal is used to generate an interface output signal when the target system s is detected IN OUT Bidirectional signal used for data communications feno ___ ComededtonGND Connected to GND 7 OUT Output signal used for clock supply e Jeno jOomededioGND _______ jmesERVD f _ Open s RESERVED L Note FLMDO is at high level durin
12. is used to supply the clock X2 pin This is a bidirectional signal used for data communications FLMDO This is an output signal used to overwrite the target device s flash memory 5V CHK This is a power supply pin for the self check board only Up to 50 mA can be supplied via this pin However since power is being supplied via the USB bus a voltage drop occurs when voltage is drawn via this pin Therefore do not supply voltage to the target device from this pin GND This is a GND pin User s Manual U17029EJ3VOUM CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3 2 1 QB 78KOMINI equivalent circuit Figure 3 1 Equivalent Circuit e Supervisor side e QB78KOMINI side 74VHC125 gt ____ RESET OUT lt lt RESET IN 100 PULL UP 1 kQ PULL UP Jumper 74LVO7 X2 LJ o 74VHC125 Neote 74VHC125 5V TO 5v Fxx 14 pin oscillator or oscillation circuit C R X TAL 74 1 259 Clock output switch 1 MQ Clock measurement by timer OUT function Clock measurement by timer IN function 74VHC125N ss FLMDO 3 state output GND Note The target output buffers power supply is provided via the target system s pin and an interface for voltage values from 2 0 to 5 5 V is enabled when a voltage is detected on the target system side User s Manual U17029EJ3VOUM 21 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3 3 Target Reset Processing The target
13. products are classified into the following three quality grades Standard Special and Specific The Specific quality grade applies only to NEC Electronics products developed based on a customer designated quality assurance program for a specific application The recommended applications of an NEC Electronics product depend on its quality grade as indicated below Customers must check the quality grade of each NEC Electronics product before using it in a particular application Standard Computers office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots Special Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems life support systems and medical equipment for life support etc The quality grade of NEC Electronics products is Standard unless otherwise expressly specified in NEC Electronics data sheets or data books etc If customers wish to use NEC Electronics products in applications not intended by NEC Electronics they must contact an NEC Electronics sales representative in advance to determine NEC Electronics willingness to suppo
14. 84 5 mm when including screws 88 5 mm Weight Approximately 60 g Figure 1 1 External Dimensions of QB 78KOMINI 84 5 mm when including screws 88 5 mm 26 1 mm 8 User s Manual U17029EJ3VOUM CHAPTER 1 GENERAL 1 2 Functional Specifications Table 1 1 Product Specifications 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 Target OS Windows 98 Windows Me Windows 2000 or Windows Target host machine PC 98NX Series IBM PC AT compatible Host interface Mini B connector for USB2 0 USB1 1 compatible Target interface Interface connector 10 pins for QB 78KOMINI Connection cable for QB 78KOMINI Connector unit HIF3BA 10D 2 54R made by Hirose Electric or equivalent product Wiring FLEX S4 10 7 0 127 2651P made by Oki Electric or equivalent product Recommended sockets on target device Straight HIF3FC 10PA 2 54DSA made by Hirose Electric Co Ltd or equivalent product Right angle HIF3FC 10PA 2 54DS made by Hirose Electric Co Ltd or equivalent product Target interface power supply Power is supplied from target device Standard current consumption 8 mA excludes power consumption by target circuit V850ES KG1 20 MHz operation Temperature characteristics 0 to 40 Storage temperature 15 to 60 C no condensation Table 1 2 Target Int
15. H 2 T MOV PFCMD 0A5H MOV FLPMC 0H Mode A1 MOV FLPMC ZOFFH MOV FLPMC 0H lt 3 l M 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 In addition do not set a software break in the section between 1 and 3 otherwise the execution continues without a break but emulation is not performed normally 15 Break function for stack pointer initialization failure This function executes a break when an interrupt occurs or a PUSH instruction is executed while the initial setting has not been made for the stack pointer If the manipulation or instruction shown below is executed immediately after a reset operation the break function for stack pointer initialization failure becomes invalid Setting a software break Write to the stack pointer from the Register window Write to the flash memory from the Memory window etc If a software break occurs while the initial setting has not been made for the stack pointer the message Uninitialized Stack Pointer is displayed on the status bar The subsequent operations are not performed normally so make sure to set the SP value in the user program 16 Caution on downloading HEX file When downloading a HEX file while a value other than OxFF is specified as the filing value using an object converter option U the op
16. INI and from either the target system or the self check board 3 7 Pin Statuses at Power on Table 3 1 lists the statuses of pins at power on However when the USB interface cable is not connected if the target voltage does not start up right away less than 2 V the device may be degraded so do not turn on the target s power until after the USB interface cable has been connected Table 3 1 Pin Statuses USB Cable Target Power Supply Output Pin Input Pin Not connected All pins at low level All pins at high impedance Not connected All pins at high impedance All pins at high impedance Normal operation Normal operation All pins at high impedance All pins at high impedance 36 User s Manual U17029EJ3VOUM 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 e 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 e Make the distance to the target connector as short as possible e Since the X1 and X2 lines are used for clock supply be sure to shield them such as with a GND pattern Before shipping the product use jumpers or other means to physically separate the X1 and X2 pins from the target connector in order to ensure normal clock oscillation e When debugging remove capacitors feedback resistors and other elements for the resonator in o
17. LLI oc V VV yp L8 AAA E qd W N e ss RESETZ OUT Qv e rd cQv erd EE A cei ACIER E 9 9 E 94d GHM G d Sid 19 pud uM Zd 0 7 ZINV Zed EC cINV ccd Emulator VDD X1 PortA GND RESERVED 5VOUT max 50mA P44 AD4 P45 AD5 P46 AD6 P47 AD7 P120 INTPO P33 TI51 TO50 INTP4 AVREF AVSS P50 A8 P51 A9 P52 A10 P53 A11 P54 A12 P55 A13 P56 A14 P57 A15 P64 RD P65 WR P66 WAIT P67 ASTB P00 TIOOO 1 TI010 TOO0 P02 SO11 P0S3 SI11 1398 04 S0LL LLISS S0d LOO L LLOLL 90d 0915 9 Ld 0VOS t Ld OVIS Ld 0vMOS er Ld ZdLNI OASNE ZNE LV Ld 9d LNI TOd Ot Ld LIN T3 0S8O0 70972 1 91 OHOL SId 9OXL Eld P10 SCK10 TXDO P11 S110 RXDO 12 5010 I User s Manual U17029EJ3VOUM UPD78F0148HGC PG1112H TR LED3 ERR HIF3FC 16PA 2 54DSA Flash Writer 39 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 78KOMINI has been set as a use prohibited area 1 Connect the flash programmer to the self check board Figure 4 2 shows the connection between the flash programmer and the se
18. NERAL Figure 1 4 System Configuration 3 Target device 78K0 KF1 MP FB Tp 5 Self check board power supplied via cable Remark lt 1 gt Host machine equipped with USB port 2 USB interface cable Mini B A supplied with this product 3 QB 78KOMINI this product 4 Connection cable for QB 78KOMINI supplied with this product 5 Self check board QB 78KOKX1H TB supplied with this product 6 CD ROM supplied with this product Integrated debugger ID78K0 QB USB device driver OCD Checker auto diagnostic program Documents 7 Device files et Note These can be downloaded from the NEC Electronics web site URL http www necel com micro index e html User s Manual U17029EJ3VOUM 13 CHAPTER 1 GENERAL 1 4 Contents in Carton The following packaging is used with the QB 78KOMINI Make sure all of these items are included If any items are missing or damaged please contact NEC Electronics sales representative or a distributor 14 Also be sure to fill out and return enclosed user registration form Figure 1 5 Package Contents 1 QB 78KOMINI 2 USB interface cable 3 Connection cable for MINI B C QB 78KOMINI lt 5 gt Self check board lt 6 gt User registration form QB 78KOKX1H TB Lay LY 7 Setup manual 8 Packing list LY LY lt 1 gt c2 3 4 lt b gt lt 6 gt lt gt lt 8 gt QB 78KOMINI
19. ROM supplied with this product Integrated debugger ID78K0 QB USB device driver OCD Checker auto diagnostic program Documents 8 Device files ete Note These can be downloaded from the NEC Electronics website URL http www necel com micro index e html User s Manual U17029EJ3VOUM 11 12 CHAPTER 1 GENERAL Figure 1 3 System Configuration 2 Target system Remark Notes 1 1 Host machine equipped with USB port 2 USB interface cable Mini B A supplied with this product 3 QB 78KOMINI this product 4 Connection cable for QB 78KOMINI supplied with this product 5 QB 78KOKX1H DA sold separately 78K0 KF 1 device that includes an on chip debug macro 6 QB 30MC YQ 01T or QB 30MC NQ 01T sold separately 7 CD ROM supplied with this product Integrated debugger ID78K0 QB USB device driver OCD Checker auto diagnostic program Documents 8 Device files 2 QB 30MC YQ 01T is equivalent to YSPACK30BK YQGUIDE S3 QB 30MC NQ 01T is equivalent to NSPACK30BK YSPACKSOBK YQGUIDE S3 and are products of Tokyo Eletech Corp Contact Daimaru Kogyo Co Ltd For further information Tokyo Electronics Department TEL 81 3 3820 7112 Osaka Electronics Department TEL 81 6 6244 6672 These can be downloaded from the NEC Electronics web site URL http www necel com micro index e html User s Manual U17029EJ3VOUM CHAPTER 1 GE
20. To our customers Old Company Name in Catalogs and Other Documents On April 17 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 Renesas Electronics website http www renesas com April 1 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http www renesas com Send any inquiries to http www renesas com inquiry 24 NC S AS 8 10 11 12 Notice All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website Renesas Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise i
21. as described above in 1 Circumstances not covered by product guarantee User s Manual U17029EJ3VOUM Readers Purpose Organization How to Read This Manual Conventions INTRODUCTION This manual is intended for engineers who will use the QB 78KOMINI for debugging Engineers who read this manual are assumed to be familiar with device functions and uses and to have knowledge about debugging This manual is intended to give users an understanding of the basic specifications of the QB 78KOMINI This manual mainly consists of the following sections General Names of parts e e Hardware settings and functions Cautions on use of self check board e Restrictions It is assumed that the reader of this manual has general knowledge in the fields of electrical engineering logic circuits and microcontrollers This manual describes basic setup steps and switch settings To learn more about the basic specifications and use methods Read this manual in the order of the CONTENTS To learn more about the QB 78KOMINI s manipulation methods command functions and other software based settings Refer to the user s manual of the debugger supplied with the QB 78KOMINI to used The mark shows major revised points Note Footnote for item marked with Note in the text Caution Information requiring particular attention Remark Supplementary information Numeral representation Binary or
22. ce equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics especially with respect to the maximum rating operating supply voltage range movement power voltage range heat radiation characteristics installation and other product characteristics Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under
23. certain use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or system manufactured by you Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances including without limitation the EU RoHS Directive Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electr
24. e to a failure to perform stack pointer initialization occurs when an internal reset is generated due to a bug in the microcontroller mounted on the self check board Workaround Stop the watchdog timer operation or repeat starting the count operation to suppress generation of the internal reset by the watchdog timer The part number is shown as QB 78K01H TB X X on the label attached to the device mounted on the self check board indicates the version Users Manual U17029EJ3VOUM 43 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 78KOMINI a Flash memory area Addresses 0x02 and 0x03 Addresses Ox7E and Ox7F when using a software break Address 0x84 Addresses 0x85 to Ox8E Addresses Ox8F to Ox18F Standard value of program 256 bytes when using pseudo real time RAM monitor function when using a device with 10 or more SFRs the can be accessed in 16 bit units n the number of exceeding registers x 6 bytes b Internal extended RAM area Addresses OxF7FO to OxF7FF when using pseudo real time RAM monitor function c Internal high speed RAM area 7 bytes as stack area Standard value of stack 2 bytes when using software breaks 7 bytes when using pseudo real time RAM monitor function 2 Values at addresses 0x02 0x03 and Ox8F or higher Values other than OxFF cannot be downloaded to address 0x02 0x03 o
25. ector with reverse insertion blocker is described below s fewo e je s lw S ms SSS s juo rosersusirersotnek boar ony Note The 1 information is shown from the QB 78KOMINI s perspective 90000 8 6 4 2 Pin layout top view 3 1 4 Jumper settings The jumper JP1 settings are as follows 1 2 shorted factory setting fixed 3 2 1 Pin layout top view User s Manual U17029EJ3VOUM 19 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3 1 5 Display devices Three LEDs are included as status display devices STATUS RUN Blinking slow RUN BREAK DOWNLOAD After break or debugger start ON DOWNLOAD Blinking fast Before starting debugger OFF LED2 TARGET Before starting When target voltage is 1 8 V or higher ON debugger When target voltage is lower than 1 8 V OFF After starting When target voltage is POC voltage or higher ON debugger When target voltage is lower than POC voltage OFF me With power supplied from host machine ON power supplied from host machine OFF 3 2 Signal Functions of Target Interface 1 2 3 4 5 6 7 8 20 RESET IN This is the target s reset input signal RESET OUT This is a reset signal output to the target device IN An interface output signal is generated when the target system s voltage is detected X1 pin This is an output signal that
26. eration contradicts that described in 2 Values at addresses 0x02 0x03 and or higher In such a case keep consistency using the following program instead of using the linker option go Example ORG 0002h DB Offh Offh ORG 008fh DB Offh DB Offh Offh Offh Offh Offh Offh Offh Offh Offh Offh Offh Offh Offh Offh Offh Offh DB Offh Offh Offh Offh Ofth Offh Offh Offh Offh Offh Ofth Offh Offh Offh Offh 16 lines 1 byte 16 bytes x 16 257 bytes DB Offh Offh Offh Offh Offh Offh Ofth Offh Offh Offh Offh Offh Offh Offh Offh Offh User s Manual U17029EJ3VOUM AT 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 in the Download dialog box and download the load module In particular take care regarding this point when activating the debugger using a project file as well as when using PM plus 18 Setting of Monitor Clock With a device such as the 78KO Kx1 when System is selected for Monitor Clock in the Configuration dialog box the clock source of the device is changed to the clock from QB 78KOMINI during a break If the peripheral emulation function does not stop by selecting Non Break for Peripheral Break due to clock changes ti
27. erface Specifications Target device 78K 0 Series incorporating on chip debug unit Target system clock supply method Can be supplied from an oscillator or oscillation circuit mounted on this product or default 5 MHz clock can be supplied from within the emulator Target system clock range Same frequency as specified for the target device uds Note 1 Target interface voltage 2 0 to 5 5 V id Interface for flash programming This is required when the target device contains flash memory No of interface signals 1 Interface signal functions in and out relative to direction from target device e FLMDO in Used when writing from the integrated debugger to flash memory Interface for reset No of interface signals 1 Interface signal functions in and out relative to direction from target device e RESET in RESET out System reset Interface for detection of target Monitors target system s power supply power supply Be sure to supply for on chip debugging in for on chip debugging Interface for mode setting and Select X1 or X2 or select PORT A or B ae communications interface User s Manual U17029EJ3VOUM 9 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 The Port A and Port B pins vary
28. errors that may appear in this document e NEC Electronics does not assume any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of NEC Electronics products listed in this document or any other liability arising from the use of such products No license express implied or otherwise is granted under any patents copyrights or other intellectual property rights of NEC Electronics or others e Descriptions of circuits software and other related information in this document are provided for illustrative purposes in semiconductor product operation and application examples The incorporation of these circuits software and information in the design of a customer s equipment shall be done under the full responsibility of the customer NEC Electronics assumes no responsibility for any losses incurred by customers or third parties arising from the use of these circuits software and information e While NEC Electronics endeavors to enhance the quality reliability and safety of NEC Electronics products customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely To minimize risks of damage to property or injury including death to persons arising from defects in NEC Electronics products customers must incorporate sufficient safety measures in their design such as redundancy fire containment and anti failure features e NEC Electronics
29. es Follow the steps described below when connecting the QB 78KOMINI 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 1 Attach the QB 78KOMINI connection cable QB 78KOMINI side Align the ridge in the QB 78KOMINI connection cable socket with the groove in the QB 78KOMINI s interface connector for preventing reverse insertion and insert the socket into the connector 30 User s Manual U17029EJ3VOUM CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 2 Attach the QB 78KOMINI connection cable self check board or target system side Align the ridge in the 78 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 reverse insertion User s Manual U17029EJ3VOUM 31 32 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 78KOMINI s USB connector User s Manual U17029EJ3VOUM 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
30. et 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 The socket specifications are listed as a to d below Also a parts board mounted as CLK1 is shown in e below A parts board such as the 160 90 314 manufactured by PRECI DIP can be used with this socket to configure oscillation circuit Be sure to use the manufacturers recommended values for constants of the capacitors and resistors to be mounted Caution Be sure to turn off the QB 78KOMINI s power supply before mounting or removing a clock in the clock socket for the target device In addition do not mount a clock in the clock socket when System is selected in the Main Clock field in the Configuration dialog box of the debugger a Equivalent circuit b Mounted parts 2 to 13 Capacitor CB CLOCK OUT 3 to 12 Capacitor CA 1 MO 4 to 11 Ceramic resonator crystal resonator c Parts board oscillation circuit parts mount example d Pin positions in corresponding clock module 1 1 14 Vcc 2 3 4 5 6 GND 7 8 CLOCK OUT Top View Top View 18 User s Manual U17029EJ3VOUM CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS e Parts board mounted in CLK1 socket 3 1 3 Connectors for QB 78KOMINI The QB 78KOMINI s connector CN1 a two row 2 54 pitch type conn
31. g on chip debugging Figure 3 5 Connector Pin Layout 10 pin general purpose connector MALIN Sere hy NE hwg Nus 9 7 5 3 0 Target system 00 8 6 4 2 Top view Mi cee 24 User s Manual U17029EJ3VOUM CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3 5 Connection Circuit Examples The following are examples of circuits required when connecting the QB 78KOMINI to the target system For details see the target device s user s manual Figure 3 6 Connection Circuit Example When QB 78KOMINI Is Not Used QB 78KOMINI target connector Target device Shorted by jumper FLMDO s FLMD0 Note 1 RESET IN Target reset ce RESET OUT BA RESET X1 X1 C X2 GND P31 Note 2 Note 1 Notes 1 Connect a pull down resistor of 470 Q or higher 2 When using the 78KO KF1 Figure 3 7 Connection Circuit Example When Using QB 78KOMINI X1 and X2 Are Used QB 78KOMINI target connector Target device FLMDO FLMDO Note 1 RESET IN Target reset TT RESET OUT RESET x fy 2 GND Vpp Oscillator is deleted P31Note 2 Note 1 Notes 1 Connect a pull down resistor of 470 Q or higher 2 When using the 78KO KF1 User s Manual U17029EJ3VOUM 25 Notes 1 26 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS Figure 3 8 Connection Circuit Example When Using QB 78KOMINI Ports A 1 Are Used QB 78KOMINI target co
32. ice Pet Pulse number 11 Speed amp 25kHz Multiply Intemal Direct made Address 00 mode 1 00 Operation Mode Chip Start Selective programming C Block End Start 000000 Show Address End poEFFF Standard Advanced Supply voltage Command options vdd v Blank check before Erase v 00 00 Read verify after Program Target Security flag after Program Checksum after Program V 00 00 vdd Seral Fort vdd Reset vdd Input vdd Security settings Disable Chip Erase Disable Block Erase Disable Program Program download upload Enable two Program Areas ame 3 Perform a chip erase operation User s Manual U17029EJ3VOUM CHAPTER 5 RESTRICTIONS The restrictions are described below O A delay period of about 50 us 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 See Figure 5 1 below A delay fo about 25 us is required from input of a target reset RESET IN to when the target device is reset RESET OUT See Figure 5 1 below Figure 5 1 Timing of Target Reset 90 us
33. ions of Target Interface U uu u 20 3 2 1 QB 78KOMINI equivalent circuit a a arar 21 3 3 Target Reset Processing u uu Le 22 34 24 3 5 Circuit EXaMpleS aeo ced ca eio o o 25 3 6 Connections and Startup Procedure u 27 3 6 1 MoUnUNO Z Auk u ka qayan ass 27 3 6 2 Connecting QB 8K0MINI to related devices a a 30 3 6 3 Disconnecting QB 8K0MINI from related devices 36 3 7 Pin Statuses _ _ _ SA rd EC RE HEU pe RE 36 3 8 Cautions on Creating Target 37 CHAPTER 4 CAUTIONS ON USE OF SELF CHECK BOARD 38 4 1 Functions of Self check Board UR EORR KVCMRYER M 38 42 Self check Board
34. isabled DI with an RRM generated while a user program interrupt service routine is running T11 31 ys 48 User s Manual U17029EJ3VOUM 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 us 40 8 19 35 19 x 2 175 us 4byes __ 106 19 35 19 4 341 ys 40 8 19 35 19 x 4 283 us 4 bytes 16bytes 106 19 35 19 16 989 us 40 8 19 35 19 x 16 931 us User program interrupt servicing disabled held pending processing at a break RRM data collection and RRM data transmission User program interrupt servicing enabled period for reading 16 byte RRM data C User program is running RRM is not performed in his period 22 Cautions when using pseudo real time RAM monitor function 1 If an interrupt occurs during period B shown in 21 while RRM data are being collected data of the HL and AX registers immediately before RRM is started and values of the PC and PSW 7 bytes in total remain in the stack If a break occurs during the interrupt servicing execution returns to the RRM routine by the RET instruction but processing immediately before RRM is started can be restored automatically by continuing the processing RUN as is 2 The priority ISP value of interrupts which occur during period B shown in 21 while RRM data are being collected is the same
35. iting flash memory during on chip debugging is performed but it takes time for returning the control to GUI form completion of flash memory writing 12 Boot swap during self programming When using the boot swap function during self programming it is performed in cluster units The cluster varies depending on the device used cluster 0000H to OFFFH and cluster 1 1000H to 1FFFH are used in the PD78F0148HD In this case cluster 0 0000H to OFFFH includes the area described in 1 Reserved area used by QB 78KOMINI a Flash memory area so data in these areas must be copied to cluster 1 1000H to 1FFFH that is the area in which 1000H is added to the address 13 Software break during self programming When a software break is set the debugger temporarily substitutes the debug instruction for the instruction to which the break is set and restores the original instruction Therefore do not set a software break to the program area that is targeted to be overwritten by self programming otherwise the debugger writes back the original instruction to the instruction overwritten by self programming 14 Emulation in self programming mode A1 When using the functions of each firmware by self programming the mode is switched from normal mode to self programming mode A1 User s Manual U17029EJ3VOUM CHAPTER 6 CAUTIONS MOV PFCMD 0A5H MOV FLPMC 1H lt 1 MOV FLPMC ZOFEH MOV FLPMC 1H See eee ee E From this position CALL 08100
36. lf check board FP1 connector It is assumed that a PG FP4 target cable type A is used to connect on the flash programmer side Figure 4 2 3 Wire Serial I O Type With Handshaking Flash programmer Self check board FP1 connector 14 FLMDO 12 FLMD1 P17 4 AVREF BEN 5 43 1 9 5 0 2 RESET 7 SCK10 P10 4 2 0 8 6 4 2 lt 3 gt 5110 P11 Pin layout top view lt 5 gt S010 P12 lt 8 gt HS P15 lt 1 gt Vss EVss AVss Recommended settings for programmer Target operating voltage 5 V supplied from programmer Target operating frequency 10 MHz supplied from programmer Write ports 3 wire handshake mode or 3 wire SIO chO mode Serial transfer rate 625 kHz Cautions 1 To avoid signal conflicts do not connect the flash programmer to the QB 78KOMINI 2 When connecting the flash programmer connect the programmer s cable to the FP1 connector Board faults may occur if this cable is attached to a different connector 40 User s Manual U17029EJ3VOUM 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 Standard Advanced Device Setting file Es T m Save As Parameter File 8F0148H PRM Defaults Supply oscillator Frequency 10 MHz On Target Hz Communication interface to dev
37. ming may differ from the timing in the actual operation In order to adjust the clock timing even during a break mount an oscillator with the same frequency as the actual clock in QB 78KOMINI Note Devices in which OCD Control Code V1 xx is displayed by selecting About from the Help menu in the ID78KO QB 19 Caution on performing step execution Some peripheral registers remains stopped during step execution In such a case execute the instruction with Run Break specified 20 Software break in RAM area Do not overwrite the program in which a software break has been set to the internal low speed RAM area or external RAM area otherwise the break may not occur normally Even if the break occurs the program before being overwritten is automatically restored Therefore be sure set a software break after the program is overwritten 21 Execution time when using pseudo real time RAM monitor function The following shows the execution time when using the pseudo real time RAM monitor function whereas the operating frequency 5 MHz and PCC 0 When Interrupts are enabled El with an RRM generated while a user program main routine is running One cycle Several tens of ms to several hundres of ms pa os a eja e ela mE 11 40 us 12 58 5 13 8 0 19 us T2 35us 0 19 us T2 35us 0 19 us T1 106 us T2 occurs for the number of bytes loaded with RAM function When Interrupts are d
38. mple shown below and secure those areas so that they are not used by the user program Example When securing address Ox7E to Ox7F 555 CSEG AT 7 SSS is any name up to 8 characters DB OFFH OFFH 5 Value at address 0x84 The following settings can be made for the security ID code by setting address 0x84 to a value shown below 0x00 Connection of QB 78KOMINI is prohibited 0x02 The flash memory in the device is not erased how many times security ID code authentication fails 0x03 All the flash memory areas in the device are erased when security ID code authentication fails Values other than 0x02 and 0x03 cannot be written to address 0x84 The processing is performed so that 0x00 the value set to disable QB 78KOMINI connection or any other illegal value is not written When setting 0x00 use a flash memory programmer such as PG FP4 If address 0 84 is overwritten by 0x00 by self programming communication is disabled after reset and debugging can no longer be performed The target microcontroller and QB 78KOMINI can no longer be connected even after the debugger is restarted Example When setting address 0x84 to 0x02 555 CSEG 084H 555 is any name up to 8 characters DB 2H 6 Values at addresses 0x85 to 0x8E The security ID of addresses 0x85 to Ox8E can be changed in the Memory window etc If addresses 0x85 to Ox8E are overwritten by self programming communication is disabled after reset and debugging can n
39. nnector FLMDO RESET IN Target reset RESET OUT X1 Target device FLMDO Note 2 TIT RESET P31 Note 3 Note 2 p 32Note 3 GND Vpop C 2 Connect a pull down resistor of 470 or higher 3 When using the 78KO KF1 User s Manual U17029EJ3VOUM The port A and port B pins differ according to the target device 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 78KOMINI 1 Loosen the QB 78KOMINI s screw 2 Remove the cover Use the interface connector side as a reference point when lifting the USB connector side User s Manual U17029EJ3VOUM 27 28 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 U17029EJ3VOUM 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 5 Close the cover and tighten the screw This completes the clock mounting procedure User s Manual U17029EJ3VOUM 29 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3 6 2 Connecting QB 78K0MINI to related devic
40. o longer be performed When the debugger is restarted set the new security ID in the Configuration dialog box If the security ID is unknown on chip debugging can not be performed The areas assigned at addresses 0x85 to Ox8E which are reserved for the security ID can be secured and set using the linker option gi 7 Values at address 0xF7F0 to OxF7FF When using the pseudo real time RAM monitor function use the areas at address OxF7FO to OxF7FF 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 If the device does not have these areas there is no need to do any securing Example When securing address OxF7FO to OxF7FF 555 CSEG OF7FOH SSS is any name up to 8 characters DS 16 8 Stack pointer set value Use address OxFEDE or lower for the stack area The internal RAM area varies depending on the value set to the IMS register If the RAM address starts from OxFBOO the stack pointer set value is OXFBO7 to OxFEDF 9 to OxFEDF when using software breaks and OxFB10 to OXFEDF when using the pseudo real time RAM monitor function The stack size to be used may change when the function is extended in future Using address OxFEDF for the stack area is disabled but it can be used as the variable area QB 78KOMINI temporarily uses address OxFEDF as a flag for processing the program during a break but the original value is held Use
41. onics products or if you have any other inquiries Note 1 Renesas Electronics as used in this document means Renesas Electronics Corporation and also includes its majority owned subsidiaries Note 2 Renesas Electronics product s means any product developed or manufactured by or for Renesas Electronics User s Manual 5 5 QB 78KOMINI On Chip Debug Emulator Document No U17029EJ3VOUMOO 3rd edition Date Published March 2005 NS CP K NEC Electronics Corporation 2004 Printed in Japan MEMO 2 User s Manual U17029EJ3VOUM 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 e The information in this document is current as of March 2005 The information is subject to change without notice For actual design in refer to the latest publications of NEC Electronics data sheets or data books etc for the most up to date specifications of NEC Electronics products Not all products and or types are available in every country Please check with an NEC Electronics sales representative for availability and additional information e No part of this document may be copied or reproduced in any form or by any means without the prior written consent of NEC Electronics NEC Electronics assumes no responsibility for any
42. r s Manual U17029EJ3VOUM 45 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 Manipulation in Memory Copy dialog box 4 Manipulation to change memory in Memory window 5 Online assembly in Assemble window 6 Program execution when using software breaks 7 Program execution that uses hardware breaks or software reset operation while Permit has been selected for the Target Power Off setting in the Configuration dialog box 8 Operation that uses pseudo real time RAM monitor function 10 8 bit timer TM50 With a device such as the 78K0 Kx1 N the 8 bit timer TM50 is used by firmware during self programming It is used in the operations shown in 9 Overwriting flash memory during on chip debugging Therefore use the 8 bit timer TM50 under the following conditions Conditions for execution Select Not Permit for the Target Power Off setting in the Configuration dialog box Use hardware Conditions at a break Do not perform operations 1 to 8 shown in 9 Note Devices in which OCD Control Code V1 xx is displayed by selecting About form the Help menu in the ID78KO QB 11 GUI operability The flash memory is overwritten when an operation described in 9 Overwr
43. r the program area starting from address Ox8F is always displayed in the Memory window in order to prevent errors that occur by changing the value Uploaded data is also displayed as OxFF In addition on chip debugging cannot be performed on these areas after they are overwritten by self programming 3 Values specified by linker option go Among the reserved areas used by QB 78KOMINI the following areas can be secured using the linker option go Addresses 0x02 and 0x03 Size of program specified from address Ox8F 1 Specify the go option default value 256 for the program size for on chip debugging Value Specified by Option Standard to Ox18F When using the pseudo real time RAM monitor function expand the program area by 256 bytes When using a device with 10 or more SFRs that can be accessed in 16 bit units expand the program area for on chip debugging default 257 bytes of Ox8F to Ox18F by the amount exceeding the 10 SFR area As a rough guide add the number of exceeding registers x 6 bytes Specify the size of the program area as default size 257 bytes the number of exceeding registers x 6 bytes with the linker option The value specified by the option may change when the function is extended in future 44 User s Manual U17029EJ3VOUM CHAPTER 6 CAUTIONS 4 Values at address 7 and Ox7F Use the areas at addresses Ox7E and 7 for setting a software break Refer to the program exa
44. rder to prevent signal degradation due to the load placed on the X1 and X2 pins Figure 3 9 Reference Example of Target System Target chip Make the pattern where X1 and X2 are next to each other as short as possible or make the space wider Connect to the connector by using tin plating when debugging Shield both sides of the line to reduce noise To debug connector GND pattern User s Manual U17029EJ3VOUM 37 CHAPTER 4 CAUTIONS ON USE OF SELF CHECK BOARD 4 1 Functions of Self check Board 38 1 2 Self check The OCD Checker can be used to perform self checking of the QB 78KOMINI 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 When downloading user programs if any of the restrictions described below in chapter 5 have been violated preventing startup of the OCD Checker or the integrated debugger recover using the self check board recovery methods described in 4 2 below Caution The OCD Checker is not supported except for use in self checking Also there are no plans for additional specifications or other version upgrades User s Manual U17029EJ3VOUM CHAPTER 4 CAUTIONS ON USE OF SELF CHECK BOARD Figure 4 1 Circuit Diagram of Self check Board TGND1 LC 2 G PG1112H TR E cc ON gt o N LLI Qn
45. 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 78KOMINI Connect using the connection cable for QB 78KOMINI b With this chip Short pins 1 and 2 target connector for QB 78KOMINI as is shown in Figure 3 2 Figure 3 2 Jumper Setting Reset circuit Target device RESET 2 When using selector logic auto switch Figure 3 3 When Using Selector Logic RESET OUT Target device RESET RESET_IN FLMDON Reset circuit Notes 1 When QB 78KOMINI is connected FLMDO is at high level and when it is not connected FLMDO is pulled down 2 Connect a pull down resistor of 470 or higher Remark All constants shown in this circuit are reference values 22 User s Manual U17029EJ3VOUM CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3 When using resistors auto switch Figure 3 4 When Using Resistors Target device RESET Note RESET OUT RESET_IN Reset circuit Note 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 78KOMINI in which case a lack of drive capacity in the circuit where the reset occurs may prevent proper detection of the reset A reset circuit example is shown below Correct circuit example Incorrect circuit
46. rt a given application Note 1 NEC Electronics as used in this statement means NEC Electronics Corporation and also includes its majority owned subsidiaries 2 NEC Electronics products means any product developed or manufactured by or for NEC Electronics as defined above M8E 02 11 1 User s Manual U17029EJ3VOUM 3 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 If power was turned on while the USB interface cable or target system connection was in an unsatisfactory state If the USB interface cable Connection cable or the like was bent or pulled excessively If the product got wet If the product and target system were connected while a potential difference existed between the GND of the product and the GND of the target system If a connector or cable was removed while the power was being supplied to the product If an excessive load was placed on a connector or socket 2 Safety precautions If used for long time the product may become hot 50 C to 60 C Be careful of low temperature burns and other dangers due to the product becoming hot Be careful of electrical shock There is a danger of electrical shock if the product is used
47. s granted hereby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Descriptions of circuits software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples You are fully responsible for the incorporation of these circuits software and information in the design of your equipment Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information When exporting the products or technology described in this document you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture use or sale is prohibited under any applicable domestic or foreign laws or regulations Renesas Electronics has used reasonable care in preparing the information included in this documen
48. t but Renesas Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below You must check the quality grade of each Renesas Electronics product before using it in a particular application You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of 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 or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics The quality grade of each Renesas Electronics product is Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books etc Standard Computers offi
49. y contents are erased its ID code becomes OxFFFFFFFFFFFFFFFFFFFF Caution Of 00 is written to address 0x84 write operations from the QB 78KOMINI become disabled and only write operations from a flash programmer are enabled The following is an ID code setting example Example When the following values are set to addresses 0x85 to Ox8E vae RI Assembler code oseg secur id a a db db x 12h 34h 56h 78h 9ah Obch Odeh Ofth 23h Od4h The ID code to be input via the integrated debugger ID78KO0 QB s configuration dialog box is either 123456789ABCDEF 12304 or 123456789abcdef123d4 User s Manual U17029EJ3VOUM 51 APPENDIX B REVISION HISTORY The revision history is shown below Applicable Chapter refers to the chapter in each version Addition of Addition of Figure 1 5 Package Contents lt 7 gt and lt 8 gt 1 5 Package Contents 7 and 8 Addition of Main Unit Top View logo mark CHAPTER 2 NAMES OF PARTS Addition of 3 1 5 Addition of 3 1 5 Display devices LED1 Before starting debugger devices LED1 Before starting debugger CHAPTER 3 3 6 Connections and Startup Procedure Addition and change of description HARDWARE SETTINGS AND FUNCTIONS Addition of CAPTER 4 CAUTIONS ON USE OF SELF CHECK BOARD CHAPTER 4 CAUTIONS ON USE OF SELF CHECK BOARD 3 1 2 Clock socket for target device CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS Caution Addition of description 3 3 Target Reset

Download Pdf Manuals

image

Related Search

Related Contents

Un siècle de travail des femmes en France – 1901  English - Electronic Levelling System  La clessidra della scrittura    Using the DVC-1000 (continued)  Tripp Lite Standard Power Extension Cord, 13A, 16AWG (NEMA 5-15P to NEMA 5-15R), 3-ft.  Installation Instructions Instrucciones de instalación  Installation & Service Manual  Altec Lansing Duplex 9864A User's Manual  Guía Rápida Motorola RAZR2 V8  

Copyright © All rights reserved.
Failed to retrieve file