Renesas 32-bit mcu rx family / rx700 series (69 pages)
Summary of Contents for Renesas RL78/G14 YRPBRL78G14
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 Corp. without notice. Please review the latest information published by Renesas Electronics Corp. through various means, including the Renesas Technology Corp.
Page 2
Renesas Electronics. 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 an application categorized as “Specific” or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics.
Page 3
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.
Page 4
General Precautions in the Handling of MPU/MCU Products The following usage notes are applicable to all MPU/MCU products from Renesas. For detailed usage notes on the products covered by this manual, refer to the relevant sections of the manual. If the descriptions under General Precautions in the Handling of MPU/MCU Products and in the body of the manual differ from each other, the description in the body of the manual takes precedence.
Page 5
Some information contained in this document may vary from country to country. Before using any Renesas Electronics product in your application, please contact the Renesas Electronics office in your country to obtain a list of authorized representatives and distributors. They will verify: ...
Page 6
China RoHS Information ● 有毒有害物質又は元素の含有表 Table of Toxic and Hazardous Substance and Elements 部品名称 有毒有害物質又は元素 Part Name Toxic and Hazardous Substance and Elements 鉛 水銀 カドミウム 六価クロム ポリ臭化ビフェニル ポリ臭化ジフェニルエーテ Lead Mercury Cadmium Hexavalent Polybrominated ル (Pb) (Hg) (Cd) Chromium biphenyls Polybrominated (Cr(VI)) (PBB)
Page 7
Preface This manual is intended for users who want to understand the functions of the Readers concerned microcontrollers. This manual presents the hardware manual for the concerned microcontrollers. Purpose This system specification describes the following sections: Organisation Pin function ...
Page 8
Refer to the text of the manual for details. The following documents apply to the RL78/G14 Group. Make sure to refer to the latest versions of these documents. The newest versions of the documents listed may be obtained from the Renesas Electronics Web site. Document Type Description Document Title Document No.
Page 9
Infrared Data Association Least Significant Bit Most Significant Bit Non-Connect Phase Locked Loop Pulse Width Modulation Renesas Flash Programmer Special Function Register Subscriber Identity Module UART Universal Asynchronous Receiver/Transmitter Voltage Controlled Oscillator All trademarks and registered trademarks are the property of their respective owners.
Page 10
Software Installation ............25 Sample Programs Installation ..............25 6.1.1 Confirmation of USB Driver Installation................26 Chapter 7 How to Use the Renesas Flash Programmer Software... 27 Debugging in e studio...................33 Chapter 8 GUI Description ..............43 Running the RL78/G14 Demo ...............43 GUI Demo Sections ..................44...
Page 11
Low Power Demonstration ................49 8.6.1 HALT Mode........................50 8.6.2 STOP Mode........................50 8.6.3 SNOOZE Mode .........................51 Self-Test Functions Demonstration .............52 Chapter 9 Troubleshooting ..............55 Chapter 10 Schematics ................. 65 Chapter 11 Resonator from Seiko Instruments Inc ......67 11.1 Features of the 32 KHz Resonator............67 11.2 Product Name and Specifications ............67 11.3...
Page 12
Renesas website once final versions are released. Any of the software supplied with this product can be updated from the Renesas Tools web site. However please be aware that while every effort is made to...
Page 13
YRPBRL78G14 Demo User Manual Introduction 1.2 System requirements A PC supporting Windows XP, Windows Vista or 7 is required for the GUI HOST PC and development tools installation. A Pentium processor with at least 1 GHz CPU performance, with at least 256 Mbytes of RAM, allowing you to fully utilize and take advantage of the product features.
Page 14
Renesas Electronics virtual UART driver allows application software to access the USB device in the same way as it would access a standard RS232 interface. The Renesas Electronics virtual UART driver appears to the windows system as an extra Com Port, in addition to any existing hardware Com Ports.
Page 15
YRPBRL78G14 Demo User Manual YRPBRL78G14 Board Components Chapter 3 YRPBRL78G14 Board Components The YRPBRL78G14 board is equipped with a USB connector and with several jumpers in order to be connected to host computers, E1 emulator or any external target hardware. Figure 2: YRPBRL78G14 Board Components Some of the YRPBRL78G14 components are available for user application...
Page 16
YRPBRL78G14 Demo User Manual YRPBRL78G14 Board Components 3.1.2 On-Board Debug (OCD) and Flash Programming Modes The YRPBRL78G14 promotion board supports on-board debug mode achieved by a dedicated monitor running on the RL78/G14 device. By using the e studio IDE, flash programming and standard debug functions i.e. code execution, single stepping, software breakpoints, memory manipulation etc.
Page 17
E1 Emulator Connector CN1 Connector Jumper CN1 (not fitted) is provided to allow debugging and programming of the RL78/G14 microcontroller using an E1 emulator. The Renesas Flash programmer V1.03.00 software can be used with the E1 emulator in order to flash the RL78/G14 device with a program file such .mot or .hex.
Page 18
YRPBRL78G14 Demo User Manual YRPBRL78G14 Board Components 3.7 Mini-B USB Interface Connector USB The mini-B USB connector allows connecting e studio to the YRPBRL78G14 board in order to debug or program application software to the RL78/G14 device. The board power supply is also provided by this connector. Additionally connector USB connects UART2 of the RL78/G14 device to the host system.
Page 19
YRPBRL78G14 Demo User Manual YRPBRL78G14 Board Components 3.8 External Jumpers CN2 and CN3 CN2 to CN3 are jumpers for external user hardware. A standard 0.1’ pitch, 30-way single row, straight headers can be mounted to bring all I/Os for usage. Please read the user’s manual of the RL78/G14 device carefully to get information about the electrical specification of the available I/O ports.
Page 21
YRPBRL78G14 Demo User Manual YRPBRL78G14 Board Components Solder Bridges Some operating functions can be customized by opening or closing the corresponding solder bridge accordingly. For more details please refer to the board schematics, Chapter 11 of this document. Figure 7: Location of Solder Bridges Solder Bridge Name Default Setting...
Page 22
YRPBRL78G14 Demo User Manual YRPBRL78G14 Board Components 3.10 Seiko Instruments Inc. Low Power 32 KHz Resonator The YRPBRL78G14 board is fitted with an external 32 KHz resonator (X2) characterized specifically for the RL78/G14 device supplied by Seiko Instruments Inc. This is a specially designed low power resonator designed to support the very low power consumption of the RL78/G14 family.
Page 23
The installer will copy and install the contents of the DVD on the host PC. The contents copied and installed from the DVD will appear on the “Start All Programs” menu. Description Renesas Flash Programming Software Renesas Flash Programmer V1.03.00 Renesas Electronics Tools YRPBRL78G14 Documentation Manual Navigator GUI Software...
Page 24
YRPBRL78G14 Demo User Manual Hardware Installation Chapter 5 Hardware Installation Before connecting the YRPBRL78G14 board to the host PC via USB cable, ensure all the software is correctly installed first (see chapter 6). R20UT1449EG User Manual Rev. 1.00...
Page 25
The YRPBRL78G14 package comes with several software demonstration packages: studio IDE, including the GNURL78 compiler, assembler, linker, library generator, Renesas GDB Server and E1 emulator drivers. Projects built for use with the Renesas GDB Server. Renesas Flash Programmer V1.03.00 Flash programming GUI software...
Page 26
Open "Device Manager" by entering: [Start] [Settings] [Control Panel] [System] tab [Hardware] When the YRPBRL78G14 board is connected to the host PC, the "Renesas Electronics Starter Kit Virtual UART" (without "?" mark) should be present under the section "Ports (COM &...
Page 27
Chapter 7 How to Use the Renesas Flash Programmer Software This chapter explains the basic operations of the Renesas Flash Programmer RFP V1.03.00 GUI for programming the YRPBRL78G14 board. This chapter covers how to start the system, execute the EP command (Erase, Program), and program the target RL78/G14 device.
Page 28
PC via USB cable (see figure below). Figure 23: YRPBRL78G14 E1 Connection Diagram Start the Renesas Flash Programmer V1.03.00 GUI from the start menu: [Start] [All Programs] [Renesas] [Renesas Flash Programmer V1.03.00] Figure 24: Flash Programmer Start-up Screen (5.1) Select [Create new workspace] and click button Next.
Page 29
YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software (5.2) from the menu select [Microcontroller] [RL78]. A list off all supported devices will appear in the target Microcontroller. Select [R5F104LE]. (5.3) Give the workspace and the project a name. The RFP V1.03.00 will by...
Page 30
YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software (5.5) The Setting Power Supply dialog box appears. Click button Next. Figure 13: « Setting Power Supply » Dialog Box (5.5) The following information settings window will appear with all the default parameters already set by the GUI.
Page 31
YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software Figure 15: Selecting a user program Click the button Start. <7> Auto procedure (EP) command When the Start button is Clicked, Blank Check Erase Program are executed execution sequentially for the RL78/G14 device.
Page 32
Table 10: CN6, CN7, CN8 and CN11 Configuration for Normal Operation Mode Figure 17: Board in Normal Operation Configuration When the Renesas Flash Programmer V1.03.00 GUI is restarted, simply reopen <10> Restarting the the latest saved workspace. R20UT1449EG User Manual Rev. 1.00...
Page 33
YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software 7.1 Debugging in e studio The two projects provided can be debugged in e studio using an E1 connected <1> Create to CN1. The project located in the folder ‘Debugging Project’ does not require a Workspace demo GUI and allows the user to debug the YRPBRL78G14 hardware.
Page 34
YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software Once the e2 environment has initialised, right click in the project explorer window <2> Import Project and click ‘Import…’. The Import dialog will now show. Expand the General folder icon, and select “Existing Projects into Workspace”, then click ‘Next’.
Page 35
YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software Ensure that the ‘Copy projects into workspace’ option is ticked, and then click ‘Finish’. Once the project has been imported, click the arrow to the right of the bug symbol <3>...
Page 36
YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software The ‘Debug Configurations’ dialog will appear. Click the small arrow next to ‘Renesas GDB Hardware Debugging’ option to reveal the pre-configured ‘YRPBRL78G14_Stick_Demo_SW HardwareDebug’ configuration. Click on the ‘YRPBRL78G14_Stick_Demo_SW HardwareDebug’ configuration to view the configurations.
Page 37
YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software Click the ‘Debugger’ tab, check the settings match those shown in the image below. Make sure the ‘Debug Hardware’ drop down menu is set to ‘E1 (RL78)’, and the target device to ‘R5F104LE’. The rest of the settings are as follows:...
Page 38
Another dialog may be shown asking to change to the ‘Renesas Debugging Perspective’. Select the ‘Remember my decision’ tickbox to prevent this message appearing each time e studio connects to the target device –...
Page 39
YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software Expand the src folder to reveal the list of source files. Double click the hardware_setup.c file to open it. Alternatively, right click on the file and select ‘Open’.
Page 40
YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software Click the ‘Restart’ button to restart the target device and begin code execution. Program execution will stop at the break point. The main window will show the program counter indicator on the line of code with the break point.
Page 41
YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software The panel in the top left of the screen can be used for debugging. Click the <6> Advanced ‘Variables’ tab to view all local variables currently in scope. Click ‘Breakpoints’ to Debug Features view and edit software breakpoints, and click ‘IO Registers’...
Page 42
YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software To view memory areas directly, click ‘Window’ from the top menu bar and then click ‘Show View’ and select ‘Memory’. The memory window will appear docked in the bottom section of e studio.
Page 43
8.1 Running the RL78/G14 Demo From the menu “All Programs” locate the folder “Renesas Electronics Tools YRPBRL78G14” within that folder select “YRPBRL78G14-Demo” to run the RL78/G14 demo as shown below. It is also possible to run the demo by double clicking on the GUI demo shortcut icon on the desktop.
Page 44
YRPBRL78G14 Demo User Manual GUI Description 8.2 GUI Demo Sections The following screenshot shows the GUI demo followed by the names and short explanations of the different sections. Please note that the lower part of the GUI (graphs and values are displayed in all of the demonstration Tabs. The data displayed in each tab is updated every 4 to 5 seconds.
Page 45
YRPBRL78G14 Demo User Manual GUI Description <2> Real Time Clock This section displays the date and time reported by the on-board RTC. The RL78/G14 RTC registers can be synchronized with the PC system date and time by clicking the “Sync” button. The user can also set and enable the interval interrupt and the alarm functions.
Page 46
YRPBRL78G14 Demo User Manual GUI Description 8.3 ADC Demonstration This section of the GUI makes use of the ADC to measure and display the external voltage and the temperature using the RL78/G14 internal temperature sensor. The sensor is internal to the RL78/G14 device therefore the measured temperature might not reflect the room temperature.
Page 47
YRPBRL78G14 Demo User Manual GUI Description 8.4 Real Time Clock Demonstration This section of the GUI demonstrates the capability of the RL78/G14 to implement full calendar function using the internal separate registers for seconds, minutes, hours, days, days of the week, months and years. For full explanation of the on-board RTC please consult the user manual of the device.
Page 48
YRPBRL78G14 Demo User Manual GUI Description 8.5 Memory Demonstration This section of the GUI demonstrates the Data Transfer Controller operation and the RAM data retention in the lowest power mode. Note the RAM window can also be used for the RAM write protection function in the “Self Test” tab as this is part of the user write protection RAM area.
Page 49
YRPBRL78G14 Demo User Manual GUI Description 8.6 Low Power Demonstration It is recommended to remove the jumper link from the connector CN4 and replace it with the two leads of a multi-meter to be able to measure the current consumption of the RL78/G14. The following figure gives an illustration on how to connect.
Page 50
YRPBRL78G14 Demo User Manual GUI Description 8.6.1 HALT Mode In this mode only the operating system clock to the CPU is stopped. The system clock can still be supplied to the peripherals. The total current consumption of the system can be reduced by using this mode in combination with the normal operation mode for intermittent operation.
Page 51
YRPBRL78G14 Demo User Manual GUI Description 8.6.3 SNOOZE Mode The SNOOZE mode is a new mode which allows the RL78 to test for a valid “Wake Up” mode to occur, before waking the CPU. In this way the average power consumption can be reduced.
Page 52
YRPBRL78G14 Demo User Manual GUI Description Figure 28: SNOOZE Mode 8.7 Self-Test Functions Demonstration The RL78/G14 includes several new self-test and safety hardware functions, amongst these are: System Clock Measurement This allows the measurement and monitoring of the internal system clock. Switch Test This polls the user switches every one second.
Page 53
YRPBRL78G14 Demo User Manual GUI Description 1. System Clock Frequency Monitoring The RL78/G14 also provides the ability to measure and check the system clock frequency. Click the “Enable” button, the GUI will then display the current 32 MHz internal high-speed oscillator frequency, measured by the RL78 device.
Page 54
YRPBRL78G14 Demo User Manual GUI Description Number of ELC Events Guard Test Switch Held-down Period Switch Test Clock Measurement Self-Test Functions Figure 29: R20UT1449EG User Manual Rev. 1.00...
Page 55
YRPBRL78G14 Demo User Manual Troubleshooting Chapter 9 Troubleshooting In driver installation, recognition based on Plug and Play is disabled. Cause: The USB connector may not be inserted normally into the USB port of the personal computer. Action: Check that the USB connector is inserted fully into the USB port of the personal computer.
Page 56
YRPBRL78G14 Demo User Manual Troubleshooting When this product is connected with a personal computer, the "Add New Hardware Wizard" screen is displayed Cause: If the USB connector of this product is not inserted into the USB port used at the installation time but into another USB port, this product may be recognized as a new hardware item.
Page 57
Install from a Specific Location (Windows XP) Mark “Include this location in the search” and then browse the computer to select <2> the following directory: C:\Program Files\Renesas\RPB\RL78G14\USB Drivers\win2k\ Click Next > . Figure 32: Search Location Specification (Windows XP) R20UT1449EG...
Page 58
YRPBRL78G14 Demo User Manual Troubleshooting Click Continue Anyway to continue the installation. <3> Figure 33: Installation Confirmation (Windows XP) Click Finish to close the installation wizard. <4> Figure 34: USB Driver Installation Completion (Windows XP) R20UT1449EG User Manual Rev. 1.00...
Page 59
YRPBRL78G14 Demo User Manual Troubleshooting Installation on Windows Vista When the YRPBRL78G14 board is connected to the host machine for the first <1> time, the board is recognized by “Plug and Play” and the “Found New Hardware” window will pop up. Select “Locate and install driver software (recommended)”.
Page 60
Troubleshooting Select the folder where the installer has copied the USB drivers from the DVD. <2> For 32-bit Operating Systems, select the following location: C:\Program Files\Renesas\RPB\RL78G14\USB Drivers\win2k\ For 64-bit Operating Systems, select this location: C:\Program Files\Renesas\RPB\RL78G14\USB Drivers\wlh_amd64\ Click Next >...
Page 61
Select “Browse my computer for driver software”. Update Driver Software (Windows 7) Figure 40: Select the folder where the installer has copied the USB drivers from the DVD. <2> For 32-bit Operating Systems, select the following location: C:\Program Files\Renesas\RPB\RL78G14\USB Drivers\Win2k\ R20UT1449EG User Manual Rev. 1.00...
Page 62
YRPBRL78G14 Demo User Manual Troubleshooting For 64-bit Operating Systems, select this location: C:\Program Files\Renesas\RPB\RL78G14\USB Drivers\wlh_amd64\ Click Next > . Search Location Specification (Windows 7) Figure 41: Click Install when the driver has been found.. <3> Figure 42: Installation Confirmation (Windows 7) Click Close to close the installation wizard.
Page 63
Check if the USB driver is installed correctly by referring to Chapter 6 – Software Installation. Cause: The COM port selected via the “Port list box” within device setup menu of Renesas Flash programmer may not be set correctly. Action: Set the port checked using Device Manager. Cause: The YRPBRL78G14 board is operating in GUI Demo / Virtual UART mode.
Page 64
YRPBRL78G14 Demo User Manual Troubleshooting Known e studio Limitations Please refer to the release note titled D011189_YRPBRL78G14_Release_Note. Cygwin Heap Error For some 32-bit Windows 7 machines a build error may occur when using cygwin GNU compilers due to virtual memory allocation issues. This can happen for any project and is described in the following technical note: http://support.code-red-tech.com/CodeRedWiki/VirtualAllocPointerNull R20UT1449EG...
Page 65
YRPBRL78G14 Demo User Manual Schematics Chapter 10 Schematics Figure 44: YRPBRL78G14 Board Schematic R20UT1449EG User Manual Rev. 1.00...
Page 66
YRPBRL78G14 Demo User Manual Schematics Figure 45: YRPBRL78G14 Board Assembly Drawing R20UT1449EG User Manual Rev. 1.00...
Page 67
VT-200-FL (Cylinder type Low CL resonator) The main specifications are as follows: 32.768 KHz ± 20ppm CL 4.4pF. 11.3 Web URL Fore more information about those products, please refer to the following URL: www.sii-components.com/quartz/renesas/ R20UT1449EG User Manual Rev. 1.00...
Page 68
YRPBRL78G14 Demo User Manual Resonator from Seiko Instruments Inc 11.4 Seiko Instruments Inc. Contact Addresses (Japan) Contact person name: Katsuyuki Masuko Quartz Crystal Sales, Electronic Components Business Unit Tel. number: +81-43-211-1207 Email address: katsuyuki.masuko@sii.co.jp Company name: Seiko Instruments Inc. Address: 8,Nakase 1-choume,Mihama-ku,CHiba-shi, Chiba 261-8507,Japan (China)
Page 69
REVISION HISTORY RL78/G14 Stick User’s Manual: Demo Rev. Date Description Page Summary 1.00 Mar 21, 2012 First Edition issued...
Page 70
RL78/G14 Stick User’s Manual: Hardware Publication Date: Rev.1.00 Mar 21, 2012 Published by: Renesas Electronics Corporation...
Page 71
SALES OFFICES Refer to "http://www.renesas.com/" for the latest and detailed information. Renesas Electronics America Inc. 2880 Scott Boulevard Santa Clara, CA 95050-2554, U.S.A. Tel: +1-408-588-6000, Fax: +1-408-588-6130 Renesas Electronics Canada Limited 1101 Nicholson Road, Newmarket, Ontario L3Y 9C3, Canada...
Need help?
Do you have a question about the RL78/G14 YRPBRL78G14 and is the answer not in the manual?
Questions and answers