Home
E1/E20 Emulator, E2 Emulator Lite Additional Document for User`s
Contents
1. LENESAS C V o E V Q I E1 E20 Emulator E2 Emulator Lite Additional Document for User s Manual Notes on Connection of RL78 Supported Devices RL78 Family RL78 G10 All information contained in these materials including products and product specifications represents information on the product at the time of publication and is subject to change by Renesas Electronics Corporation without notice Please review the latest information published by Renesas Electronics Corporation through various means including the Renesas Electronics Corporation website http www renesas com Renesas Electronics Rev 2 00 Sep 2015 www renesas com 10 11 12 Notice 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 Renesas Electronics has used reasonable care in preparing the information included in this document 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
2. R LT J R lt O oj N R a 1 i j i HEH i a i Figure 2 10 Internal Circuits of the E2 Lite when the RL78 Family is Connected R20UT2937EJ0200 Rev 2 00 TENESAS Page 18 of 32 Sep 16 2015 E1 E20 E2 Lite Designing the User System 2 7 Notes on Designing the User System 2 7 1 Isolators for the E1 and E20 For a debugging environment where there is a difference in potential between the GND of the user system and that of the host PC use the isolator for the E1 emulator ROEO00010ACB20 which is separately available from Renesas That is use the isolator for the E1 ROEO00010ACB20 with the E2 Lite in such situations The isolator for the E1 ROE000010ACB20 must also be used for the E2 Lite 2 7 2 Low Voltage OCD Board Since the RL78 S1 core device needs 4 5 V to 5 5 V as the voltage for rewriting flash memory if the voltage is less than 4 5 V the debugging functions that require flash memory to be rewritten e g program download cannot be operated When debugging with a voltage less than 4 5 V the low voltage OCD board ROE510Y47LVBO0 or ROE510Y16LVB00 which is sold separately must be prepared For details on the low voltage OCD board refer to the user s manual 2 7 3 Small Connector Conversion Adapter for the E1 A small connector conversion adapter for the E1 ROE000010CKZ11 is separately available from Renesas for user system boards which are too small to mount the 14 pin connector t
3. 510 kQ H RESET OUT RESET i i 1 kQ MCU External circuit RESET_OUT RESET Note 1 It is not necessary in flash programming by the programming software Note 2 Connection is unnecessary when there is no reset circuit on the user system MCU Figure 2 5 Connection Example 1 of RESET Figure 2 6 Connection Example 2 of RESET Do not install capacitors series resistors or filters on signal lines if attempted correct communication may not be established The circuits and resistance values listed are recommended but not guaranteed Determine the circuit design and resistance values by taking into account the specifications of the target device and noise Securely connect pins 2 12 and 14 to GND of the user system These pins are used for electrical grounding as well as for monitoring of connection with the user system by the E1 E20 E2 Lite Securely connect both pin 10 and pin 13 R20UT2937EJ0200 Rev 2 00 TENESAS Page 13 of 32 Sep 16 2015 E1 E20 E2 Lite Designing the User System 2 5 2 TOOLO Pin The E1 E20 E2 Lite uses the TOOLO pin Any functions that are multiplexed on this pin are not available Pull up the signals of the TOOLO pin at 1 kQ and do not arrange these signal lines in parallel with or across other high speed signal lines 14 pin VDD 2 54 mm pitch connector Figure 2 7 Connection Example of the TOOLO Pin Do not use adjacent resistors for pull up of the TOOLO pin because they may
4. 9670 Renesas Electronics Singapore Pte Ltd 80 Bendemeer Road Unit 06 02 Hyflux Innovation Centre Singapore 339949 Tel 65 6213 0200 Fax 65 6213 0300 Renesas Electronics Malaysia Sdn Bhd Unit 1207 Block B Menara Amcorp Amcorp Trade Centre No 18 Jin Persiaran Barat 46050 Petaling Jaya Selangor Darul Ehsan Malaysia Tel 60 3 7955 9390 Fax 60 3 7955 9510 Renesas Electronics India Pvt Ltd No 777C 100 Feet Road HALII Stage Indiranagar Bangalore India Tel 91 80 67208700 Fax 91 80 67208777 Renesas Electronics Korea Co Ltd 12F 234 Teheran ro Gangnam Gu Seoul 135 080 Korea Tel 82 2 558 3737 Fax 82 2 558 5141 2015 Renesas Electronics Corporation All rights reserved Colophon 4 0 E1 E20 Emulator E2 Emulator Lite Additional Document for User s Manual Notes on Connection of RL78 LENESAS Renesas Electronics Corporation R20UT2937EJ0200
5. Electronics products are neither intended nor authorized for use in products or systems that may pose a direct threat to human life or bodily injury artificial life support devices or systems surgical implantations etc or may cause serious property damages nuclear reactor control systems military equipment etc 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 for which it is not intended 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 which the product is not intended by Renesas Electronics 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 certain use conditions Fu
6. Functions 3 8 1 Step Execution 1 Cautions on using step in step execution The value of some SFRs special function registers might remain unchanged while stepping into code If the values of the SFRs do not change while stepping into code operate the microcontroller by continuously executing the instructions instead of executing them in steps Stepping into code Instructions in the user created program are executed one by one Continuous execution The user created program is executed from the current PC value 3 8 2 Go to Here If Go to Here is selected event breakpoints that have been set so far will be temporarily invalidated 3 8 3 Debugging in Standby Mode The break is an interrupt function of the CPU Standby mode is released by the break generated by using the following debugging functions i Forced break 25 Step execution of the standby instruction Stops the user program after execution instruction 35 Short break generated by the pseudo RRM function Break When Readout 45 Short break generated by the pseudo DMM function Break When Write 55 Short break generated by setting a breakpoint while executing the user program R20UT2937EJ0200 Rev 2 00 TENESAS Page 28 of 32 Sep 16 2015 E1 E20 E2 Lite Notes on Usage 3 8 4 Pseudo Real Time RAM Monitor Function or Pseudo Dynamic Memory Modification Function Note the following points when using the pseudo real time RAM monitor RMM function or t
7. The user system may be damaged due to current leakages R20UT2937EJ0200 Rev 2 00 RENESAS Page 21 of 32 Sep 16 2015 E1 E20 E2 Lite Notes on Usage 3 1 2 When Power is Supplied to the User System from the Emulator E1 Only When using the emulator 1 Connect the user system Connect the emulator and the user system with a user system interface cable 2 Connect the host machine and turn on the emulator Connect the emulator and the host machine with a USB interface cable then turn on the emulator 3 Launch the emulator debugger or programming software Launch the emulator debugger or programming software and select the setting of power supply to the user system 4 Connect the emulator debugger or programming software to the emulator Connections may vary depending on software When finished using the emulator 1 Disconnect the emulator debugger or programming software from the emulator Disconnections may vary depending on software 2 Close the emulator debugger or programming software Close the emulator debugger or programming software 3 Turn off the emulator and disconnect the emulator Disconnect the USB interface cable from the emulator then turn off the emulator 4 Disconnect the user system Disconnect the user system interface cable from the user system lt 3 2 Power Supply Function of the E1 E2 Lite When using the power supply function of the E1 E2 Lite check that the voltage is supplied to
8. and the user system with a user system interface cable 3 Connect the host machine and turn on the emulator Connect the emulator and the host machine with a USB interface cable The E1 E2 Lite is turned on by connecting the USB interface cable When using the E20 turn on its power switch 4 Launch the emulator debugger or programming software Launch the emulator debugger or programming software 5 Turn on the user system Turn on the user system 6 Launch the emulator debugger or connect the programming software to the emulator Connections may vary depending on software When finished using the emulator 1 Close the emulator debugger or disconnect the emulator from the programming software Disconnections may vary depending on software 2 Turn off the user system Turn off the user system 3 Close the emulator debugger or the programming software Close the emulator debugger or the programming software 4 Turn off the emulator and disconnect the emulator When using the E20 turn off its power switch Disconnect the USB interface cable from the E1 E2 Lite The E1 E2 Lite is turned off by disconnecting the USB interface cable 5 Disconnect the user system Disconnect the user system interface cable from the user system CAUTION Notes on the User System Power Supply While the power of the user system is on do not turn off the host machine unplug the USB interface cable or turn off the power switch of the E20
9. has increased with the start address of the internal RAM space being OxFFE60 OxFFEDF OxFFEDF OxFFEDF Stack area Stack area for Stack area debugging Stack area 10 bytes Stack area for debugging Available space 10 bytes in internal RAM Stack area for OxFFE60 OxFFE60 ininternal RAM OxFFE6O MOLE Figure 3 2 Variation of Address of Stack Area for Debugging R20UT2937EJ0200 Rev 2 00 RENESAS Page 24 of 32 Sep 16 2015 E1 E20 E2 Lite Notes on Usage 3 3 3 Setting an On Chip Debugging Option Byte This is the area for the security setting to prevent the flash memory from being read by an unauthorized person For settable values refer to the user s manual for each MCU Setting an on chip debugging option byte 1 Set the on chip debugging option byte in either of the following ways a Embed the on chip debugging option byte at address 0xC3 in the user program Embed the on chip debugging option byte at address 0xC3 in the user program b Set the on chip debugging option byte by the build tool For details on the setting method refer to the user s manual for the build tool 1 If the value of the on chip debugging option byte set in the device disables on chip debugging OCDENSET 0 the debugger cannot be started when No is selected in the Permit flash programming property of the debugger If a setting to enable flash programming is made though the debugger can be started the flash memory will be in an e
10. omissions from the information included herein 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 is 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 Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from such alteration modification copy or otherwise misappropriation of Renesas Electronics product Renesas Electronics products are classified according to the following two quality grades Standard and High Quality The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below 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 etc High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems and safety equipment etc Renesas
11. purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction When exporting the Renesas Electronics 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 It is the responsibility of the buyer or distributor of Renesas Electronics products who distributes disposes of or otherwise places the product with a third party to notify such third party in advance of the contents and conditions set forth in this document Renesas Electronics assumes no responsibility for any losses incurred by you or third parties as a result of unauthorized use of Renesas Electronics products 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 Electronics 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 2012 4 E1 E20 E2 Lite Contents Contents Page 0
12. 0x000CC 0x12 0x000CD 0x34 Notes 1 When connecting a debugger to a device for which the security ID has been set the security ID needs to be entered in the debugger For details on the authentication method refer to the user s manual for the debugger in use 2 OxFFFFFFFFFFFFFFFFFFFF which is a setting of only OxFF cannot be set 3 3 5 Area for Pseudo RRM Pseudo DMM To use the pseudo RRM pseudo DMM function in the RL78 S1 core device a part 4 bytes of the RAM area is used for the pseudo RRM pseudo DMM function Information such as whether this area can be allocated by the build tool can be confirmed in the user s manual for the build tool R20UT2937EJ0200 Rev 2 00 TENESAS Page 26 of 32 Sep 16 2015 E1 E20 E2 Lite Notes on Usage 3 4 Reset 3 4 1 Operation after a Reset After an external pin reset or internal reset the monitor program performs debug initialization processing Consequently the time from reset occurrence until user program execution differs from that in the actual device operation If No is selected in Permit flash programming in property of the debug tool the time until the user program is executed compared with the time when Yes is selected is delayed by several 100 ms 3 4 2 SP Value after a Reset While debugging with the E1 E20 E2 Lite the SP value after a reset becomes as follows e FEDO 3 5 Flash Memory 3 5 1 Operation for Voltages Not Permitting F
13. RESET_OUT 74LVC8T 245 74LVC125 E 3 74LVC8T245 RESET i 2 an SET_OU Self recovering 74LVC125 fuse Figure 2 8 Internal Circuit of the E1 when the RL78 Family is Connected TI Emulator control circuit i i i I JEH i l E zl R20UT2937EJ0200 Rev 2 00 TENESAS Page 16 of 32 Sep 16 2015 E1 E20 E2 Lite Designing the User System 2 6 2 Internal Circuits of the E20 when the RL78 Family is Connected Figure 2 9 shows the internal circuits of the E20 with the RL78 family connected User side connector 74LVC125 3 gt sx 74LVC2T245 gt lt lt i a lt lt lt i 74LVC125 a gt p Figure 2 9 Internal Circuits of the E20 when the RL78 Family is Connected Emulator control circuit Sep 16 2015 E1 E20 E2 Lite Designing the User System 2 6 3 Internal Circuits of the E2 Lite when the RL78 Family is Connected Figure 2 10 shows the internal circuits of the E2 Lite with the RL78 family connected User side 100 kQ x 5 Power supply circuit connector only for use in the mode to VDD 8 supply power to the user i system 1 MQ 74LVC12 125 4 RSTPU 74LVC8T 245 I Nuu 74LVC125 TOOLO 5 7ALVC8T245 74LVC125 7ALVC8T245 74LVC125 7ALVC8T245 TE T li Emulator RESET OUT control circuit GND 74LVC125 EMVDD lt 74LVC125 gE ely RESET_OUT lt Self recovering use I R silla lve deI N
14. TTT TrTTTTTTTTTTTTETTT TTT FRITI TTT EEE 5 1 1 Overview of E1 E20 Emulator and E2 Emulator Lite ee seseseeenesennnnannnkaanktannttans 5 1 2 Note on USING e ooRer oE PETOS 5 1 3 Configuration of E1 E20 E2 Lite Manuals c cccccceeeeeeeeeeceeeeeseeeeeeeeeeaeeesaaeseeaaeseeeeeseaeeeeaeeneaeeteaes 6 1 4 Supported DEVICES aise ceeineethncdety aaea cenid Castnavee eed eee cede eae area eteeniadeasaaeeteds 7 2 Designing the User System s dienian aana aa aiaa a lana aa leva Na 8 2 1 Connecting the E1 E20 E2 Lite to the User System ise esenee sneeeennnnssnnnkankntaanatlannkeeant 8 2 2 Installing the Connector on the User SyStem cccccceseceeseeeeeeeeceaeeeeneeseeeeesaaeeesaaesecaeeseaeeesaeeeeaaeeeenees 8 2 2 1 Connecting the User System Interface Cable to the 14 Pin Connector sees ssseeseeeesaneteae 8 2 3 Pin Assignments of the Connector on the User System eieeee esenee esnnnkeankntaannnanntttns 10 2 3 1 14 pin Connector Specifications eecccececeeeseceseeeescececeeeeeneceseeesanecaeessanessaeessaeessaeessanessaaessanessaeseanensaes 10 2 4 Recommended Circuit between the Connector and the MCU ccceecceceeeeeeeeeeeeeeeeeeeeseaeeeeeeteaes 12 2 4 1 Connection between the 14 pin Connector and the RL78 Family MCUS sse esseneseeneennnnetas 12 2 5 Notes ON Connectio
15. This pin is used to transmit command data to the target device 6 RESET_IN Output This pin is used to input a reset signal from the user system 7 R F U 6 8 VDD 9 EMVDD 7 10 RESET OUT 5 Input This pin is used to output a reset signal to the target device 11 R F U 6 12 GND 4 13 RESET OUT 5 Input This pin is used to output a reset signal to the target device 14 GND 4 q For details on the programming software refer to http www renesas com products tools flash prom programming 2 These are the names of the MCU pins at the time the E1 E20 E2 Lite is connected i e during debugging 3 Input to or output from the user system 4 Securely connect pins 2 12 and 14 of the connector to GND of the user system These pins are used for electrical grounding as well as for monitoring of connection with the user system by the E1 E20 E2 Lite 5 Securely connect both pin 10 and pin 13 6 This pin is reserved Perform the open processing 7 Connect VDD R20UT2937EJ0200 Rev 2 00 Sep 16 2015 TENESAS Page 11 of 32 E1 E20 E2 Lite Designing the User System 2 4 Recommended Circuit between the Connector and the MCU This section shows recommended circuits for connection between the connector and the MCU when the E1 E20 E2 Lite is in use For processing of signals refer to section 2 5 Notes on Connection 2 4 1 Connection between the 14 pin Connector and the RL78 Family MCUs Figure 2 4 shows a recommended c
16. affect or may be affected from other pins Do not install capacitors series resistors or filters on signal lines if attempted correct communication may not be established Sep 16 2015 E1 E20 E2 Lite Designing the User System 2 5 3 GND The pins of the connector marked GND must be at the same ground level as the VSS pin of the MCU 2 5 4 VDD Connect the VDD of the connector to the VDD power supply of the user system Use the emulator within the power supply voltage of 1 8 V to 5 5 V and within the operating voltage range of the MCU When power is supplied to the user system from other than the emulator the E1 E20 E2 Lite consumes the power supply for the last output and first input buffers of the emulator E1 3 3 V approximately 20 mA 5 0 V approximately 40 mA E20 3 3 V approximately 40 mA 5 0 V approximately 100 mA E2 Lite 3 3 V approximately 20 mA 5 0 V approximately 40 mA The E1 E2 Lite can supply power to a simple evaluation system E1 Can supply power of 3 3 V or 5 0 V up to 200 mA E2 Lite Can supply power of 3 3 V up to 200 mA When using the power supply function of the E1 E2 Lite check the voltage supplied to the user system Particularly when the 5 0 V supply option is selected the voltage may drop 0 5 V or more since it depends on the USB VBUS power supply voltage The on chip debugging circuit in the device operates during on chip debugging Therefore current consumption of the devic
17. ation Date Sep 16 2015 Rev 2 00 Published by Renesas Electronics Corporation LENESAS SALES OFFICES Renesas Electronics Corporation http Avww renesas com Refer to http www renesas com for the latest and detailed information Renesas Electronics America Inc 2801 Scott Boulevard Santa Clara CA 95050 2549 U S A Tel 1 408 588 6000 Fax 1 408 588 6130 Renesas Electronics Canada Limited 9251 Yonge Street Suite 8309 Richmond Hill Ontario Canada L4C 9T3 Tel 1 905 237 2004 Renesas Electronics Europe Limited Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH U K Tel 44 1628 585 100 Fax 44 1628 585 900 Renesas Electronics Europe GmbH Arcadiastrasse 10 40472 Dusseldorf Germany Tel 49 211 6503 0 Fax 49 211 6503 1327 Renesas Electronics China Co Ltd Room 1709 Quantum Plaza No 27 ZhiChunLu Haidian District Beijing 100191 P R China Tel 86 10 8235 1155 Fax 86 10 8235 7679 Renesas Electronics Shanghai Co Ltd Unit 301 Tower A Central Towers 555 Langao Road Putuo District Shanghai P R China 200333 Tel 86 21 2226 0888 Fax 86 21 2226 0999 Renesas Electronics Hong Kong Limited Unit 1601 1611 16 F Tower 2 Grand Century Place 193 Prince Edward Road West Mongkok Kowloon Hong Kong Tel 852 2265 6688 Fax 852 2886 9022 Renesas Electronics Taiwan Co Ltd 13F No 363 Fu Shing North Road Taipei 10543 Taiwan Tel 886 2 8175 9600 Fax 886 2 8175
18. chi AI an deena Apes AG ka dalan 21 3 l T rning the Power On Off ss 3 seprst aereto ai ance unas nena oae aa eaa a aaa aaa bareli Al genti ardo 21 3 1 1 When a Separate Power Supply is Used for the User System c ccccccccesceceeeeneeeeeeneeeessneeeesssneeeessaees 21 3 1 2 When Power is Supplied to the User System from the Emulator E1 Only e sese senon itas 22 3 2 Power Supply Function of the E1 E2 Lite eee ceceeeeececeeeeeceee cesses eeeeeeseeeeeseaeeeeaaeeeeeeeseaeeesaeeseeeeeaes 22 3 3 MCU Resources to be OCCUPICM ceeeeeeecceceeeeeeeeeeeeaeeeeeeeeceaeeecaaesdeaeeseaeeesaaeeesaaeseeeeeseaeeetaeeseaeeteaes 23 3 3 1 Securing an Area for the Debugging Monitor Program ccsccceseeeeeeeeeeeeeseeeeeeeeeseaeeeeeeeseaeeeeeeeseaeeeeeeenaas 24 3 3 2 Securing a Stack Area for DEDUQGING eecceeeceeeeeeeeneeeeeeeeeeeeeaeeseaeeeeaeeeeaeeeeaeeseaeeeeeeeeeeeeeeseieeeeieeeeaes 24 3 3 3 Setting an On Chip Debugging Option Byte 0 eececceeseneeceeeeeeeeeeeeeeeeeeeseaeeeeeeeseaeeseeeessaeeeeeeessaeeseeeenaas 25 3 3 4 Setting a Security ID eee eee eeeeeeneeeeeeeeeeeeeeeeeeseeeeaeeseaeeeeaeeseaeeseaeeseseeeeaeeseseeseaeeseaeeesaeeseseeseeeseeeeeieeseaes 26 3 3 5 Area for Pseudo RRM PSeCUdO DMM eee eeeeeeseeeeeeneeeeneneeeeeeeaeeeeesaeeeeseaeeeeeeeaeeeseeaaeeesenaeeeeeeeeeesenneeenenaes 26 DA ETT TTRTTETTTRIETTTTRTTTT TTT TTT TETTE TO 27 3 4 1 Operation after a Reset niii ossein ran
19. e increases When evaluating current consumption of the device do not connect the E1 E20 E2 Lite Power supply from the E1 E2 Lite depends on the quality of the USB power supply of the host machine and as such precision is not guaranteed When writing a program that requires reliability do not use the power supply function of the E1 E2 Lite Use a stable separate power supply for the user system When writing a program for mass production processes use the Renesas Flash Programmer For details on the programming software refer to hitp www renesas com producis tools flash prom programming WARNING Warning for Turning the Power On Off When supplying power ensure that there are no shorts between VDD and GND Only connect the E1 E20 E2 Lite after confirming that there are no mismatches of alignment on the user system port connector Incorrect connection will result in the host machine the E1 E20 E2 Lite and the user system emitting smoke or catching fire R20UT2937EJ0200 Rev 2 00 TENESAS Page 15 of 32 Sep 16 2015 E1 E20 E2 Lite Designing the User System 2 6 Internal Circuits of the Emulator 2 6 1 Internal Circuits of the E1 when the RL78 Family is Connected Figure 2 8 shows the internal circuits of the E1 with the RL78 family connected User side Power supply circuit connector only for use in the mode to supply power to the user system 100 kQ x 2 laa maj 74LVC125 RESET IN 74LVC8T245 TANG 125
20. e trace function and the real time RAM monitoring function which are the primary features of the E20 the target MCU must be equipped with a pin for outputting trace information The available functions are equivalent to those of the E1 E2 Lite only the internal trace function in the MCU and memory reference and modification during execution The power supply function from the E20 is not supported R20UT2937EJ0200 Rev 2 00 TENESAS Page 5 of 32 Sep 16 2015 E1 E20 E2 Lite Overview 1 3 Configuration of E1 E20 E2 Lite Manuals The E1 E20 E2 Lite manuals consist of multiple parts the E1 E20 Emulator User s Manual the E2 Emulator Lite User s Manual and the additional documents for the user s manual for each MCU Be sure to read each part before using the E1 E20 E2 Lite 1 E1 E20 Emulator User s Manual The E1 E20 emulator user s manual has the following contents e Components of the E1 E20 e Hardware specifications of the E1 E20 e Connection to the E1 E20 and the host machine and user system 2 E2 Emulator Lite User s Manual The E2 Emulator Lite user s manual has the following contents e Components of the E2 Lite e Hardware specifications of the E2 Lite e Connection to the E2 Lite and the host machine and user system 3 E1 E20 Emulator E2 Emulator Lite Additional Document for User s Manual Notes on Connection of RL78 The E1 E20 Emulator E2 Emulator Lite Additional Document for User s Manual Note on Connection f
21. eeeaeeeeeeesaeeeeeecaeesaeesaeeeeeesaeeseeeescaeeseeeescaeeseeeesiaeeeeeeenaas 29 R20UT2937EJ0200 Rev 2 00 TENESAS Page 3 of 32 Sep 16 2015 E1 E20 E2 Lite Terminology Terminology Some specific words used in this user s manual are defined below Host machine This means a personal computer used to control the emulator User system This means a user s application system in which the MCU to be debugged is used User program This means the program to be debugged Programming software In this document this indicates Renesas Flash Programmer that can be used with the E1 E20 or E2 Lite at the end of a pin name signal name at the end of a pin name signal name indicates that the pin signal is active low e g RESET Sep 16 2015 E1 E20 E2 Lite Overview 1 Overview 1 1 Overview of E1 E20 Emulator and E2 Emulator Lite In this document we describe E1 Emulator as Et E20 Emulator as E20 and E2 Emulator Lite as E2 Lite The E1 E20 and E2 Lite are on chip debugging emulators for Renesas mainstream MCUs The E1 and E2 Lite are highly affordable development tools providing basic debugging functions The E20 is a development tool allowing sophisticated debugging through enhanced functions such as tracing and RAM monitoring as well as the basic debugging functions of the E1 and E2 Lite The E1 E20 E2 Lite can also serve as a Flash Programmer 1 2 Note on Using E20 To use the larg
22. ents of the reset vector area are changed control by the E1 E20 E2 Lite is no longer possible R20UT2937EJ0200 Rev 2 00 TENESAS Page 23 of 32 Sep 16 2015 E1 E20 E2 Lite Notes on Usage 3 3 1 Securing an Area for the Debugging Monitor Program You may need to secure the area to which the debugging monitor program is to be allocated The monitor program initializes the debugger communications interface and handles processing to make the CPU run or break execution This user program or data must not be placed within 23 bytes of the on chip debugging option byte In addition the reset vector must be changed if it points to an address to which the monitor program is allocated Securing the area Specifically securing the area for the monitor program is not necessarily required if the user program does not use the area However to avoid problems that may occur while the debugger is starting up we recommend securing this area in advance by using a build tool or some other means 3 3 2 Securing a Stack Area for Debugging The debugger requires 10 bytes as a stack area for debugging Since this area is allocated immediately after the stack area the address of this area varies depending on the stack increase and decrease That is 10 extra bytes are consumed for the stack area used Make sure the stack area for debugging does not exceed the range of the internal RAM space Figure 3 2 shows an example in which the stack area
23. hat is the standard connector for the E1 and E2 Lite By using the adapter you can reduce the area taken up by the connector mounted on your system However when you use the small connector conversion adapter for the E1 be aware that the pin assignments of the connector differ from those of the standard interface connector for the E1 and E2 Lite The pin assignments on the 14 pin connector when the small connector conversion adapter for the E1 is used are shown in Table 2 4 The small connector conversion adapter for the E1 can also be used with the E2 Lite User system interface cable for E1 ROE000010KCE00 or E2 Lite RTEOTOOO2LKCEOOOOOR Small connector conversion adapter for the E1 ROEQ00010CKZ11 CN1 CN2 14 pin connector on the user system Orientation key TFM 107 02 L D SMT or TFM 107 01 L D DIP manufactured by Samtec Inc Pin1 Pin 13 User system Figure 2 11 Usage of the Small Connector Conversion Adapter for the E1 R20UT2937EJ0200 Rev 2 00 TENESAS Page 19 of 32 Sep 16 2015 E1 E20 E2 Lite Designing the User System Table 2 4 Connector Pin Assignments when the Small Connector Conversion Adapter for the E1 is Used Pin RL78 G10 Note No Signal 1 2 Direction 3 1 GND 4 2 R F U 6 3 VDD 4 R F U 6 5 RESET OUT 5 Input This pin is used to output a reset signal to the target device 6 GND 4 7 RESET OUT 5 Inpu
24. he pseudo Dynamic Memory Modification DMM function e Standby mode HALT or STOP may be cancelled during monitoring e The pseudo RRM function or the pseudo DMM function does not operate while the CPU operating clock is stopped e When the number of monitoring points is numerous the response of the debugger becomes slow e Influence of the debugger response becomes small by using a watch panel instead of a memory panel e Four bytes of the RAM area are used when the pseudo RRM and pseudo DMM functions are used The RAM area to be used when using the pseudo RRM and pseudo DMM functions should be set by the build tool For details on setting the area refer to the user s manual for the build tool If no area is set the four bytes at the beginning of the RAM area will be used 3 8 5 Software Break Function The RL78 S1 core device does not have the software break function The hardware break function can be used alternatively but a break will occur several instructions after the breakpoint because the hardware break function generates a break after execution of the instruction at the breakpoint Note that if a branch occurs between the breakpoint and the point where program execution stops the break appears to have not occurred at the breakpoint in some cases R20UT2937EJ0200 Rev 2 00 TENESAS Page 29 of 32 Sep 16 2015 E1 E20 Emulator E2 Emulator Lite Additional Document for User s Manual Notes on Connection of RL78 Public
25. ie aaee aea eaa eaaa aaia anaE E Raia ea i arannira 27 34 2 SP Value after a Reset iiss o uero sno planado ko Het l id un et o ed al 27 320 Fas MEMO p ren een En E EN ME E ONE PON EO 27 3 5 1 Operation for Voltages Not Permitting Flash Memory Rewriting ieeeeeee esee essenesaeeeenntttas 27 3 5 2 Notes on Flash Memory Rewriting eecceeeeeseeeeeeneeeeeneeeeeenaeeeeeeaeeeeseaaeeeeeaeeeseeaaeeeseaeeeeeeaeeeeneneeeneaaes 27 3 6 MCUs that are Used in D DUQQING ecececeeececeneeeeeeeeeeeee cae eecaaeseeeeeseeeeesaaeeesaaeseeeeeseaeeesiaeeseneeteaes 28 3 6 1 Usage in Mass Production ee eceeeseeeeeeneeeeeneeeeeenaeeereaeeeeseneeeeeeaaeeeseaeeeeseaeeeeseaeeesesaseseseneeeesseneeeeeeaaes 28 3 7 Final Evaluation of the User Program c ceceeceeeeeeeeeeeeeeeeeeeeeaeeeeeeaeeeeesaeeeeeseeeeeeeeeeeeeseneeeeeeeeneeees 28 3 8 Debilg FUNCIONS orriari aeiia aa ia aaae EAE NAE a EEEE EE RE EA EES 28 ss Is ejo oo hboG bhbhbhbhbh i iN 1 mp 1 1 mm ip p E e nn nn NT 28 3 8 2 G0 t0 Here s si s psn vona pod Lo aan aaa aaa Laba pa tbe Laa kake aa a a kanbo pk sall aa E Aaa E E EAA aat 28 3 8 3 Debugging in Standby Mode 00 ecceeeeeceeeeeeeeeeeeeeeeeeceaeeeeeeesaeeeeaeesaeeeaeeseaeeseeeesaaeeseeeescaeeseeeesiaeeeeeeensas 28 3 8 4 Pseudo Real Time RAM Monitor Function or Pseudo Dynamic Memory Modification Function 29 3 8 5 Software Break FUNCTION eecceceeeeeeeeeeeeeeee
26. ights must be no greater than 10 mm Page 9 of 32 TENESAS R20UT2937EJ0200 Rev 2 00 Sep 16 2015 E1 E20 E2 Lite Designing the User System CAUTION Notes on connector insertion and removal When connecting or disconnecting the user system interface cable and the emulator or user system grasp the connector cover at the end of the cable Pulling the cable itself will damage the wiring Also be aware that the user system interface cable has the direction in which it must be inserted lf the cable is connected in the wrong direction it may be damaged Correct example Incorrect example 2 3 Pin Assignments of the Connector on the User System 2 3 1 14 pin Connector Specifications Figure 2 3 shows the specifications of the 14 pin connector Table 2 2 on the following pages shows the pin assignments of the 14 pin connector Pin 1 mark Connector EMIL 25 0 23 0 6x2 54 15 24 Connector top view a Pin2 Pin 1 Pin 1 mark Unit mm Figure 2 3 Emulator Connector Specifications 14 Pins R20UT2937EJ0200 Rev 2 00 TENESAS Page 10 of 32 Sep 16 2015 E1 E20 E2 Lite Designing the User System Table 2 2 14 Pin Connector Pin Assignments Pin RL78 G10 Note No Signal 1 2 Direction 3 1 R F U 6 2 GND 4 3 R F U 6 4 RSTPU Input This pin is used to pull up the reset line 5 TOOLO VO
27. ircuit for connection between the 14 pin connector and the RL78 family MCUs 14 pin 2 54 mm pitch connector RESET IN Reset circuit Note 3 470 to 510 Q RESET_OUT Note 3 Note 6 VDD EVDD Figure 2 4 Example of Connection between the 14 Pin Connector and the RL78 Family MCUs Notes 1 The circuits and resistance values listed are recommended but not guaranteed Determine the circuit design and resistance values by taking into account the specifications of the target device and noise For flash programming for mass production perform sufficient evaluation about whether the specifications of the target device are satisfied 2 For processing of pins not used by the E1 E20 E2 Lite refer to the hardware manual for the device 3 The recommended circuit for the RESET pin differs depending on whether the multiplexed functions are used For details on how to handle the RESET pin also refer to section 2 5 Notes on Connection 4 The RESET_IN pin is used only in debugging It is not necessary in flash programming by the programming software 5 Securely connect pins 2 12 and 14 of the connection to GND of the user system These pins are used for electrical grounding as well as for monitoring of connection with the user system by the E1 E20 E2 Lite 6 Securely connect both pin 10 and pin 13 Sep 16 2015 E1 E20 E2 Lite Designing the User System 2 5 Notes on Connection Wiring patterns between the connector a
28. lash Memory Rewriting When a voltage with which rewriting or erasure of flash memory cannot be performed has been selected or flash programming has been disabled with the debugger s property the debugger operations that rewrite flash memory will cause an error in the debugger and the operations will be invalidated 3 5 2 Notes on Flash Memory Rewriting In the RL78 S1 core device a pin reset is always necessary for rewriting of flash memory For this reason a pin reset always occurs at debugger operations download rewriting of flash memory from a memory window etc that accompany rewriting of flash memory Since a part of the RAM area OFFEC6h to OFFECFh is used by the E1 E20 E2 Lite at rewriting of flash memory the RAM data will be rewritten R20UT2937EJ0200 Rev 2 00 RENESAS Page 27 of 32 Sep 16 2015 E1 E20 E2 Lite Notes on Usage 3 6 MCUs that are Used in Debugging 3 6 1 Usage in Mass Production MCUs that are connected to the E1 E20 E2 Lite and used in debugging are placed under stress by repeated programming of flash memory during emulation Do not use MCUs that were used in debugging in mass production for end users 3 7 Final Evaluation of the User Program Before entering the mass production phase be sure to perform a final evaluation of the program which is written to flash ROM by the Renesas Flash Programmer PG FP5 etc Be sure to perform the evaluation singly without the E1 E20 E2 Lite connected 3 8 Debug
29. m Interface Cable to the 14 Pin Connector Figure 2 1 shows an example of connection between a user system interface cable of the 14 pin type and the E1 E2 Lite Figure 2 2 shows an example of connection between the cable with the 14 pin connector and the E20 via the 38 pin to 14 pin conversion adapter 14 pin user system interface cable 14 pin connector 7614 6002 or 2514 6002 ae User system Pin 1 Figure 2 1 Connecting the User System Interface Cable to the 14 Pin Connector of the E1 E2 Lite R20UT2937EJ0200 Rev 2 00 TENESAS Page 8 of 32 Sep 16 2015 Designing the User System E1 E20 E2 Lite 38 pin user system interface cable 7 9 4 mm K k 26 2 mm 38 pin to 14 pin conversion adapter 94 mm K 14 pin connector 7614 6002 or 5 2 38 pin to 14 pin conversion adapter top view 2514 6002 User system Figure 2 2 Connecting the User System Interface Cable to the 14 Pin Connector of the E20 Emulator AN CAUTION Limit to the height on connector periphery For a case where the ROE000200CKA00 is used for connecting the E20 to a 14 pin connector do not mount other components with a height of 10 mm or more within 5 mm of the connector on the user system Type number 7614 6002 manufactured by 3M Japan Ltd 2514 6002 manufactured by 3M Ltd The emulator is connected from this direction 5mm 5mm 5mm Area with limit on mounted components he
30. n 0 ceeececeeeeeceeeeeeeeeceeeeeceaeeecaaeeeeneeseaeeeeaaeseeaaeeeeeeecaeeeeaaesdeaeeseaeeesaeesaeseeneeseaees 13 Asr E S RETA RTTTTTTTITTTTTTTTTETTTTTTTTTTTTTTTTTTTT TE TETITESI 13 25 2 TOOLO Piiira eba rere a Ln Ma ekbatas 14 20 3S DA E a TTTRTTTTTTTTTRETTTETTTTTTRT TTT 15 Asmoo o oHH h heon opere ep nn pnr Tr rep pu rr NIO 15 2 6 Internal Circuits of the Emulator cccccceeseeceeececeeeeeeeeeeeeeeeceaeeesaaeeseaeeseaeeesaaeeeeaaeseeeeeseaeesscaeeseneeseaes 16 2 6 1 Internal Circuits of the E1 when the RL78 Family is Connected cceeceeeeeeeteeeeeeeeeneeeeneeeeneeeeeeeteaes 16 2 6 2 Internal Circuits of the E20 when the RL78 Family is Connected iie esee eseneseannenennetas 17 2 6 3 Internal Circuits of the E2 Lite when the RL78 Family is Connected iee esis seenesenetitoo 18 2 7 Notes on Designing the User System ccescceceeeeeeneceeeeeeeaeeesaaeeeeaeeseaeeesaaeeeeaaeseeeeeseaeeesiaeeseaeeeeaes 19 2 7 1 lsolators for the Et and E20 irc senm sngnrn e sr ee tetera deel La prelo elea ba Kaa aere 19 2 7 2 Low Voltage OCD Board 00 c ceecceescceesceeeneeeeeceseseeeeaceceaeeseaeeceaeeseaeeseaeeseaeeseaeeeeaeeseaeesnaeeseseeseaeeseeeeeeeeeaes 19 2 7 3 Small Connector Conversion Adapter for the El oo eceeeseseeeeeeeeeeeeeeeeeeeseaeeeeeeeseaeeeeeeeseaeeseaeesiaeeeeeeenaas 19 3 Noles on Usage sm a ieee eee
31. nd the MCU must be as short as possible within 50 mm is recommended Do not connect the signal lines between the connector and MCU to other signal lines on the board For the handling of pins while the E1 E20 E2 Lite is not in use refer to the hardware manual for the MCU 2 5 1 RESET Pin The RESET pin is used by the E1 E20 E2 Lite to monitor the pin state and issue a reset to the device Therefore a reset signal on the user system is once input to the E1 E20 E2 Lite where it is controlled by masking and then output to the target device Connection examples of the RESET pin section are shown in Table 2 3 Figure 2 5 and Figure 2 6 When flash programming by the programming software is to be performed the RESET pin should be designed so that the reset signal on the user system does not conflict with the reset signal from the E1 E20 E2 Lite Table 2 3 Connection Examples According to the Reset Circuit on the User System Target Device Case Reference RL78 G10 There is a reset circuit on the user system Figure 2 5 There is no reset circuit on the user system Figure 2 6 when using the P125 KR1 function which is multiplexed with RESET lt Connection Example 1 of RESET gt Recommended Circuit 14 pin 2 54 mm pitch connector lt Connection Example 2 of RESET gt when using the P125 KR1 SI01 function which is multiplexed with RESET 14 pin 2 54 mm pitch connector RESETIN Reset circuit RESET_IN i RSTPU i 470 to
32. or RL78 describes information necessary for hardware design such as connection examples interface circuits and notes on using the emulator 4 User s manual and help for the emulator debugger The user s manual and help for the emulator debugger describe the functions of the E1 E20 emulator debugger and the operating instructions Refer to the following for E1 E20 e CS Integrated Development Environment User s Manual RL78 Debug e Help for e2 studio Refer to the following for E2 Lite e Help for e2 studio When using C SPY made by IAR Systems also refer to IAR C SPY Hardware Debugger System User Guide issued by IAR Systems published by IAR Systems R20UT2937EJ0200 Rev 2 00 TENESAS Page 6 of 32 Sep 16 2015 E1 E20 E2 Lite Overview 1 4 Supported Devices Table 1 1 Supported Device List Item Description Target MCUs RL78 family RL78 S1 core 1 RL78 G1x _RL78 G10 1 For details on the RL78 S1 core refer to RL78 Family User s Manual Software 2 When using the RL78 G10 refer to E1 E20 Emulator E2 Emulator Lite Additional Document for User s Manual Notes on Connecting RL78 Table 1 2 Debugging Function List Type of the Description RL78 Core RL78 S1 Memory reference or change during program execution Pseudo real time RAM monitor RRM Supported CPU is used when monitoring Dynamic Memory Modification DMM Supported CPU is used when changing Event Max 2 points Can be used for a hardware b
33. rased state when the debugger is started R20UT2937EJ0200 Rev 2 00 TENESAS Page 25 of 32 Sep 16 2015 E1 E20 E2 Lite Notes on Usage 3 3 4 Setting a Security ID This setting is required to prevent the memory from being read by an unauthorized person Embed a security ID at addresses 0xC4 to OxCD in the internal flash memory The debugger starts only when the security ID that is set during debugger startup and the security ID set at addresses 0xC4 to 0xCD match If the ID codes do not match the debugger manipulates the target device in accordance with the value set to the on chip debug option byte area refer to the hardware manual for each MCU If the user has forgotten the security ID to enable debugging erase the flash memory and set the security ID again Set the security ID in either of the following ways When both methods a and b are carried out at the same time method b has priority a Embed the security ID at addresses 0xC4 to OxCD in the user program For example if the security ID is embedded as follows the security ID set by the debugger is 0123456789ABCDEF 1234 not case sensitive Note 2 b Set the security ID by common options of the build tool For details on the setting method refer to the user s manual for the build tool Table 3 1 Example of Security ID Setting Address Value 0x000C4 0x01 0x000C5 0x23 0x000C6 0x45 0x000C7 0x67 0x000C8 0x89 0x000C9 OxAB 0x000CA OxCD 0x000CB OxEF
34. reak Break Software break Not supported Hardware break Supported Execution address Forced break Supported Acquired information Not supported Start event Not supported End event Not supported Execution Measurement item Supported Between start and stop of user program execution time Performance Supported Resolution 100 us measurement Maximum measurement time Approx 119 hours 18 minutes Hot plug in Not supported Coverage measurement Not supported Sep 16 2015 E1 E20 E2 Lite Designing the User System 2 Designing the User System 2 1 Connecting the E1 E20 E2 Lite to the User System To connect the E1 E20 E2 Lite to the user system a connector for the user system interface cable must be mounted on the user system When designing the user system read this section of this manual and the hardware manual for the MCU in use 2 2 Installing the Connector on the User System Table 2 1 shows the recommended connectors for the E1 E20 E2 Lite Table 2 1 Recommended Connectors Connector Specifications 14 pin connector 7614 6002 3M Japan Limited 14 pin straight type Japan 2514 6002 3M Limited 14 pin straight type other countries Connection to the 38 pin connector of the E20 is not supported To use the E20 use the 38 pin to 14 pin conversion adapter that comes with the E20 for connection to the 14 pin connector on the user system 2 2 1 Connecting the User Syste
35. rther 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 systems 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 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 You should not use Renesas Electronics products or technology described in this document for any
36. t This pin is used to output a reset signal to the target device 8 R F U 6 9 R F U 6 10 TOOLO VO This pin is used to transmit command data to the target device 11 R F U 6 This pin is used to pull up the reset line 12 RESET IN Output This pin is used to input a reset signal from the user system 13 EMVDD 7 14 GND 4 For details on the programming software refer to http www renesas com products tools flash prom programming 2 These are the names of the MCU pins at the time the E1 E20 E2 Lite is connected i e during debugging 3 Input to or output from the user system 4 Securely connect pins 1 6 and 14 of the connector to GND of the user system These pins are used for electrical grounding as well as for monitoring of connection with the user system by the E1 E20 E2 Lite 5 Securely connect both pin 5 and pin 7 6 This pin is reserved Perform the open processing 7 Connect VDD R20UT2937EJ0200 Rev 2 00 TENESAS Page 20 of 32 Sep 16 2015 E1 E20 E2 Lite Notes on Usage 3 Notes on Usage 3 1 Turning the Power On Off Turn on or off the power of the E1 E20 E2 Lite and the user system following the procedure below 3 1 1 When a Separate Power Supply is Used for the User System When using the emulator 1 Check that the power is off Check that the user system is turned off When using the E20 check that its power switch is off 2 Connectthe user system Connect the emulator
37. the user system Particularly when the 5 0 V supply option is selected the voltage may drop 0 5 V or more since it depends on the USB VBUS power supply voltage Note that the E2 Lite supports power supply of 3 3 V only R20UT2937EJ0200 Rev 2 00 RENESAS Page 22 of 32 Sep 16 2015 E1 E20 E2 Lite Notes on Usage 3 3 MCU Resources to be Occupied Figure 3 1 shows the areas which are occupied by the E1 E20 E2 Lite for debugging These areas shaded sections are used for debugging These areas should not be changed to save the user program or data If a change is made control by the E1 E20 E2 Lite is no longer possible However when No is selected in the Permit flash programming property of the debugger the internal ROM space shown in Figure 3 1 is not used only the internal RAM space is used When selecting not to permit flash memory rewriting with the debugger s property also refer to section 3 3 3 Setting of On Chip Debugging Option Byte Internal ROM Internal RAM space space Internal 7 Internal ROM end o Mr area RAM end address VANIS address Area for pseudo RRM pseudo DMM 000D8h 4 bytes Security ID area STT GET 000C4h DISC debugging 10 bytes On chip debug option byte area 000C3h 1 byte 00004h 2 bytes 00002h y 2 byt 00000h yes Figure 3 1 MCU Resources to be Occupied 1 The reset vector area is used by the program for the E1 E20 E2 Lite when performing debugging with the E1 E20 E2 Lite If the cont
Download Pdf Manuals
Related Search
Related Contents
ダウンロード Itinerario led Philips DVP3980K/55 User's Manual Mistral 360 v2.00 - technoprint Hypertec 60GB 2.5" Firestorm Copyright © All rights reserved.
Failed to retrieve file