Home

QB-78K0MINI On-Chip Debug Emulator UM

image

Contents

1. Buffer 2 To RESET IN To RESET IN 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 constants shown in this circuit are reference values User s Manual U17029EJ3VOUM 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 e 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 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 Voo is detected IN OUT Bidirectional signal used for data communications le eno CometdedteGND Connected to GND z a our output signal used or aock sunny fe eno E omecedioend o mesmo o E Note FLMDO is at high level during on chip debugging Figure 3 5
2. SB 5 VUVUVVUVUVUVUVUVU BRVVVVVVY SERERE E s COOrrOoOc DSST 0OSZld 0219 r AAA 8 0202 UZ Zid Z 3845 oaxw ous ttd Ug LEAF 0 1 0105 014 AA Soc BT Old SHOUT X ue S ex 57 d HX EE E 13S3u 550 l anyo x 2 SSA z TX eu ON Hix Le 0q13 ol g eE d1NI 0 d yuodedNI Led LZ 0d T VN z auod ed nized Er PALNI OSOL ISIL EEd Z eg OdLNI OZLd RT SSAV L7 xu 9 U U U UU UUU gt gt gt gt gt gt gt gt anro 322222222 19 SIDRO mer i a aNd ER yuod LX aNd guog ex Jojejnui NI JL _ oana EUG l1nO ZL3S3H 13539401195 NI ZI3S3u 19599 39 User s Manual U17029EJ3VOUM 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 self 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 Fla
3. SP setting overlook protection Yes function Execution time measurement Not included 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 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 lt 6 gt Target system Remark lt 1 gt Host machine equipped with USB port 2 USB interface cable Mini B lt A supplied with this product 3 QB 78KO0MINI this product 4 Connection cable for QB 78KOMINI supplied with this product 5 Target connector for QB 78KOMINI 10 pin general purpose connector 2 54 mm pitch sold separately 6 Target system user specified 7 CD ROM supplied with this product Integrated debugger ID78K0 QB USB device driver OCD Checker auto diagnostic program Documents 8 Device files e Note These can be downloaded from the NEC Electronics website URL http www necel com micro index e html User s Manual U17029EJ3VOUM 11 CHAPTER 1 GENERAL Figure 1 3 System Configuration 2 Target system Remark lt 1 gt Host machine equipped with USB port 2 USB interface cable Mini B lt A supplied with this product lt 3 g
4. Figure 3 9 Reference Example of Target System Target chip x1 X2 Make the pattern where X1 and X2 are next to each other as short as possible or make the space wider C 1 pr C Connect to the connector by using tin plating when debugging Jee both sides of the line to reduce noise C 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 oll 9 2 91 9 2 91 LAGAL YLHZLEL Od 5 5 E amp oc 2
5. dad HLEHeLELEOd Xr V 19d try NN zE V HEHeLELEOd yO 09d 99H8t L048L0dN 04 90d 09d 194 It Stid ttid SE Etid ve cvld OF 6t e LLIS E0d 1105 04 0001 L 00d S8 1SV 9d SY LIVW99d 171 gud ed N aid HN S9d 2 Qu v9d SI V ZSd YI V 9Sd ELW SSd eI V vSd 29 LLW 8Sd owiesd 6V 1Sd 8V 0Sd Zav Ltd 4 9 9 8 e e g 90V 9td SQv Svd AN 9 AN a t o9 Nad t YOV vvd LLMOS 0d 0011 1 155 604 1 11011 904 0 815 6 14 OVOS trld OVIS EV Ld Ov3OS cv Ld 09d 19d SS 3 000 L 0L0LL L eav erd cav evd LOv Lvd 0Qv Ord 291 224 9 9 9 9 97 14 19 29 t9 y9 59 99 29 69 OZ Ctd lid ZIN Ord 9 4 5 4 tld 24d 300r 8 TS C VdOTF dEJI Iqoo anyo 9 J M US8 J VSQvS 2 Vd91 03 4IH A 94 8 Sl u ET Zid ga s ES su yos 5 PENS x Sid 3 os LZ Ord Slag sie Lid Y E tid ww www plats r12s38 Zea UNSTT SS EIE o v
6. Connector Pin Layout 10 pin general purpose connector TOP VIEW 5 5 amp amp D amp 9 9 Target system Top view 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 78K0MINI Is Not Used Target device QB 78KOMINI target connector Shorted by jumper FLMDO 7 i 1 RESET IN Target reset RESET OUT la o CL dq e Note 1 Notes 1 Connect a pull down resistor of 470 or higher 2 When using the 78K0 KF1 Figure 3 7 Connection Circuit Example When Using QB 78KOMINI X1 and X2 Are Used QB 78KOMINI target connector Target device FLMDO RESET IN Target reset 77 RESET OUT X1 Oscillator is deleted Note 1 Notes 1 Connect a pull down resistor of 470 or higher 2 When using the 78K0 KF1 User s Manual U17029EJ3VOUM 25 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS Figure 3 8 Connection Circuit Example When Using QB 78KOMINI Ports A and B t Are Used QB 78KOMINI target connector Target device FLMDO FLMDO Note 2 RESET IN Target reset 77 RESET OUT RESET X1 P31 Note 3 ie 2 a p32
7. MOV FLPMC 0H Mode A1 MOV FLPMC 0FFH MOV FLPMC 0H lt 3 To this position The section between lt 2 gt and lt 3 gt 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 lt 1 gt and lt 3 gt 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 filling value using an object converter option U the operatio
8. 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 a 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 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 assume
9. 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 Users 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 ID78KO 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 78KOMINI and from either the target system or the self check board 3 7 Pin Statuses at Power on Table 3 1 lists t
10. 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 Ox8F 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 0x7E and 0x7F Use the areas at addresses Ox7E 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
11. 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 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 pro
12. 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 ID78KO0 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 with an RRM generated while a user program main routine is running One cycle Several tens of ms to several hundres of ms Ld A B C A C A C Axes C jt gt gt a m gt 4 lt T11 40us 12 58 T13 8us T0 19 us T2 35 us 70 19 us T2 35 us T0 19 us a S I T
13. the system to be debugged user specified system It includes the program and the user specified hardware On chip debug unit This is a circuit in the device that is used for on This is a circuit in the device that is used for on chip debugging 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 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 RA78KO Assembler Package Ver 3 80 Structured Assembly U17197E Language CC78KO C Compiler Ver 3 70 U17201E ID78K0 QB Ver 2 90 Integrated Debugger U17437E PM plus Ver 5 20 U16934E Caution The related documents listed above are subject to change without notice Be sure to use the latest version of each document for designing User s Manual U17029EJ3VOUM CONTENTS CHAPTER 1 GENERAL nune ete IS 8 1 1 Feat res u eue ere drei dex E eni Qed cope rires 8 1 2 Functional Specificatlohs mere DU PEE ratore pe errar
14. 1 106 us RA 2 occurs for number of bytes loaded with RAM function When Interrupts are disabled DI with an RRM generated while a user program interrupt service routine is running 2 5 T11 31 us 48 User s Manual U17029EJ3VOUM CHAPTER 6 CAUTIONS RRM Point Break Processing Time Total interrupt Pending Time MAX Interrupt Pending Time 2bytes 106 19 85 19 x2 298s 40 8 19 35 19 x 2 175 ys abytes 106 19 35 19 x4 341 us 40 8 19 35 19 x4 283 us 40 us 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 B 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 val
15. 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 QB 78KOMINI 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 Users Manual U17029EJ3VOUM 31 32 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 3 USB interface cable connection QB 78KOMINI 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 User s Manual U17029EJ3VOUM 33 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS 5 Power on a When using
16. IN when longer than 50 us 1 I 1 1 1 I 1 1 NECI l RESET_OUT ERES i mE i I 1 When setting to on chip debugging mode via the normal port without using pins X1 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 O Restriction on using the self check board 1 0 Note CHAPTER 5 RESTRICTIONS J for operation check 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 due to a failure to perform stack pointer initialization occurs
17. NI 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 O Q Q 20 Reset circuit Target device 10 2 2 When using selector logic auto switch Figure 3 3 When Using Selector Logic Vpop lt 10 KD RESET_OUT O Target device RESET RESET_IN pales FLMDO i Note 2 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 Q 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_OUT gt RESET 1kQ Note 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 example Reset circuit Reset circuit Voo Voo
18. Nete 3 j GND Vpop t X1 CJ I X2 Notes 1 The port A and port B pins differ according to the target device 2 Connect a pull down resistor of 470 Q or higher 3 When using the 78KO KF 1 26 User s Manual U17029EJ3VOUM 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 T 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 78KOMINI to related devices Follow the steps described below when connecting the QB 78KOMINI to other related devices Caution
19. OCD Checker auto diagnostic program Documents 7 Device files ete 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 an NEC Electronics sales representative or a distributor Also be sure to fill out and return enclosed user registration form Figure 1 5 Package Contents lt 1 gt QB 78KOMINI lt 2 gt USB interface cable lt 3 gt Connection cable for MINI B E s QB 78KOMINI 4 ID78K0 QB Disk 5 Self check board 6 User registration form QB 78KOKX1H TB lt 7 gt Setup manual lt 8 gt Packing list QB 78KOMINI USB interface cable Mini B lt A length 2 m Connection cable for QB 78KOMINI length 20 cm ID78K0 QB Disk Self check board QB 78KOKX1H TB User registration form 78K0 MINICUBE setup manual Packing list 14 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 OOOOO OOOOO USB conn
20. 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 Supervisor side QB78KOMINI side 74VHC125 gt __ RESET OUT RESET_IN 74LV07 1kQ 100 kQ PULL UP 2 3 3 kQ 33V f 1 PULL UP Do EI 1 4 _ x 2 74VHC125 74VHC125 c Fxx O O gt Ina 14 pin oscillator or oscillation circuit C R X TAL a t 74VHC125 t i dc Clock output switch Clock measurement by timer OUT function Clock measurement by timer IN function 74VHC1 258 FLMDo 3 state output GND Note The target output buffers power supply is provided via the target system s Vpp 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 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 78KOMI
21. USB hub Windows 98 Windows Me Windows 2000 or Windows XP PC 98NX Series IBM PC AT compatible Mini B connector for USB2 0 USB1 1 compatible 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 Power is supplied from target device Standard current consumption 8 mA excludes power consumption by target circuit V850ES KG1 20 MHz operation 0 to 40 C 15 to 60 C no condensation Table 1 2 Target Interface 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 Target interface voltage Interface for flash programming Interface for reset Interface for detection of target power supply Interface for mode setting and communications interface Same frequency as specified for the target device noe 2 0 to 5 5 y 1 This is required when the target device contains flash memo
22. User s Manual RENESAS 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 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 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 errors that may appear in this document 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
23. 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 84 5 mm when including screws 88 5 mm 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 Target OS Target host machine Host interface Target interface Target interface power supply Supervisor Temperature characteristics Storage temperature 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
24. 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 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 SSS CSEG AT 080H SSS is any name up to 8 characters DB OH 50 User s 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 are the use enable flag bits for the QB 78KOMINI 00b use prohibited any other value 7 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 matc
25. cket to configure oscillation circuit Be sure to use the manufacturer s 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 HCU04 HCU04 per 2 to 13 Capacitor CB CLOCK OUT 3 to 12 Capacitor CA 4 to 11 Ceramic resonator crystal resonator 5to 10 Resistor Rx 8 9 Shorted c Parts board oscillation circuit parts mount example Pin positions in corresponding clock module 1 NC 1 14 Vcc 2 3 4 5 6 7 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 connector with reverse insertion blocker is described below h me e e l h m SSCS b mem SSS Power spi rsrahock board oir Note The I O information is shown from the QB 78KOMINI s perspective w 00000 00000 Pin layout top view 3 1 4 Jumper settings The jumper JP1 setti
26. d 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 Hardware settings and functions Cautions on use of self check board 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 be 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 xxxx or xxxxB Decimal xxxx Hexadecimal xxxxH 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 Related Documents The following terms are used in this manual Target device This is the device to be emulated Target system This is
27. duct 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 support 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
28. e 9 1 3 System Configuratlon 5 rire 11 1 4 1 dcc 14 CHAPTER 2 NAMES OF PAR O reet Enero Lp 15 2 1 Names of Parts in Main Uit aeaa eter wees 15 CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS eren 17 3 1 UIDI TCI IMPER 18 3 1 1 USB cornnectot EE E ice ute 18 3 1 2 Clock socket for target device sssssssssssssssssssessees ener then en 18 3 1 3 Connectors for QB 78KOMINI 2 ea 19 3 1 4 Jumper Settings Re 19 3 1 5 Display ta dae cei eee De il ieee ea ene 20 3 2 Signal Functions of Target Interface eeeeseeeeeeeeeeeeeeeeeeee enne nennen nennen nennen 20 3 2 1 QB 78KOMINI equivalent 21 3 3 Target Reset Processing necececei cinere rete erre 22 3 4 Target Connectors ET etr 24 3 5 Connection Circuit Examples 25 3 6 Connections and Sta
29. ector Screw Interface connector for QB 78KOMINI User s Manual U17029EJ3VOUM 15 16 USB1 CHAPTER 2 NAMES OF PARTS Figure 2 3 External View of Board CLK1 JP1 User s Manual U17029EJ3VOUM CN1 LED1 LED2 LED3 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 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 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 so
30. erformed 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 O 0000H to OFFFH and cluster 1 1000H to 1FFFH are used in the u PD78F0148HD In this case cluster O 0000H to OFFFH includes the area described 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 lt 1 gt MOV FLPMC 0FEH MOV FLPMC 1H From this position CALL 08100H lt 2 T MOV PFCMD 0A5H
31. ew 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 Values at address OxF7FO0 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 SSS CSEG AT OF7FOH SSS is any name up to 8 characters DS 16 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 OxFBO9 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 User s Manual U17029EJ3V0UM 45 CHAPTER 6 CAUTIONS 9 Overwriting flash memory dur
32. h debugging cannot be performed when the QB 78KOMINI use enable flag value is 00b When flash memory 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 Value 7 0 Assembler code cseg secur id 2 db db 12h 34h 56h 78h Yah Obch Odeh Ofth 23h Od4h The ID code to be input via the integrated debugger ID78K0 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 lt 7 gt and lt 8 gt 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 Cl
33. he 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 Connected Normal operation Normal operation Connected OFF All pins at high impedance All pins at high impedance Not connected OFF 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 e 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 order to prevent signal degradation due to the load placed on the X1 and X2 pins
34. ing on chip debugging If the following operations are performed during on chip debugging the flash memory in the device is overwritten lt 1 gt Manipulation in Download dialog box lt 2 gt Manipulation in Memory Fill dialog box lt 3 gt Manipulation in Memory Copy dialog box lt 4 gt Manipulation to change memory in Memory window lt 5 gt Online assembly in Assemble window lt 6 gt 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 78KO Kx1 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 Note the 8 bit timer TM50 is used by firmware during self programming 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 lt 1 gt 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 Overwriting flash memory during on chip debugging is p
35. n contradicts that described 2 Values at addresses 0x02 0x03 and Ox8F 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 Offh Offh Offh Offh Offh Offh Offh Offh Offh Offh Offh Offh 16 lines 1 byte 16 bytes x 16 257 bytes DB offh Offh Offh Offh Offh Offh Offh Offh Offh Offh Offh Offh Offh Offh Offh Offh User s Manual U17029EJ3VOUM 47 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 78K0 Kx1 te 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 timing may differ from the timing in
36. ngs are as follows 1 2 shorted factory setting fixed 3 2 D 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 LED3 POWER With power supplied from host machine ON Without 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 Vpp IN An interface output signal is generated when the target system s Voo voltage is detected X1 pin This is an output signal that 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
37. ock socket for target device CHAPTER 3 HARDWARE SETTINGS AND FUNCTIONS Caution Addition of description 3 3 Target Reset 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 e Change of CHAPTER 6 CAUTIONS 0 of CHAPTER 6 CAUTIONS CHAPTER 6 CAUTIONS 6 CAUTIONS 52 User s Manual U17029EJ3VOUM
38. ow Chip Start C Block End F Selective programming Start 000000 BIS End ooEFFF Standard Advanced V vdd2 v 00 00 On Target mi Vpp V 00 00 Vdd Serial Port Vdd Reset Vdd H75 Input fydd m Supply voltage p Command options 15 00 Ae HFA Blank check before Erase Read verify after Program Security flag after Program Checksum after Program r Security flag settings Disable Chip Erase Disable Block Erase Disable Program r Program download upload Enable two Program Areas 3 Perform a chip erase operation eve ome User s Manual U17029EJ3VOUM 41 CHAPTER 5 RESTRICTIONS The restrictions are described below 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 O A delay fo about 25 ws 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 BOus gt I 1 I 1 i RESET_IN when shorter than 50 i 1 I I 1 15 ys Sch RESET OUT RESET_
39. rtup 27 3 6 1 Mounting Ke ore dec S 27 3 6 2 Connecting QB 78KOMINI to related devices ssseeeeeene emen nennen 30 3 6 3 Disconnecting QB 78KOMINI from related devices seee eee 36 3 7 Pin Statuses at Power on cccccceceseesseeeeeeeeeeeeeee eee eeeeeeeeeeeeeseeeeeseee sea 36 3 8 Cautions on Creating Target System essen nennen nenne nennen nnn nnn 37 CHAPTER 4 CAUTIONS ON USE OF SELF CHECK 38 4 1 Functions of Self check Board 38 4 2 Self check Board Recovery esses 40 CHAPTER 5 RESTRICTIONS Os erai a diaii ad ninini 42 CHAPTER 6 CAUT ON Sa 4n fags ftne ictu hene eet Eon Tio teni ene caa 44 6 1 Cautions When On chip Debug esee nennen nennen nennen innen nnn nan 44 6 2 Caution on Option 50 APPENDIX A ON CHIP FLASH MEMORY SECURITY FUNCTIONS 51 APPENDIX B REVISION HISTORY 52 User s Manual U17029EJ3VOUM 7 CHAPTER 1 GENERAL The QB 78KOMINI is an emulator that connects to
40. ry 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 No of interface signals 1 Interface signal functions in and out relative to direction from target device e RESET in RESET out System reset Monitors target system s power supply Be sure to supply Voo for on chip debugging e Voo in for on chip debugging Select X1 or X2 or select PORT A or B Note 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 operating voltage of 2 7 V must be supplied 2 The Port A and Port B pins vary 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 One access break Software break functions 2000 points Forced break functions Included Execution functions Continuous execution free running execution from cursor position restart and step execution DMM functions Included implemented as temporary break Register manipulation functions Included
41. sh programmer Self check board FP1 connector 14 FLMDO 12 FLMD1 P17 4 AVnErF lt 20000000 09000000 lt 7 gt SCK10 P10 3 S110 P11 Pin layout top view 5 SO10 P12 8 HS P15 1 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 ch0 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 Exa Standard Advanced mple of Settings for PG FP4 Device r Setting file C PROGRAM FILESSFL PRANSET Save As r Parameter file 78F0148H PRM 1 Defaults r Communication interface to device Pulse number 11 Port si0 H S Frequency 10 MHz Speed 625kHz Address o Supply oscillator On Target Hz 7 Multiply rate lt Intemal Direct mode PLL mode 00 Operation Mode C Area 5 Sh
42. t QB 78KOMINI this product lt 4 gt Connection cable for QB 78KOMINI supplied with this product lt 5 gt QB 78KOKX1H DA sold separately 78KO KF 1 device that includes an on chip debug macro 6 QB 30MC YQ 01T or QB 30MC NQ 01T 1 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 ete Notes 1 QB 30MC YQ 01T is equivalent to YSPACK30BK YQGUIDE S3 QB 30MC NQ 01T is equivalent to NSPACK30BK YSPACK30BK YQGUIDE S3 and NSPACK30BK 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 12 User s Manual U17029EJ3VOUM CHAPTER 1 GENERAL Figure 1 4 System Configuration 3 Target device 78KO0 KF 1 Mj lt 5 gt Self check board power supplied via cable 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
43. ue of interrupts which occur during period B shown in 21 while RRM data are being collected is the same 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 78 1 1 OAh When using a device such as the 78K0 Kx2 00h 4 f the interrupt disabled state DI setting is set or the operating clock is switched to Ring OSCN 3 or subclock by the user program during RRM processing the RRM processing is suspended lt 5 gt If RRM is executed during a standby state the standby state is released lt 6 gt 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 the ID78K0 QB 2 Devices in which OCD Control Code V2 00 or later is displayed by selecting About from the Help menu 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 U17029EJ3V0UM 49 CHAPTER 6 CAUTIONS 6 2 Caution on Option Byte Emulation of the option byte which is assigned to
44. user program 5 6 7 8 Example When securing address 0x7E to 0x7F SSS CSEG AT 07EH SSS is any name up to 8 characters DB OFFH OFFH Value at address 0x84 The following settings can be made for the security ID code by setting address Ox84 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 Ox84 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 0x84 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 SSS CSEG AT 084H SSS is any name up to 8 characters DB 2H 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 no longer be performed When the debugger is restarted set the n
45. 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 User s Manual U17029EJ3VOUM 43 CHAPTER 6 CAUTIONS 6 1 Cautions When On chip Debug 1 Reserved area used by QB 78KOMINI The following reserved areas are used by QB 78KOMINI a Flash memory area Addresses 0x02 and 0x03 Addresses 0x7E and 0x7F when using a software break Address 0x84 Addresses 0x85 to Ox8E Addresses Ox8F to 0x18F 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 or the program area starting from address Ox8F OxFF is always

Download Pdf Manuals

image

Related Search

Related Contents

Être animateur / metteur en scène dans une troupe de théâtre  Detailed Specifications  FlyingFish manual v1.51  Domani SI30P5UCOM-EB Installation Guide  Kenroy Home 93086AI Use and Care Manual  b1-2021.  Bedienungsanleitung  SR Series - Ljud & Bildmedia  Mode d`emploi  PHOIBOS  

Copyright © All rights reserved.
Failed to retrieve file