Home

E1/E20 Emulator Additional Document for User`s Manual (Notes on

image

Contents

1. Contents Mss OURVINNG ccc os cop Fase ma E aa AA aA pe rn e Oro Teorie eme pen nmn OI 4 11 Features of an E1 or E20 emulator o oo ccc cccccccceeseseseseecesesesescscesesescsaesesesesesseseseeesacsesesesesesesesceaeseeeseeseseuseeeseseseeseseaesenececseseneees 4 1 2 Cautions on using the E20 emulator eee eesesessssseseseseseescscscsescseseseneaeseaesesescenessesesecsscesscecacecseseaeacacaeaeaeaeeeeeeeeeenenseeeeeeeeeeees 4 1 3 Configuration of ManUallS sess sss sac a E SATO NNU OA SEGOJ 4 2 Connecting the Emulator and User System eieisieseseseesneenetsnnnttenktentnantInnKInnKiInIIPenKII KIII KIKIIIIIIIIKIIIKIIAIIIA 5 21 Connector mounted on the user system w5 2 2 Pin assignments of the COMMECTOLM 0 0 0 0 ececececseessesesesesesesesescscecsescsesssesssescscscsensscacaeacseaeaeaesesecssscssssesseeseesesecececseasacacaeacacacacaeaeeseseed 6 2 3 Examples of recommended connections between the connector and MCU sss seeseseseseseseeieeneseenie 7 2 3 1 Example of recommended Connections cececcesesssssesssessesesesenesesesesesesesesesesesecssesesensecsesensecssscacacacaeseseacacacaeacaneeseseeeeeeneeees 7 2 3 2 Connecting the RESET Pln 2 sis ASA SE GA ESN NU SANIGAN GIS diamant 11 2 3 3 Connecting the TYDD pin ss SA aet een E ERA ENEE ERa Eai Nias R OE TEE e eds EEA TE A EPER EE 12 2 3 4 Hot plug in adapter for the E1 CMmUulator oo eee eceseeseesee
2. TVDD GND GND GND EnVCC SYSVCC Reset circuit min 95K e Refer to section 2 3 2 Connecting the RESET pin for more information on the reset circuit Target device SYSVCC EnVCC EnVSS FLMDO P4_5 FLMD1 Note1 Figure 2 3 Example of Connection e For details on TVDD refer to section 2 3 3 Connecting the TVDD pin e Make wiring runs between the 14 pin connector and target device as short as possible within 50 mm is recommended Do not connect the signal lines between the connector and MCU to other signal lines e Use GND to apply a guard ring for the wiring runs between the 14 pin connector and target device Do not route high speed signal lines parallel to each other or allow them to cross each other e Pin names may vary among target devices Refer to the user s manual for the target device you are using for the actual pin names e Proceed with appropriate processing for pins of target devices which do not require connection to the emulator in accord with the descriptions in Handling of Unused Pins in the user s manual for the target device Note 1 Design the circuit so that the FLMD1 pin must be at the low level during programming R20UT3122EJ0100 Rev 1 00 Oct 01 2015 TENESAS Page 9 of 28 E1 E20 Emulator 2 Connecting the Emulator and User System 3 Connection which allows Only programming 1 wire UART 14 pin c
3. 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 Additional Document for User s Manual Notes on Connection of RH850 P1M C and RH850 P1H C LENESAS Renesas Electronics Corporation R20UT3122EJ0100
4. debugger Software resets will not be generated during single step execution in response to processing for setting a software reset or when the debugger writes to the setting register for a software reset during a break the request for a reset will be held No 10 Interrupts when stepped execution is in use EIINT FEINT and FPI are held pending if they occur during single step execution Other interrupts are always accepted Acceptance of interrupts during C source level step execution depends on the facilities of the debugger R20UT3122EJ0100 Rev 1 00 Page 20 of 28 Oct 01 2015 RENESAS E1 E20 Emulator 4 Notes on Usage No 11 Stepped execution of the HALT instruction When a HALT instruction is encountered during single step execution execution in units of assembly instruction a break is set at the next instruction following the HALT instruction and the mode does not change to the HALT mode When a HALT instruction is encountered during C source level stepped execution whether or not the transition to the HALT mode proceeds depends on the facilities of the debugger No 12 Cautionary note when the emulator is connected pin reset The reset signal continuing to be asserted while communications between the emulator and MCU are being prepared when the emulator is started raises the possibility of incorrect communications Thus ensure that the reset signal does not remain asserted when the emulator is started No 13 Cau
5. resources in the MCU Access to I O resources registers and RAM in the MCU by the debugger i e access through the memory or I O register window proceeds in the same way as access from a user program Examples for the actual operation of I O resources refer to the manual of the MCU you are using Access to DTC RAM resources Normal access will not proceed unless a master i e CPU1 or CPU2 is allocated to use the channel When access is attempted while a master has not been allocated an error will be detected on the ECM side Access to FCU RAM resources Normal access will not proceed unless the FCU RAM enable bit is set Access to the PBG guard area Attempted access to the PBG guard area will not proceed while the guard is enabled R20UT3122EJ0100 Rev 1 00 Page 21 of 28 Oct 01 2015 RENESAS E1 E20 Emulator 4 Notes on Usage No 16 Cautionary point regarding hot plug in connection e When the OPJTAG 1 0 bits of the option byte register are not set for the LPD operation mode at the time of hot plug in connection a connection error occurs Thus before proceeding with hot plug in connection set the OPJTAG 1 0 bits for the LPD operation mode e Allowing hot plug in connection prevents usage of the optional isolator for the E1 emulator the isolator is only for use with the RH850 and RL78 groups e Allowing hot plug in connection prevents the supply of power to the user system by the E1 emulator e After completing h
6. C T o A T lt Q 3 I 2CENESAS E1 E20 Emulator Additional Document for User s Manual Notes on Connection of RH850 P1M C and RH850 P1H C Supported Devices RH850 Family RH850 P1x Series 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 Corp without notice Please review the latest information published by Renesas Electronics Corp through various means including the Renesas Electronics Corp website http www renesas com Renesas Electronics Rev 1 00 Oct 2015 www renesas com Notice l 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 2 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 omissions fro
7. E20 emulator pin 13 RESET pin of the 14 pin connector must be connected to the reset pin of the target device Figure 2 5 below shows an example The E1 or E20 emulator fixes the RESET pin to the low level before the debugger is activated After the debugger is activated the emulator either keeps the pin at the low level or places it in the high impedance state in accord with the operation of the debugger 14 pin connector Target device An example SYSVCC 4 7K to 10K RESET terminal Figure 2 5 Example of Connecting Reset Circuit e Output of the reset circuit should be either n channel open drain or be a signal generated solely by a resistor and capacitor and possible other components e The maximum sink current accepted by the RESET pin of the E1 or E20 emulator is 2 mA Select an appropriate pull up resistance which does not surpass this value e For the target device in this document pull the RESET signal up to the SYS VCC voltage e Adjust the time constant of the reset circuit so that the time elapsing before the signal reaches 80 of the high level from the low level is within 900 us e When you use hot plug in consider installation of a capacitor between the reset signal and GND in order to suppress a noise In this case however the specifications of the time described above must be satisfied R20UT3122EJ0100 Rev 1 00 Page 11 of 28 Oct 01 2015 RENESAS E1 E20 Emulator 2 Connecting the E
8. 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 6 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 7 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 condition
9. JPO 4 TRSTZ LPDRSTZ LPDCLKOUT JPO 5 LPDCLKOUT FPMDO FLMDO min 9 1K p4_5 FLMD1 Note 1 S min 95K Vv Reset circuit Figure 2 2 Example of Connection e Refer to section 2 3 2 Connecting the RESET pin for more information on the reset circuit e For details on TVDD refer to section 2 3 3 Connecting the TVDD pin e Make wiring runs between the 14 pin connector and target device as short as possible within 50 mm is recommended Do not connect the signal lines between the connector and MCU to other signal lines e Use GND to apply a guard ring for the wiring runs between the 14 pin connector and target device Do not route high speed signal lines parallel to each other or allow them to cross each other e Pin names may vary among target devices Refer to the user s manual for the target device you are using for the actual pin names e Proceed with appropriate processing for pins of target devices which do not require connection to the emulator in accord with the descriptions in Handling of Unused Pins in the user s manual for the target device Note 1 Design the circuit so that the FLMD1 pin must be at the low level during programming R20UT3122EJ0100 Rev 1 00 Page 8 of 28 Oct 01 2015 RENESAS E1 E20 Emulator 2 Connecting the Emulator and User System 2 Connection which allows Only programming 1 wire UART or 2 wire UART 14 pin connector EnVCC
10. SB interface cable 4 Disconnecting 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 emulator The user system may be damaged due to leakage current When Power is supplied to the user system from the emulator E1 emulator lt When using the emulator gt 1 Check the power is off Check that the user system is turned off 2 Connect the user system Connect the emulator and user system with a user system interface cable 3 Connect the host machine and turn on the emulator Connect the emulator and host machine with a USB interface cable then turn on the emulator 4 Launch the debugger Launch the debugger and select the setting of power supply to the user system lt When finished using the emulator gt 1 Close the debugger Close the debugger 2 Turn off the emulator and disconnect the emulator Disconnect the USB interface cable from the emulator then turn off the emulator 3 Disconnecting the user system Disconnect the user system interface cable from the user system No 9 Software resets and debugging Resets are always masked during single step execution and breaks Whether resets are masked during C source level stepped execution depends on the facilities of the
11. a bus steals cycles Debugging console Unavailable Downloading of the external flash memory Hot plug in requires a separately sold hot plug in adapter Peripheral breaks Not possible Possible Available R20UT3122EJ0100 Rev 1 00 Oct 01 2015 TENESAS Page 14 of 28 E1 E20 Emulator 3 Specifications Security 32 byte ID code authentication Connection interface 4 pin LPD 5 5 MHz 11 MHz Programming related Security flag settings Available items Connection interface 2 wire UART 1 wire UART Note The function to stop peripheral I O operation in a break is called the peripheral break function Whether peripheral breaks are set or not is determined by the debugger Refer to the manual for the debugger you are using for how to set them Refer to the manual for the MCU you are using to check whether peripheral breaks are set R20UT3122EJ0100 Rev 1 00 Page 15 of 28 Oct01 2015 RENESAS E1 E20 Emulator 4 Notes on Usage 4 Notes on Usage Cautionary notes on using the E1 or E20 emulator are given below 4 1 Notes on differences in operation between the actual device and the E1 or E20 emulator No 1 Cautionary note on the DBTRAP instruction The DBTRAP instruction is used for software breaks and thus cannot be used in programs with the emulator No 2 AUDR function When an emulator is connected the advanced user debugger RAM monitoring AUDR function which suppo
12. and E1 or E20 emulator e The MCU E1 or E20 emulator and the software are used as described in respective user s manuals e The supply of power to the user system is stable No 8 Turing the power on off Turn the power of the E1 or E20 emulator and the user system following the procedure below When a separate power supply is used for the user system lt When using the emulator gt 1 Check the power is off Check that the user system is turned off When using the E20 emulator check its power switch is off 2 Connect the user system Connect the emulator 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 emulator is turned on by connecting the USB interface cable When using the E20 emulator turn on its power switch 4 Turn on the user system Turn on the user system 5 Launch the debugger Launch the debugger R20UT3122EJ0100 Rev 1 00 Page 19 of 28 Oct 01 2015 RENESAS E1 E20 Emulator 4 Notes on Usage When finished using the emulator 1 Close the debugger Close the debugger 2 Turn off the user system Turn off the user system 3 Turn off the emulator and disconnect the emulator When using the E20 emulator turn off its power switch Disconnect the USB interface cable from the El or E20 emulator The E1 emulator is turned off by disconnecting from the U
13. cting the Emulator and User System 2 Connecting the Emulator and User System To connect the E1 or E20 emulator a connector for the user system interface cable must be mounted on the user system When designing the user system read this chapter of this manual and the hardware manual for the MCUS to be used 2 1 Connector mounted on the user system Table 2 1 shows the recommended connectors for connection of the E1 or E20 emulator Table 2 1 Recommended Connectors Type Manufacturer Specification Number 14 pin 7614 6002 Sumitomo 3M Limited 14 pin straight type Japan connector 2514 6002 3M Limited 14 pin straight type other countries Figures 2 1 shows an example of the connection of the user system interface cable of an E1 emulator to a 14 pin connector If you intend to use the 14 pin connector do not mount components with heights exceeding 10 mm within 5 mm of the connector on the user system Note that this connector does not support direct connection of an E20 emulator which has a 38 pin connection To use an E20 emulator with a 14 pin connector use the 38 pin 14 pin conversion adapter ROEO00200CKAO0 that comes with the E20 14 pin user system interface cable 14 pin type connector pon system e Area where restriction applies to mounted components components must have heights no greater than 10 mm Figure 2 1 Connecting the User System Interface Cable to the 14 pin Connector in the E1
14. d during debugging so we cannot guarantee the number of times rewriting of the flash memory can proceed Debugger errors occur when programming of the flash memory is no longer possible Replace the device in such situations No 2 Power to the target system while debugging Do not turn the power to the target system off during debugging Doing so will require reconnection of the debugger No 3 Hardware break access function When the hardware break access function is in use a break in response to the reading or writing of specified data by a read modify write instruction will occur after the instruction Other hardware breaks access occur before the instruction No 4 Multiplexed functions of pins used for OCD signals Multiplexed functions of pins used for on chip debugging OCD cannot be used during debugging No 5 Debugging interface The E1 and E2 emulators support only 4 pin LPD interface Operation is as follows if the setting of the OPJTAGI and OPJTAGO bits of the option byte 2 register is 11B JTAG the JTAG interface is selected in the case of a blank chip a When starting connecting the E1 or E20 emulator Settings of the option byte 2 register are changed from the setting for JTAG to that for 4 pin LPD by the debugger on connection to an emulator Therefore the OPJTAGI and OPJTAGO bits of the option byte 2 register are 01B 4 pin LPD during emulator operation b When exiting from a session with disconnectin
15. ent for any 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 10 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 11 This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics 12 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 Emulator Contents
16. g the E1 or E20 emulator Settings of the option byte 2 register can be changed by the debugger The value of the the OPJTAG1 and OPJTAGO bits of the option byte 2 register can be changed to 11B for JTAG which requires rewriting of the flash memory The setting of the the OPJTAGI and OPJTAGO bits of the option byte 2 register can be left as 01B 4 pin LPD When 4 pin LPD interface is also used the next time the emulator is connected we recommend exit from the program without changing the settings from that for the 4 pin LPD interface If power to the target system is turned off because of an abnormal end to the emulator session the OPJTAGI and OPJTAGO bits of the option byte 2 register retain the value 01B for 4 pin LPD If you wish to change the OPJTAGI and OPJTAGO bits of the option byte 2 register to 11B for JTAG please do so at the end of the El or E20 emulator session R20UT3122EJ0100 Rev 1 00 Page 18 of 28 Oct 01 2015 RENESAS E1 E20 Emulator 4 Notes on Usage No 6 Reset of pins Do not allow the generation of a reset in the form of a pin reset other than while the program is in execution If a reset is generated in this situation the debugger may hang Even if the reset mask setting in the debugger is for masking the debugger may still hang No 7 Quality of flash programming To improve the quality follow the guidelines below e Circuits are designed as described in the user s manuals for the MCU
17. interface circuits related to the communications interface between the E1 or E20 emulator and user system are shown in figures A and B below Please refer to these figures when determining parameters in board design 14 pin connector 220 Noise filter 220 Noise filter 74LVC125 Emulator control 74LVC8T245 circuit MI a Note Not used Figure A Interface Circuits in the E1 or E20 Emulator 4 Pin LPD 2 Wire UART R20UT3122EJ0100 Rev 1 00 Page 24 of 28 Oct01 2015 RENESAS E1 E20 Emulator 5 Internal Circuits of the Emulator 14pin connector 229 Noise filter Emulator Control circuit Self recovering se X Not used Figure B Interface Circuits in the E1 or E20 Emulator 1 Wire UART R20UT3122EJ0100 Rev 1 00 Page 25 of 28 Oct 01 2015 RENESAS E1 E20 Emulator Additional Document for User s Manual Notes on Connection of RH850 P1M C and RH850 P1H C Publication Date Oct 01 2015 Rev 1 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 Mead
18. lable Number of events that can be set Event 8 points for execution 8 points for CPU access 4 points for DMA access and 4 points for GRAM access Available function Break performance measurement Combination of events OR sequential Perfor Time Measurement section From run to break mance 1 Items measured Execution time mea Performance 32 bit counters sure Time ment 2 Items measured Measurement section From run to break or between two event points Execution time total execution time pass count maximum execution time minimum execution time Performance Other Items measured than time 32 bit counters for three sections Number of instructions executed all or branches only number of interrupts accepted El level or FE level number of exceptions accepted instruction asynchronous or instruction synchronous clock cycles all while interrupts are inhibited or other than for the processing of interrupts number of instruction fetches requested number of hits on the instruction cache Measurement section From run to break or between two event points Items measured Latest value total value pass count maximum value minimum value Performance 32 bit counters for four sections Pseudo real time RAM monitor Available occupies a bus steals cycles Direct memory modification Available occupies
19. m the information included herein 3 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 4 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 5 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
20. memory of microcontrollers 1 2 Cautions on using the E20 emulator The functions used for debugging of the RH850 family by using the E20 emulator are the same as in the E1 emulator Large trace function characteristic functions of the E20 emulator cannot be used 1 3 Configuration of manuals Documentation for the El or E20 emulator manual is in two parts the El or E20 Emulator User s Manual and E1 or E20 Emulator Additional Document for User s Manual this manual The additional document is for a particular set of MCUs in this case MCUs of the RH850 P1M C and RH850 P1H C groups Be sure to read both of the manuals before using the El or E20 emulator 1 E1 or E20 emulator user s manual The E1 E20 Emulator User s Manual describes hardware specifications including the following items e Components of the emulators e Emulator hardware specifications e Connecting the emulator to a host computer and user system 2 E1 or E20 emulator additional document for user s manual An El or E20 Emulator Additional Document for User s Manual describes functions of a debugger and its contents depend on the given set of MCUs In general an additional document has notes on items including the following e For use in hardware design an example of connection and the interface circuits required to connect the emulator e Notes on using the emulator R20UT3122EJ0100 Rev 1 00 Page 4 of 28 Oct 01 2015 RENESAS E1 E20 Emulator 2 Conne
21. mulator and User System 2 3 3 Connecting the TVDD pin 1 Power source monitoring function Connect the power source on the user system to pin 8 TVDD pin of the 14 pin connector For the RH850 P1x series this will be the source of the EnVCC voltage The power source connected to the TVDD pin provides power to the final stage output buffer and first stage input buffer on the E1 E20 emulator circuit When the E1 or E20 emulator is connected it will draw current as described below in addition to the current drawn by the user system e El emulator Approx 20 mA when TVDD is 3 3 V and approx 40 mA when TVDD is 5 0 V e E20 emulator Approx 40 mA when TVDD is 3 3V and approx 100 mA when TVDD is 5 0 V If there is a possibility you will be using hot plug in you will need to configure the circuit as shown below Pin 8 of the E1 emulator is connected to a 4 7 uF capacitor as shown in 1 in Figure 2 6 so hot plug in connection of the emulator may lead to a momentary drop in the power supply voltage on the user system This might cause the MCU to be reset As shown in 2 in Figure 2 6 this effect can be reduced by placing a ferrite bead or inductor and relatively large capacitor with low equivalent series resistance near the TVDD line of the connector for connection of the emulator Note that this measure will not completely eliminate the voltage drop Note that hot plug in is only for use during debugging and a separately sold hot plug in adap
22. n of the El emulator 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 flash programming software refer to http www renesas com products tools flash_prom_programming WARNING Warning for Turning the Power On Off When supplying power ensure that there are no shorts between the user system and power circuit Only connect the El or E20 after confirming that there are no mismatches of alignment on the user system port connector Incorrect connection will result in the host machine the emulator and the user system emitting smoke or catching fire 2 3 4 Hot plug in adapter for the E1 emulator For hot plug in connection use the hot plug in adapter for the E1 emulator ROEO00010ACBO00 that is separately available from Renesas 2 3 5 Isolator for the E1 emulator 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 ROE000010ACB20 which is separately available from Renesas 2 3 6 Small connector conversion adapter for the E1 emulator A small connector conversion adapter for the E1 emulator ROEO00010CKZ1 1 is separately available from Renesas for user system boards which are too small to mount the 14 pin connector that is the standard connector for the El emulator By using the adapter you can reduce
23. onnector EnVCC EnVCC SYSVCC Target device TVDD L SYSVCC GND EnVCC GND EnVSS GND JPO 0 FPDR FLMDO P4_5 FLMD1 Note1 min 95K Reset circuit Figure 2 4 Example of Connection e Refer to section 2 3 2 Connecting the RESET pin for more information on the reset circuit e For details on TVDD refer to section 2 3 3 Connecting the TVDD pin e Make wiring runs between the 14 pin connector and target device as short as possible within 50 mm is recommended Do not connect the signal lines between the connector and MCU to other signal lines e Use GND to apply a guard ring for the wiring runs between the 14 pin connector and target device Do not route high speed signal lines parallel to each other or allow them to cross each other e Pin names may vary among target devices Refer to the user s manual for the target device you are using for the actual pin names e Proceed with appropriate processing for pins of target devices which do not require connection to the emulator in accord with the descriptions in Handling of Unused Pins in the user s manual for the target device Note 1 Design the circuit so that the FLMDI pin must be at the low level during programming R20UT3122EJ0100 Rev 1 00 Page 10 of 28 Oct01 2015 RENESAS E1 E20 Emulator 2 Connecting the Emulator and User System 2 3 2 Connecting the RESET Pin While you are using the E1 or
24. or E20 Emulator R20UT3122EJ0100 Rev 1 00 Page 5 of 28 Oct 01 2015 RENESAS E1 E20 Emulator 2 Connecting the Emulator and User System CAUTION Note 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 If the cable is connected in the wrong direction it may be damaged 2 2 Pin assignments of the connector Table 2 2 shows the pin assignments of the 14 pin connector Table 2 2 Pin Assignments of the 14 pin Connector Signal name active low daj Debugging Programming 1 0 3 4 pin LPD 2 wire UART 1 wire UART 1 LPDCLK Input 2 1 GND GND GND 3 TRSTA Input 4 FPMDO FPMDO FPMDO Input 5 LPDO FPDT Output 6 7 LPDIO FPDR FPDR 1 0 8 TVDD TVDD TVDD 9 10 11 LPDCLKO Output 12 1 GND GND GND 13 2 RESET RESET RESET Input 14 1 GND GND GND Notes 1 Securely connect pins 2 12 and 14 of the connector to GND of the user system These pins are used for electrical GND and to monitor connection with the user system by the E1 or E20 emulator Be particularly sure to connect pin 13 befo
25. ot plug in connection the user program will be running At this time only the emulator functions listed below are available Forced break Pseudo real time RAM monitor Direct changes to values in memory Apply a forced break if you wish to return to using all functions supported by the emulator After the forced break functions equivalent to those that can be used after normal starting of a program become available No 17 Cases where hot plug in connection is not possible Hot plug in connection cannot be used when the MCU is in the reset input state No 18 Cautionary note on asynchronous debugging mode peripheral break function In the asynchronous debugging mode peripheral break functions cannot be used Even if peripheral break functions are enabled peripheral macros are not stopped No 19 Cautionary note on asynchronous debugging mode reset In the asynchronous debugging mode when any of CPUs is in the break state no resets are acceptable No 20 Cautionary note on asynchronous debugging mode watchdog timer In the asynchronous debugging mode when CPU1 is in the break state a counter is stopped in WDTAO When CPU2 is in the break state a counter is stopped in WDTA1 No 21 Cautionary note on asynchronous debugging mode ECC error During execution of a user program there may be a case that the ECC error function does not normally operate for flash memory resources Example When any CPU accesses flash memory resources du
26. ow 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 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
27. re using the emulator Input and output are defined from the perspective of the user system wh R20UT3122EJ0100 Rev 1 00 Page 6 of 28 Oct 01 2015 RENESAS E1 E20 Emulator 2 Connecting the Emulator and User System 2 3 Examples of recommended connections between the connector and MCU This section describes examples of recommended connections between the target MCU and interface circuit 2 3 1 Example of recommended connections Multiple recommended examples for connection are given in accord with the purposes for which the emulator is to be used Select the appropriate circuit with reference to the table shown below Be sure to take the specifications of the target device as well as measures to prevent noise into consideration when designing your circuit Purpose Figure Both debugging 4 pin LPD and programming 2 wire UART or 1 wire Figure 2 2 UART Only programming 1 wire UART or 2 wire UART Figure 2 3 Only programming 1 wire UART Figure 2 4 R20UT3122EJ0100 Rev 1 00 Page 7 of 28 Oct 01 2015 RENESAS E1 E20 Emulator 2 Connecting the Emulator and User System 1 Connection which allows Both debugging 4 pin LPD and programming 2 wire UART or 1 wire UART 14 pin connector EnVCC EnVCC SYSVCC Target device TVDD SYSVCC GND EnVCC GND EnVSS GND LPDIO FPDR JPO 0 LPDI FPDR LPDO FPDT JPO 1 LPDO FPDT LPDCLK FPCK JPO 2 LPDCLKI FPCk TRST
28. ring execution of a user program causing an ECC error and another CPU which is in the break state accesses the same resources in the memory window at the same timing the debugger temporarily controls the ECC error and no ECC error occurs in any CPU R20UT3122EJ0100 Rev 1 00 Page 22 of 28 Oct 01 2015 RENESAS E1 E20 Emulator 4 Notes on Usage No 22 Cautionary note on asynchronous debugging mode specific sequence During execution of a user program there may be a case that the specific sequence is not satisfied Example When any CPU accesses the specific I O register during execution of a user program and another CPU which is in the break state accesses the same peripheral function in the I O register window at the same timing the specific sequence from any CPU is not satisfied and normal accessing is disabled No 23 Performance measurement In the case of measuring a specific section if the intervals between the start and the end of one measurement and between the end of that measurement and the start of the next is short the measurement might not be possible To obtain correct measurements the interval should be long enough The required detection interval depends on the operating frequency and the LPD communications frequency of the MCU R20UT3122EJ0100 Rev 1 00 Page 23 of 28 Oct01 2015 RENESAS E1 E20 Emulator 5 Internal Circuits of the Emulator 5 Internal Circuits of the Emulator The internal
29. rts debugging of a program while mounted on a system cannot be used No 3 Serial programming function The serial programming function cannot be used with the emulator during debugging No 4 HALT mode A break leads to release from HALT mode No 5 Current drawn The amount of current drawn by an emulator is different from the actual device The target device consumes more power during debugging than in normal operation since the debugging functions are operating No 6 OTP flag Do not set the one time programming OTP flag in self programming with the emulator Setting the flag makes further debugging impossible R20UT3122EJ0100 Rev 1 00 Page 16 of 28 Oct 01 2015 RENESAS E1 E20 Emulator No 7 Operations in response to resets and interrupts when an emulator is in use 4 Notes on Usage When an emulator is in use operation in response to resets and interrupts differs according to the specifications of the reset mask and interrupt settings respectively as shown in the tables below Table 4 1 Reset mask specification with an emulator Relation between the State of Emulation and Presence of a Reset Mask State of emulation and presence of a reset mask In user program execution In single stepping In C source level stepping In breaks Mask specified Masked Masked Masked Masked Mask not specified Not masked Masked Depends on the debugger Masked No
30. s Further Renesas Electronics products are not subject to radiation resistance design Please be sure to implement safety measures to guard them against the possibility of physical injury and injury or damage caused by fire in the event of the failure of a Renesas Electronics product such as safety design for hardware and software including but not limited to redundancy fire control and malfunction prevention appropriate treatment for aging degradation or any other appropriate measures Because the evaluation of microcomputer software alone is very difficult please evaluate the safety of the final products or systems manufactured by you 8 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 9 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 docum
31. scsesesesesesesesescseseseseseseseeceneesssesseessececacacacacacaeaeaeaescaeaeaeseeeeeeeeteeees 13 2 3 5 Isolator for the El emulator sss GN GUI UG ABGG i e 13 2 3 6 Small connector conversion adapter for the E1 emulator ooo eeceeeeseeeeeseeescseseseseseseseseseseseseeeenenenseeeeeeeaeecaceeecaeaeaeaeaes 13 3 SpecifiCatlonS miso ie krie sln cecee nat ees sudon ia tected ndecaagsdcecacaen dta aieiai podon kada lub rakade daea rd aiad iada dada aba dod pr ak aapada daad 14 A Notes onlWsage xe sion NT MA E TIEA NTA A OFTE do ua ara ipana 16 4 1 Notes on differences in operation between the actual device and the E1 or E20 emulator 16 4 2 Cautionary notes on debugging sssssiausiqssucss a GUB GUN siii ikii GG U AG 18 5 Internal Circuits oftheEmulator sss KR CT LRA KEKR ERARE KRETO SE KEA KS CE LAA SEKA VIARI KA KIJ KAD KRAKI OTI TAKO RA a Vnu KKE 24 R20UT3122EJ0100 Rev 1 00 Page 3 of 28 Oct 01 2015 TENESAS E1 E20 Emulator 1 Outline 1 Outline 1 1 Features of an E1 or E20 emulator An El or E20 emulator is an on chip debugging emulator that includes a flash programming function which is used for debugging and programming programs to be embedded in microcontrollers that have on chip flash memory That is either product can debug a program while the target microcontroller is connected to the user system and can write programs to the on chip flash
32. te Do not allow the generation of a reset in the form of a pin reset other than while the program is in execution regardless of presence of a mask above Table 4 2 Settings for interrupts Relation between the State of Emulation and Acceptance of Interrupts State of emulation and acceptance of interrupts In user program execution In single stepping In C source level stepping In breaks DI Not accepted Not accepted Not accepted Not accepted El Accepted Some held pending Depends on the debugger Held pending Note Exceptions that are held pending are EIINT FEINT and FPI and the other exceptions are all accepted No 8 Option byte register The debugger cannot write new values to the bits of the option byte register indicated below since they are used by the emulator Also do not attempt self programming to write new values to these bits e OPJTAGI and OPJTAGO bits bits 30 and 29 of the OPBT2 register The value of the OPJTAGI and OPJTAGO bits while an emulator is connected is 01B if the 4 pin LPD interface is selected R20UT3122EJ0100 Rev 1 00 Oct01 2015 TENESAS Page 17 of 28 E1 E20 Emulator 4 Notes on Usage 4 2 Cautionary notes on debugging No 1 Handling of devices which were used for debugging Do not use devices that were used for debugging in mass production This is because writing to the flash memory of such devices has already proceede
33. ter is necessary to use this function otherwise Ferrite bead or inductor Lo uF FAE LAF 14 pin connector 1 E1 E20 emulator internal circuit 2 The measure method of E1 Emulator Figure 2 6 Circuit Configuration for Hot Plug in 2 Power supply function applies only to the E1 emulator The E1 emulator can also supply power at 3 3 V or 5 0 V from the TVDD pin to the user system at a current of up to 200 mA When using this function take care of the following points e Do not use this function if power is being separately supplied to the user system Attempting to do so might break the E1 emulator e Do not use this function for a user system which draws a current of 200 mA or more The E1 emulator or USB interface of the host machine might be broken e Make sure that the supplied voltage is within the voltage range required by the user system e The 5 0 V supply depends on the voltage of the USB interface VBUS of the host machine Depending on the environment of the host machine in use the voltage might be lower than 5 0 V by 0 5 V or more R20UT3122EJ0100 Rev 1 00 Page 12 of 28 Oct 01 2015 RENESAS E1 E20 Emulator 2 Connecting the Emulator and User System Power supply from the E1 emulator 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 functio
34. the area taken up by the connector mounted on your system However when you use the small connector conversion adapter for the E1 emulator be aware that the pin assignments of the connector differ from those of the standard interface connector for the E1 emulator R20UT3122EJ0100 Rev 1 00 Page 13 of 28 Oct 01 2015 RENESAS E1 E20 Emulator 3 Specifications Specifications are shown in the table below Broad Category Medium Category Narrow Category 3 Specifications Specification Hardware in general Corresponding host machine Computer equipped with a USB port OS depends on the debugger User system interface 14 pin connector Host machine interface USB 2 0 full speed or high speed Connection to the user system Connection by the provided user system interface cable Power supply function only when the emulator is an E1 3 3 V or 5 0 V with current up to 200 mA can be supplied from TVDD to the user system make settings with the debugger Power supply for the emulator No need the host computer supplies power through the USB Debugging related items Break Software break ROM area 2000 points RAM area Not available Hardware break 12 points including those used for both execution and CPU access conditions 8 points only for execution conditions and 4 points for either execution or access conditions Forced break Avai
35. tionary note on connecting an emulator time required for preparing to communicate When an emulator is connected a program which was written to the MCU is executed from the reset vector before the OCD emulator and MCU become able to communicate Take care on this point When debugging of a program written to the MCU creates a problem eliminate the problem by inserting at least 30 ms waiting time before executing the program after a release from the reset state Note Time required for preparing communications depends on the host PC environment of the El or E20 emulator and the operating frequency of the MCU No 14 Cautionary note when the emulator is connected internal reset When the stored program generates an internal reset software reset or reset caused by the watchdog timer overflowing immediately after release from the initial reset state the internal reset may be generated before communications between the emulator and MCU have been established after the emulator is started raising the possibility of incorrect communications Accordingly insert a wait of at least 30 ms before applying an internal reset after release from the initial reset state when debugging a program which includes an internal reset immediately after release from the initial reset state Note Time required for preparing communications depends on the host PC environment of the E1 or E20 emulator and the operating frequency of the MCU No 15 Access to I O

Download Pdf Manuals

image

Related Search

Related Contents

携帯型拡大読書器 『ルビーXL HD5』専用 筆記スタンド 取扱説明書  Télécharger le manuel d`utilisation  取扱説明書 - 山田照明  Toyota Yaris 2013  Manual de instrucciones  1 - シャープ  DD_M1_Productique_Bordeaux 1  programa para el fortalecimiento de la función pública en américa  Lightspeed Technologies, Inc.  User Manual EzyScript  

Copyright © All rights reserved.
Failed to retrieve file