Renesas RL78/D1A User Manual
Renesas RL78/D1A User Manual

Renesas RL78/D1A User Manual

Emulator
Hide thumbs Also See for RL78/D1A:
Table of Contents

Advertisement

Quick Links

E1/E20/E2 Emulator, E2 Emulator Lite
Supported Devices:
RL78 Family
RL78/D1A, RL78/F12, RL78/F13, RL78/F14, RL78/F15, RL78/F1A,
RL78/F23, RL78/F24,
RL78/G11, RL78/G12, RL78/G13, RL78/G14, L78/G1A, L78/G1C,
RL78/G1D, RL78/G1E, RL78/G1F, RL78/G1G, L78/G1H,
RL78/G1P, RL78/G13A, RL78/G22, RL78/G23, RL78/G24,
RL78/H1D,
RL78/I1A, RL78/I1B, RL78/I1C, RL78/I1D, RL78/I1E,
RL78/L12, RL78/L13, RL78/L1A, RL78/L1C,
RL78/FGIC
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).
Additional Document for User's Manual
(Notes on Connection of RL78)
Rev.9.10 Oct 2023

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RL78/D1A and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Renesas RL78/D1A

  • Page 1 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).
  • Page 2 Renesas Electronics disclaims any and all liability for any damages or losses incurred by you or any third parties arising from the use of any Renesas Electronics product that is inconsistent with any Renesas Electronics data sheet, user’s manual or other Renesas Electronics document.
  • Page 3 Unit Products The following usage notes are applicable to all Microprocessing unit and Microcontroller unit products from Renesas. For detailed usage notes on the products covered by this document, refer to the relevant sections of the document as well as any technical updates that have been issued for the products.
  • Page 4: Table Of Contents

    E1/E20/E2/E2 Lite Additional Document Contents Contents 1. Overview .......................... 7 Overview of E1/E20/E2 Emulator and E2 emulator Lite ................7 Note on Using E20 ........................... 7 Configuration of E1/E20/E2/E2 Lite Manuals ..................8 Supported Devices ........................... 9 Overview of the Specifications of the External Trigger Input and Output ..........11 1.5.1 Assignments of the External Trigger Input and Output Pins ............
  • Page 5 E1/E20/E2/E2 Lite Additional Document Contents RESET# Multiplexed Pin ........................47 MCUs that are Used in Debugging ......................48 3.8.1 Usage in Mass-Production ......................48 3.8.2 Standalone Operation ........................48 Final Evaluation of the User Program ....................48 3.10 Debug Functions ............................ 49 3.10.1 Stepped Execution ........................
  • Page 6 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, E2, or E2 Lite. "#" at the end of a pin name (signal name) "#"...
  • Page 7: Overview

    In this document, we describe ‘E2 Emulator’ as ‘E2’, ‘E1 Emulator’ as ‘E1’, ‘E20 Emulator’ as ‘E20’ and ‘E2 emulator Lite’ as ‘E2 Lite’. The E1, E20, E2, 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.
  • Page 8: Configuration Of E1/E20/E2/E2 Lite Manuals

    E1/E20/E2/E2 Lite Additional Document 1. Overview Configuration of E1/E20/E2/E2 Lite Manuals The E1, E20, E2, and E2 Lite manuals consist of the following. E2 Emulator User’s Manual • E1/E20 Emulator User's Manual • E2 Emulator Lite User’s Manual • E1/E20/E2 Emulator, E2 Emulator Lite Additional Document for User’s Manual •...
  • Page 9: Supported Devices

    E1/E20/E2/E2 Lite Additional Document 1. Overview Supported Devices Table 1-1 Supported Device List Item Description Target MCUs *2 RL78 Family (RL78-S2 Core) *1 RL78/D1x: RL78/D1A RL78/F1x: RL78/F12 RL78/G1x: RL78/G12, RL78/G13, RL78/G1A, RL78/G1C, RL78/G1D, RL78/G1E, RL78/G1P, RL78/G13A RL78/I1x: RL78/I1A RL78/L1x: RL78/L12, RL78/L13...
  • Page 10 E1/E20/E2/E2 Lite Additional Document 1. Overview Table 1-2 Debugging Function List Item Type of the RL78 Core Description RL78-S2 RL78-S3 Memory reference or change during program execution Pseudo-real-time RAM monitor Supported Supported CPU is used when monitoring (RRM) Dynamic Memory Modification Supported Supported CPU is used when changing...
  • Page 11: Overview Of The Specifications Of The External Trigger Input And Output

    E1/E20/E2/E2 Lite Additional Document 1. Overview Overview of the Specifications of the External Trigger Input and Output This section describes the specifications of the external trigger input and output, which is one of extended functions of the E2. 1.5.1 Assignments of the External Trigger Input and Output Pins The following figure and table show the assignments of the external trigger input and output pins for the E2 expansion interface.
  • Page 12: Specifications Of The External Trigger Inputs And Outputs

    E1/E20/E2/E2 Lite Additional Document 1. Overview Table 1-3 Assignments of the External Trigger Input and Output Pins for the E2 Expansion Interface Pin No. Input/Output Description Pin Nos. 1 to 8 are not used.  These pins must be left open-circuit. ...
  • Page 13: Designing The User System

    E1/E20/E2/E2 Lite Additional Document 2. Designing the User System 2. Designing the User System Connecting the E1/E20/E2/E2 Lite to the User System To connect the E1/E20/E2/E2 Lite to the user system, a connector for the user system interface cable must be mounted on the user system.
  • Page 14 E1/E20/E2/E2 Lite Additional Document 2. Designing the User System 38-pin user-system interface cable 9.4 mm 26.2 mm 38-pin to 14-pin conversion adapter 14-pin connector 7614-6002 or 38-pin to 14-pin conversion adapter (top view) 2514-6002 R0E000200CKA00 10 mm (include in the E20 package) User system Figure 2-2 Connecting the User System Interface Cable to the 14-Pin Connector of the E20 Emulator 20-pin (1.27-mm pin spacing) user-system...
  • Page 15 E1/E20/E2/E2 Lite Additional Document 2. Designing the User System CAUTION Limit to the height on connector periphery: For a case where the R0E000200CKA00 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.
  • Page 16 E1/E20/E2/E2 Lite Additional Document 2. Designing the User System CAUTION Limit to the height on connector periphery: If the 20-pin (1.27-mm pin spacing) to 14-pin (2.54-mm pin spacing) connector conversion adapter is in use and the E2 is to be connected to the 14-pin connector, do not mount components with a height of 13 mm or more on the user system within a rectangle 2 mm from the edges of the connector.
  • Page 17: Pin Assignments Of The Connector On The User System

    E1/E20/E2/E2 Lite Additional Document 2. Designing the User System Pin Assignments of the Connector on the User System 2.3.1 14-Pin Connector Specifications Figure 2-4 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 25.0...
  • Page 18 - - For details on the programming software, refer to the following. https://www.renesas.com/RFP “Input” refers to input from the emulator to the user system and “output” refers to output from the user system to the emulator. 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/E2 Lite.
  • Page 19: Recommended Circuits Between The Connector And The Mcu

    E1/E20/E2/E2 Lite Additional Document 2. Designing the User System Recommended Circuits between the Connector and the MCU This section shows recommended circuits for connection between the connector and the MCU when the E1/E20/E2/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 in General Figure 2-5 shows a recommended circuit for connection between the 14-pin connector and the RL78 family...
  • Page 20 E1/E20/E2/E2 Lite Additional Document 2. Designing the User System Notes: 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.
  • Page 21: Connection Between The 14-Pin Connector And The Rl78 Family Mcus

    E1/E20/E2/E2 Lite Additional Document 2. Designing the User System 2.4.2 Connection between the 14-Pin Connector and the RL78 Family MCUs (Only the RL78/G11, and the 20- and 24-Pin Versions of the RL78/G12) Figure 2-6 shows a recommended circuit for connection between the 14-pin connector and the RL78 family MCUs (only the RL78/G11 and the 20- and 24-pin versions of the RL78/G12).
  • Page 22: Connection Between The 14-Pin Connector And The Rl78 Family Mcu (Only The Rl78/I1C)

    E1/E20/E2/E2 Lite Additional Document 2. Designing the User System 2.4.3 Connection between the 14-Pin Connector and the RL78 Family MCU (Only the RL78/I1C) The following shows a recommended circuit for connection between the 14-pin connector and the RL78 family MCU (only the RL78/I1C). Figure 2-7 shows the case when the battery backup function is in use.
  • Page 23 E1/E20/E2/E2 Lite Additional Document 2. Designing the User System Notes: 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.
  • Page 24 E1/E20/E2/E2 Lite Additional Document 2. Designing the User System 14-pin 2.54-mm pitch Note 1 connector Note 2 RSTPU Note 3 Note 4 1 kΩ Note 3 RESET_IN Reset circuit Note 3 470 to 510 Ω 10,13 RESET# RESET_OUT Note 3 Note 6 Note 7 Note 7 EVDD...
  • Page 25: Notes On Connection

    E1/E20/E2/E2 Lite Additional Document 2. Designing the User System Notes on Connection Wiring patterns between the connector and 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.
  • Page 26 E1/E20/E2/E2 Lite Additional Document 2. Designing the User System Figure 2-9 Connection Example 1 of RESET# (RL78 Family MCUs in General) <Connection Example of RESET for RL78 Family MCUs in General> <Connection Example of RESET for RL78 Family MCUs in General> (The power-on reset circuit is the only reset circuit on the user system.) (A jumper is used to switch connection to the E1/E20/E2 Lite.) 14-pin...
  • Page 27 E1/E20/E2/E2 Lite Additional Document 2. Designing the User System <Connection Example of RESET when the Target MCU is an RL78/I1C with the Battery Backup Function in Use> (Recommended Circuit) Figure 2-14 Connection Example of RESET# (when the Target MCU is an RL78/I1C with the Battery Backup Function in Use) The following describes points for caution regarding Figure 2-9 to Figure 2-14.
  • Page 28: Tool0 Pin

    E1/E20/E2/E2 Lite Additional Document 2. Designing the User System 2.5.2 TOOL0 Pin The E1/E20/E2/E2 Lite uses the TOOL0 pin. Any functions that are multiplexed on this pin are not available. Pull up the signals of the TOOL0 pin at 1 kΩ and do not arrange these signal lines in parallel with or across other high-speed signal lines.
  • Page 29: Gnd

    When writing a program that requires reliability, do not use the power supply function of the E1/E2/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: https://www.renesas.com/RFP...
  • Page 30 E1/E20/E2/E2 Lite Additional Document 2. Designing the User System 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/E2 Lite after confirming that there are no mismatches of alignment on the user system port connector.
  • Page 31: Internal Circuits Of The Emulator

    E1/E20/E2/E2 Lite Additional Document 2. Designing the User System Internal Circuits of the Emulator 2.6.1 Internal Circuits of the E1 (when the RL78 Family is Connected) Figure 2-16 shows the internal circuits of the E1 with the RL78 family connected. User-side connector 100 kΩ...
  • Page 32: Internal Circuits Of The E20 (When The Rl78 Family Is Connected)

    E1/E20/E2/E2 Lite Additional Document 2. Designing the User System 2.6.2 Internal Circuits of the E20 (when the RL78 Family is Connected) Figure 2-17 shows the internal circuits of the E20 with the RL78 family connected. User-side 100 kΩ × 3 connector 3.3 V 22 Ω...
  • Page 33: Internal Circuits Of The E2 (When The Rl78 Family Is Connected)

    E1/E20/E2/E2 Lite Additional Document 2. Designing the User System 2.6.3 Internal Circuits of the E2 (when the RL78 Family is Connected) Figure 2-18 and Figure 2-19 respectively show the internal circuits of product revisions C and D of the E2 with the RL78 family connected.
  • Page 34 E1/E20/E2/E2 Lite Additional Document 2. Designing the User System User-side connector 1 MΩ × 2 Power-supply circuit (only for use in the mode to supply power to the user system) 100 kΩ 3.3 V 74LVC1T45 47 Ω RSTPU 3 MΩ 74LVC8T245 EMVDD EMVDD...
  • Page 35: Internal Circuits Of The E2 Lite (When The Rl78 Family Is Connected)

    E1/E20/E2/E2 Lite Additional Document 2. Designing the User System 2.6.4 Internal Circuits of the E2 Lite (when the RL78 Family is Connected) Figure 2-20 shows the internal circuits of the E2 Lite with the RL78 family connected. User-side 100 kΩ × 5 connector Power-supply circuit (only for use in the mode to...
  • Page 36: Notes On Designing The User System

    Small Connector Conversion Adapter for the E1 A small connector conversion adapter for the E1 (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, E2, and E2 Lite.
  • Page 37 - - For details on the programming software, refer to the following. https://www.renesas.com/RFP “Input” refers to input from the emulator to the user system and “output” refers to output from the user system to the emulator. 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.
  • Page 38: Notes On Usage

    E1/E20/E2/E2 Lite Additional Document 3. Notes on Usage 3. Notes on Usage Turning the Power On/Off Turn the power of the E1/E20/E2/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>...
  • Page 39: When Power Is Supplied To The User System From The Emulator (E1/E2/E2 Lite Only)

    E1/E20/E2/E2 Lite Additional Document 3. Notes on Usage 3.1.2 When Power is Supplied to the User System from the Emulator (E1/E2/E2 Lite Only) <When using the emulator> (1) Connect the user system. Connect the emulator and the user system with a user-system interface cable. When the external trigger input/output function is to be used with the E2, connect the pins to be used.
  • Page 40: Mcu Resources To Be Occupied

    E1/E20/E2/E2 Lite Additional Document 3. Notes on Usage MCU Resources to be Occupied Figure 3-1 shows the areas which are occupied by the E1/E20/E2/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.
  • Page 41: Securing An Area For The Debugging Monitor Program

    E1/E20/E2/E2 Lite Additional Document 3. Notes on Usage The reset vector area is used by the program for the E1/E20/E2/E2 Lite when performing debugging with the E1/E20/E2/E2 Lite. If the contents of the reset vector area are changed, control by the E1/E20/E2/E2 Lite is no longer possible.
  • Page 42: Securing A Stack Area For Debugging

    E1/E20/E2/E2 Lite Additional Document 3. Notes on Usage 3.3.2 Securing a Stack Area for Debugging The debugger requires 4 bytes as a stack area for debugging except if start/stop functions (only supported by the E2/E2 Lite) are in use, in which case the size of the stack area for debugging is up to 8 bytes. Since this area is allocated immediately below the main stack area, the address of this area varies with increases and decreases in the stack size.
  • Page 43: Setting An On-Chip Debugging Option Byte

    E1/E20/E2/E2 Lite Additional Document 3. 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. When an on-chip debugging emulator is to be connected, be sure to set a security ID.
  • Page 44: Setting A Security Id

    E1/E20/E2/E2 Lite Additional Document 3. 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 0xCD 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.
  • Page 45: Setting A Serial Programming Security Id

    E1/E20/E2/E2 Lite Additional Document 3. Notes on Usage 3.3.5 Setting a Serial Programming Security ID This setting is to prevent to write malicious program or tamper the program by an unauthorized person. Serial programming security ID is deployed at 0xD6 to 0xE5 of the internal flash memory. On starting debugger, id certification is done, if it doesn't match, you can't debug.
  • Page 46: Reset

    E1/E20/E2/E2 Lite Additional Document 3. Notes on Usage 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.
  • Page 47: Operation For Voltages And Flash Operation Modes Not Permitting Flash Memory Rewriting

    E1/E20/E2/E2 Lite Additional Document 3. Notes on Usage 3.5.2 Operation for Voltages and Flash Operation Modes Not Permitting Flash 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 following debugger operations that accompany flash memory rewriting will cause an error in the debugger and the operations will be invalidated.
  • Page 48: Mcus That Are Used In Debugging

    Final Evaluation of the User Program Before entering the mass-production phase, be sure to perform a final evaluation of the program which has been written to the flash ROM by the Renesas Flash Programmer programming software or a flash programmer, without the emulator connected.
  • Page 49: Debug Functions

    E1/E20/E2/E2 Lite Additional Document 3. Notes on Usage 3.10 Debug Functions 3.10.1 Stepped Execution (1) Cautions on using step-in (stepped 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.
  • Page 50: Pseudo-Real-Time Ram Monitor Function Or Pseudo-Dynamic Memory Modification Function

    E1/E20/E2/E2 Lite Additional Document 3. Notes on Usage 3.10.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 (RRM) function or the pseudo- Dynamic Memory Modification (DMM) function. Standby mode (HALT or STOP) may be cancelled during monitoring. •...
  • Page 51: Emulation Of Flash Memory Crc Accumulator Function

    E1/E20/E2/E2 Lite Additional Document 3. Notes on Usage 3.10.6 Emulation of Flash Memory CRC Accumulator Function (1) High-speed CRC (code flash: all area) The operation result of CRC is different from actual result. Because monitor program is arranged and reset vector is rewritten by on-chip debugging. Please check the operation of high-speed CRC by using IECUBE or using device without E1/E20/E2/E2 Lite(Only IECUBE supports device can be confirmed by IECUBE).
  • Page 52: Extended Functions Of The E2

    E1/E20/E2/E2 Lite Additional Document 3. Notes on Usage 3.10.12 Extended Functions of the E2 3.10.12.1 Solution for the Tuning of Current Consumption For notes on the solution for the tuning of current consumption, refer to the application note. 3.10.12.2 External Trigger Input and Output Use the value of the high-level voltage which can be input to the external trigger input in accordance with •...
  • Page 53 E1/E20/E2/E2 Lite Additional Document 3. Notes on Usage 3.10.13.2 Operation with 1.8-V and Lower Voltages When you are using the RL78/G2x with 1.8-V or a lower voltage, specify [Yes] for [Use wide voltage mode] (for CS+) and [Use Wide Voltage Mode] (for the e studio) in the [Connect Settings] tabbed page of the debugger.
  • Page 54: Points For Caution On Using The Rl78/F2X

    E1/E20/E2/E2 Lite Additional Document 3. Notes on Usage 3.10.14 Points for Caution on Using the RL78/F2x 3.10.14.1 Specify RAM area size In RL78/F2x, RAMSAR register is added to specify the size of the RAM area that can be used. With the initial value of this register, only 4KB(0xFEF00 or later) can be used for the RAM area. If you want to use over 4KB, set the value of the RAMSAR register in the program.
  • Page 55 E1/E20/E2/E2 Lite Additional Document 3. Notes on Usage 3.10.14.5 Caution of Secure boot function Figure 3-9 shows the area occupied by E2/E2 Lite for debugging on RL78/F2x These areas(shaded areas) are the space used for debugging. Do not change this area such as user programs and data placement.
  • Page 56: Note On Self-Programming For Flash-Memory

    E1/E20/E2/E2 Lite Additional Document 3. Notes on Usage 3.10.14.6 Reset for reprogramming Internal RAM For RL78/F2x devices, the following area in internal RAM will be reprogrammed if reset is applied during program execution. 0xFF5F8 – 0xFF820 Please write program data on the area with the user program after reset if program data is allocated in this area.
  • Page 57 E1/E20/E2 Emulator, E2 Emulator Lite Revision History Additional Document for User's Manual (Notes on Connection of RL78) Rev. Date Description Page Summary 4.01 Mar.16.16 Information about RL78/F15, RL78/G1H, and RL78/I1E groups was added. Note (3) was added to section 3.5.1. 5.00 Mar.16.16 Information about RL78/I1C and RL78/L1A groups was added.
  • Page 58 E1/E20/E2 Emulator, E2 Emulator Lite Additional Document for User's Manual (Notes on Connection of RL78) Publication Date: Rev.9.10 Oct.06.23 Published by: Renesas Electronics Corporation...
  • Page 59 E1/E20/E2 Emulator, E2 Emulator Lite Additional Document for User’s Manual (Notes on Connection of RL78) R20UT1994EJ0910...

Table of Contents