All information contained in these materials, including products and product specifications,
website (http://www.renesas.com).
Additional Document for User’s Manual
(Notes on Connection of RH850/E1M-S2)
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.
Notice
on of
1. Descriptions of circuits, software and other related information in this document are provided only to illustrate the operati
semiconductor products and application examples. You are fully responsible for the incorporation or any other use of the circuits,
software, and i nformation i n the desi gn of your produc t or syste m. Renesa s Electr onics discla ims any and al l liabilit y for any loss es and
damages incurred by you or third parties arising from the us e of these circuits, software, or information.
2. Renesas Elec tronics hereby expressly disclaims any warranties against and li ability for infr ingement or any other claims involving patents,
copyrights, or other intellectual prop erty rights of third part ies, by or arising from the use of Renesas Electronics pr oducts or technical
information described in this document, including but not limited to, the product data, drawings, charts, programs, algorithms, and
application examples.
3. No license, expr ess, impli ed or otherwi se, is gra nted hereb y under an y patents , copyright s or other intell ectual prop erty rights of Renesas
Electronics or others.
4. You shall not alter , modify, copy, or revers e engineer any Renes as Electr onics product , whether in whole or in part. Renesas Electronics
disclaims any and all liability for any losses or damages incurred by you or third parties arising from such alteration, modification,
copying or reverse engineering.
5. Renesas Electroni cs products are cla ssified accordi ng to the following two qua lity grades: “Sta ndard” and “High Quali ty”. The intended
applications for each Renesas E lectronics product depends on the product’s quality grade, as indicated below.
“Standard”: Computers; office equipment; c ommunications equipment; test and measurement equipment; audio and visual equipment;
home electronic appliances; mac hine tools; personal electronic equipment; industrial robots; etc .
“High Quality”: Transportation equipment (automobiles, trains, ships, etc.); traffic control (traffic lights); large-scale communication
equipment; key financial terminal systems; safety control equipment; etc.
Unless expressl y designated a s a high reli abilit y product or a product for ha rsh environ ments in a Renes as Elec tronics data sheet or ot her
Renesas Electr onic s docum ent, Ren esa s El ectr onic s pr oduc ts a re not i ntended or a uthor i z ed for us e in produc t s or systems tha t may pose a
direct threat to huma n life or bodily injury (ar tificial life supp ort devices or systems; s urgical implantations ; etc.), or may cause ser ious
property damage (s pace system; unders ea repeaters ; nuclear power cont rol systems; a ircraft control systems; key pla nt systems; milit ary
equipment; etc. ). Renesa s El ectroni cs dis claims a ny and al l liab ilit y for any damages or los ses i ncurred b y you or any thi rd parties arising
from the use of any Renes as Electronics product that is inconsistent with any Renesa s Electronics data sheet, us er’s manual or other
Renesas Electronics document.
6. When using Renesas Elect roni cs product s, r efer to t he lates t product informa tion ( data sheet s, user ’s manu als, applica tion not es, “Genera l
Notes for Handling a nd Using Semic onductor Devices ” in the relia bility handbook, etc.), and ens ure that usage c onditions are w ithin the
ranges specified by Renesas Electronics with respect to maximum ratings, operating power supply voltage range, heat dissipation
characterist ics, insta llation, etc. Renesa s Electr onics dis claims any and a ll liabi lity for any ma lfunct ions, fa ilure or acc ident aris ing out of
the use of Renesas Electronics products outside of such specified ranges.
7. Although Renesa s Electroni cs endeavors to imp rove the qual ity and relia bility of Renes as Electroni cs products, semiconductor products
have specific cha racteristics, such as the occurrenc e of failure at a certain rate and malf unctions under certain use conditi ons. Unless
designated as a high reliability product or a product for harsh environments in a Renesas Electronics data sheet or other Renesas
Electronics document, Renesa s Elect ronics produc ts are not s ubject t o radiation res istance des ign. You are r esponsib le for implement ing
safety measures to gua rd aga ins t the pos sibi lity of b odil y injur y, injur y or da mage c aus ed by fir e, a nd/or d anger t o the p ublic in the e vent
of a failure or malf unction of Renesas Elec tronics pr oducts, s uch as safety design for hardware a nd software, including b ut not limit ed to
redundancy, fire control and malfunction prevention, appropriate treatment for aging degradation or any other appropriate measures.
Because the e valuat ion of mic roc omputer s oft ware a lone is very dif fi cult and imp ract ical, you are res pons ibl e for eval uat ing the s afet y of
the final products or systems manufactured by you.
8. Please contact a Renesas El ectronics sa les office f or details as to environmenta l matters such as the en vironmental compatibility of each
Renesas Elec tronic s produc t. Y ou are r esp onsibl e for c aref ully and s uff icient ly inves ti gati ng appl icab le laws and r egulat ions that regula te
the inclusion or use of controlled substances, including without limitation, the EU RoHS Directive, and using Renesas Electronics
products in compl iance with all these applicab le laws and regul ations. Renesa s Electr onics disclai ms any and all liab ility for damages or
losses occurring as a result of your nonc ompliance with applicable laws and regulations.
9. Renesas Electr oni cs pr oduc ts and t echnol ogi es s ha ll not be us ed f or or incorp or ated i nt o any pr oduc ts or s ystems whos e manuf act ur e, us e,
or sale is pr ohibited under a ny applica ble domestic or foreign laws or regulati ons. You shall comply with an y applicabl e export contr ol
laws and regulations promulgated and administered by the governments of any countries asserting jurisdiction over the parties or
transactions.
10. It is the respons ibility of the buyer or distributor of Renesas Electronics products, or any other party who dist ributes, disposes of, or
otherwise sell s or tr ansf er s the p r oduct to a thi rd pa r ty, t o noti f y such t hir d p ar ty in a dvanc e of the c ont ent s a nd condi t ions s et f orth i n t his
document.
11. This document sha ll not be repri nted, rep roduced or dup licated i n any form, in whole or in part, wit hout prior wr itten consent of Renesa s
Electronics.
12. Please contact a Renesas Electronics sales of fice if you have any q uestions regarding the information contained in this document or
Renesas Electronics products .
(Note 1) “Renesas Electronics” as used in this doc ument means Re nesas Electr onics Corpora tion and als o includes it s directly or indi rectly
controlled subsidiaries.
(Note 2) “Renesas Electronics product(s)” means any product developed or manufactured by or for Renesas Electronics.
1.1 Features of an E1, E20 or E2 emulator ........................................................................................................................................ 4
1.2 Caution on using the E20 emulator .............................................................................................................................................. 4
1.3 Configuration of manuals .............................................................................................................................................................. 4
2. Connecting the Emulator and User System ......................................................................................................................................... 5
2.1 Connector mounted on the user system ....................................................................................................................................... 5
2.2 Pin assignments of the connector ................................................................................................................................................ 7
2.3 Connection interface and modes .................................................................................................................................................. 8
2.4 Examples of recommended connections between the connector and MCU ................................................................................ 9
2.4.1 Example of recommended connections ................................................................................................................................. 9
2.4.2 Connecting the RESET pin .................................................................................................................................................. 12
2.4.3 Connecting the TVDD pin .................................................................................................................................................... 13
2.4.4 Hot plug-in adapter for the E1 emulator ............................................................................................................................... 14
2.4.5 Isolator for the E1 emulator .................................................................................................................................................. 14
2.4.6 Small connector conversion adapter for the E1 emulator .................................................................................................... 14
3.1 Overview of specifications specific to the E2 emulator............................................................................................................... 20
3.1.2 External trigger input and output .......................................................................................................................................... 21
4. Notes on Usage ................................................................................................................................................................................. 22
4.1 Notes on differences in operation between the actual device and the E1, E20 or E2 emulator ................................................. 22
4.2 Cautionary notes on debugging .................................................................................................................................................. 24
5. Internal Circuits of the Emulator ......................................................................................................................................................... 36
6.1 Problems when the emulator is connected ................................................................................................................................. 38
6.2 Problems after the emulator is connected .................................................................................................................................. 40
R20UT3433EJ0300 Rev.3.00 Page 3 of 44
Oct.09.20
E1/E20/E2 Emulator 1. Outline
1. Outline
1.1 Features of an E1, E20 or E2 emulator
An E1, E20 or E2 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 memory of microcontrollers.
1.2 Caution 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 function of the E20 emulator, cannot be used.
1.3 Configuration of manuals
When using the E1, E20 or E2 emulator in debugging with an RH850 family product, be sure to read the manuals (1) and
(2) below. Also read the application note (3) if required.
Set the switch on the “1” side
when the target device is an
RH850 and on the “3” side when
the target device is an RL78.
Setting
Description
1
The target device is an RH850 microcontroller (default setting).
CAUTION
Note on connector insertion and removal (1):
damage the wiring.
CAUTION
Note on connector insertion and removal (2):
Be aware that the user-system interface cable or the connector conversion adapter must be inserted with the correct
the wrong
orientation may cause damage.
• For the connection of an E2 emulator
To use an E2 emulator with a 14-pin connector, use the connector conversion adapter that comes with the E2. Figure 2-3
shows an example of the connection.
The connector conversion adapter is provided with a switch. Setting for the switch must be on the “1” side for the
RH850. Operation is not guaranteed if the switch is on the “3” side. For setting the switch, refer to Table 2-2.
Figure 2-3 Connecting the User System Interface Cable to the 14-pin Connector in the E2 Emulator
Table 2-2 Setting of Switches (SW1)
3 The target device is an RL78 microcontroller.
When connecting or disconnecting the user-system interface cable and the user system, grasp the connector cover
at the end of the cable or both sides of the board of the connector conversion adapter. Pulling the cable itself will
orientation. Connecting the user-system interface cable or the connector conversion adapter with
R20UT3433EJ0300 Rev.3.00 Page 6 of 44
Oct.09.20
E1/E20/E2 Emulator 2. Connecting the Emulator and User System
Signal name (#: active low, -: unused)
Debugging
Programming
4-pin LPD
2-wire UART
1
LPDCLK
Input
2 (*1)
GND
GND
3
TRST#
Input
4
FPMD0
FPMD0
Input
5
LPDO
FPDT
Output
6
FPMD1
Input
7
LPDIO
FPDR
I/O
8
TVDD
TVDD
9
10
11
LPDCLKO
Output
12 (*1)
GND
GND
13 (*2)
RESET#
RESET#
Input
14 (*1)
GND
GND
CAUTION
Unused pins:
2.2 Pin assignments of the connector
Table 2-3 shows the pin assignments of the 14-pin connector.
Table 2-3 Pin Assignments of the 14-pin Connector
Pin No.
I/O (*3)
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, E20 or E2 emulator.
2. Be particularly sure to connect pin 13 before using the emulator.
3. Input and output are defined from the perspective of the user system.
Do not apply signals from the user system to unused pins. Doing so may damage the pins.
R20UT3433EJ0300 Rev.3.00 Page 7 of 44
Oct.09.20
E1/E20/E2 Emulator 2. Connecting the Emulator and User System
Mode and Connection Interface
User Boot Mode
Serial Programming Mode
Tool to be Used
Connection Interface
Connection Interface
Flash Programmer (e.g. RFP)
-
2-wire UART
When OPJTAG is
-
2-wire UART
During debugging
4-pin LPD
-
2.3 Connection interface and modes
The operating mode and the connection interface of an E1, E20 or E2 emulator is switched in the ways shown in Table
2-4 according to whether it is in use for debugging (when a debugger is in use) or programming (when the Flash
Programmer is in use). The serial programming mode may still be used even if the debugger is in use. When flash
memory is programmed by the downloading function of the debugger, the flash self-programming function is used.
Table 2-4 Modes and Connection Interfaces
Debugger
(e.g. CS+)
automatically set
(connected)*
(*)OPJTAG automatic setting function: When a device is debugged, the OPJTAG bit in the option byte register
determines the type of connection interface. Debugging will not start if the interface selected by the OPJTAG bit does not
match that selected by the debugger. If the OPJTAG automatic setting function is enabled, the emulator makes a
transition to the serial programming mode without fail and reads the OPJTAG bit. If the interface differs from that
selected by the debugger, the OPJTAG bit is rewritten, the mode is switched to the normal operating mode, and
debugging will start.
When this function is enabled to start debugging, since the mode is switched to the serial programming mode, some
emulation may be impossible since the initial values in memory and of ECC errors after a reset are undefined. Therefore,
only use the OPJTAG automatic setting function when the OPJTAG bit in the option byte register is to be modified. For
details on setting this function, refer to the user’s manual for the debugger you are using.
With CS+, select “Yes” as the [Set OPJTAG in LPD connection before connecting] property on the [Connect Settings]
tabbed page to enable the OPJTAG automatic setting function.
Oct.09.20
R20UT3433EJ0300 Rev.3.00 Page 8 of 44
E1/E20/E2 Emulator 2. Connecting the Emulator and User System
2.4 Examples of recommended connections between the connector and MCU
This section describes examples of recommended connections between the target MCU and interface circuit.
2.4.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.
Both debugging (4-pin LPD) and programming (2-wire UART)
Only programming (2-wire UART)
Purpose
Figure
Figure 2-4
Figure 2-5
R20UT3433EJ0300 Rev.3.00 Page 9 of 44
Oct.09.20
E1/E20/E2 Emulator 2. Connecting the Emulator and User System
14-pi n connector
8
2
12
14
7
5
1
9
3
11
4
6
13
Target device
SYSVCC
VCC
VSS
LPDI / FPDR(FLSCI3R X)
LPDO / FPDT(FLSCI3TX)
LPDCLK I / FPCK(FLSCI3SCK)
LPDRS T
LPDCLK O
MD0
FLMODE
RES
TVD D
GND
GND
GND
LPDIO / FPDR
LPDO / FPDT
LPDCLK / FP CK
TRS T
LPDCLK OUT
FPM D0
FPM D1
RESET
RESET
circuit
1K to
10K
1K to
10K
VCC SYSVCC
VCC
1K to
10K
(1) Connection which allows Both debugging (4-pin LPD) and programming (2-wire UART)
Figure 2-4 Example of Connection
Refer to section 2.4.2, Connecting the RESET pin, for more information on the reset circuit.
For details on TVDD, refer to section 2.4.3, Connecting the TVDD pin.
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.
Use GND to apply a guard ring for the wiring which 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.
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.
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.
R20UT3433EJ0300 Rev.3.00 Page 10 of 44
Oct.09.20
E1/E20/E2 Emulator 2. Connecting the Emulator and User System
8
2
12
14
7
5
1
9
3
11
4
6
13
Target device
SYSVCC
VCC
VSS
FPDR(F LSCI3R X)
FPDT(FLSCI3TX)
LPDRS T
MD0
FLMODE
RES
TVD D
GND
GND
GND
FPDR
FPDT
FPM D0
FPM D1
RESET
RESET
circuit
1K to
10K
1K to
10K
VCC SYSVCC
VCC
1K to
10K
14-pi n connector
(2) Connection which allows Only programming (2-wire UART)
Figure 2-5 Example of Connection
Refer to section 2.4.2, Connecting the RESET pin, for more information on the reset circuit.
For details on TVDD, refer to section 2.4.3, Connecting the TVDD pin.
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.
Use GND to apply a guard ring for the wiring which 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.
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.
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.
R20UT3433EJ0300 Rev.3.00 Page 11 of 44
Oct.09.20
E1/E20/E2 Emulator 2. Connecting the Emulator and User System
RES
RESET
13
Example
SYSVCC
14-pin connector
Target device
2.4.2 Connecting the RESET pin
While you are using the E1, E20 or E2 emulator, pin 13 (RESET pin) of the 14-pin connector must be connected to the
reset pin of the target device. An example is shown in the figure below.
The E1, E20 or E2 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.
Figure 2-6 Example of Connecting a Reset Circuit
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).
For the target device in this user’s manual, pull the RESET signal (RES) up to the SYSVCC voltage.
Pin 13 (RESET) of the E1, E20 or E2 emulator is pulled up (by a 100-kΩ resistor) within the emulator (refer to
section 5, Internal Circuits of the Emulator).
The RESET pin of the target device may be pulled up or down within the device. On this point, refer to the
user’s manual for the target device.
The maximum sink current accepted by the RESET pin of the E1, E20 or E2 emulator is 2 mA. Select an
appropriate pull-up resistance which does not surpass this value.
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 µs.
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.
R20UT3433EJ0300 Rev.3.00 Page 12 of 44
Oct.09.20
E1/E20/E2 Emulator 2. Connecting the Emulator and User System
2.4.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 target device in
this user’s manual, this will be the source of the VCC 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/E2 emulator circuit. When the E1, E20 or E2 emulator is connected, it will draw current as
described below in addition to the current drawn by the user system.
E1/E2 emulator: Approx. 20 mA when TVDD is 3.3 V, and approx. 40 mA when TVDD is 5.0 V
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 connection, 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-7, 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-7, 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 connection is only for use during debugging, and a separately sold hot plug-in adapter is
necessary to use this function otherwise.
Figure 2-7 Circuit Configuration for Hot Plug-in
(2) Power supply function (applies only to the E1 or E2 emulator)
The E1 or E2 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.
Do not use this function if power is being separately supplied to the user system. Attempting to do so
might break the E1 or E2 emulator.
Do not use this function for a user system which draws a current of 200 mA or more. The E1 or E2
emulator or USB interface of the host machine might be broken.
Make sure that the supplied voltage is within the voltage range required by the user system.
E1 emulator : The 5.0-V supply 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.
E2 emulator : The 5.0-V supply depending on the environment of the host machine in use, the voltage
might be lower than 5.0 V by 0.3 V or more.
R20UT3433EJ0300 Rev.3.00 Page 13 of 44
Oct.09.20
E1/E20/E2 Emulator 2. Connecting the Emulator and User System
Power supply from the E1 or E2 emulator depends on the quality of the USB power supply of the host machine, and as such,
processes, use the Renesas Flash Programmer.
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
fire.
precision is not guaranteed. When writing a program that requires reliability, do not use the power supply function of the E1
or E2 emulator. Use a stable, separate power supply for the user system. When writing a program for mass production
the E1, E20 or E2 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
2.4.4 Hot plug-in adapter for the E1 emulator
For hot plug-in connection to the E1 emulator, use the hot plug-in adapter for the E1 emulator (R0E000010ACB00)
that is separately available from Renesas.
2.4.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 (R0E000010ACB20) which is separately available from Renesas.
2.4.6 Small connector conversion adapter for the E1 emulator
A small connector conversion adapter for the E1 emulator (R0E000010CKZ11) 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 E1
emulator. 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 emulator, be aware that the pin assignments
of the connector differ from those of the standard interface connector for the E1 emulator.
R20UT3433EJ0300 Rev.3.00 Page 14 of 44
Oct.09.20
Loading...
+ 30 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.