Home

User Manual - Renesas Electronics

image

Contents

1. RPBRL78G14 2 N wiere L we G kidkakijidkkidi Ke U mg i mt Figure 44 YRPBRL78G14 Board Schematic MEO TT Ea RE User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual Schematics Ri A O 100 ER D 000000 0 0 0 0 OV 00 0000000000 OM R9 Figure 45 YRPBRL78G14 Board Assembly Drawing MEO CTT RN PP a User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual Resonator from Seiko Instruments Inc Chapter 11 Resonator from Seiko Instruments Inc 11 1 Features of the 32 KHz Resonator The SSP T7 FL is a tuning fork 32 KHz low CL crystal resonator from Seiko Instruments Inc designed for the new low power RL78 MCU family Microcontrollers from the RL78 family using this 32 KHz low CL resonator achieves ultra low power oscillation circuit 0 2 uA max with fast start up time within 1 sec high accuracy 10 sec per month and high efficiency oscillation allowance up to 20 11 2 Product Name and Specifications The different product names offered by Seiko Instruments Inc for the RL78 microcontrollers are e SSP T7 FL SMD type low CL resonator e 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 R20UT1449EG User Manual Rev 1 00 Fore more information about those products
2. single stepping software breakpoints memory manipulation etc are supported Configure jumpers CN6 CN7 CN8 CN11 as following to use the on board debug or Flash programming mode Jumper Configuration for On Board Debug Flash Programming Mode CN8 CN7 CN6 CN11 x DT a sm us sam aS om a um kam a a on P a m GUO E Se E Figure 3 3 2 3 3 3 4 R20UT1449EG User Manual Rev 1 00 YRPBRL78G14 On chip Debugger Jumper Settings For details on debugging in e studio please refer to Chapter 7 Debugging in e studio of this document Power LED Di D1 is the Power LED D1 is activated if power is supplied to the YRPBRL78G 14 board User s LED D2 D2 is connected to the port pin P77 of the RL78 G14 It can be used by the user for any purpose External Power Supply CN5 External power can be supplied by connecting a regulated 5V DC to the connector CN5 not assembled The operation of the stick is as follows USB power only Or External supply only Board can only be operated as stand alone only no USB power connection TENESAS 16 YRPBRL78G14 Demo User Manual YRPBRL78G14 Board Components Table 3 3 5 3 6 When external power supply Vext is used make sure that you follow these guidelines Vext can only be used if the stick is not connected to the PC USB connection is not permitted if both USB and external power supplies are
3. Import C C e2Studio File Edit Source Refactor Navigate Search Run Project Window Help m E Er ie l e C a D 7 s o L ww h v v Project Explorer m The Import dialog will now show Expand the General folder icon and select Existing Projects into Workspace then click Next Select Create new projects from an archive file or directory Select an import source type filter text 4 2 General DS Archive File O File System 0 El Preferences gt gt C C gt E CVS gt 2 Run Debug gt Team The import dialog will now allow you to specify the project to import Click the Browse button and locate the master copy of the YRPBRL78G14 GUI Demo Software from C Workspace RPB RL78G14 Sample ProjectsiGUI Demo Source Code MEO TT Se User Manual Rev 1 00 RENESAS 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 Import Projects Select a directory to search for existing Eclipse projects 9 Select root directory C Select archive file Projects Add project to working sets 3 Configure Once the project has been imported click the arrow to the right of the bug symbol Debugger to open the debugger configuration menu and then select Debug Configurations Connection Project W
4. LENESAS RL78 614 Stick YRPBRL78G14 16 bit Microcontroller RL 8 G14 RSF 104LEAFB 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 website http www renesas com Renesas Electronics R20UT1449EG Rev 1 00 www renesas com March 21 2012 Notice 1 All information included in this document is current as of the date this document is issued Such information however is subject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please confirm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website 2 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 righ
5. button Click on the Memory Demo tab change the bytes to write to RAM then click Write Attempt to read the written bytes by clicking on Read The bytes read from RAM will not change Switch to the Self Test tab and disable RAM guard Switch back to the Memory Demo tab and attempt to read the bytes Notice that the bytes read from RAM matches the bytes written to RAM SFR Guard LED D2 is toggled every second by changing the mode of the corresponding port pin between output and input The internal pull up resistor is enabled so that when the port pin is set as an input the state is high 1 that is D2 turned off When the port pin switches to output the output is specified as low 0 that is D2 turned on When the SFR guard is enabled the LED D2 stops flashing as the corresponding port mode register is protected When the Disable button is pressed the RAM or SFR returns to normal RAM data can be written and the variables in the GUI now update and the LED starts to flash as before ELC The ELC links timer TAUO channel 3 and timer RJO removing the need to interrupt the CPU after clicking Enable TAUO channel 3 s interrupt signal is routed to timer RJO by the ELC and used as timer RJO s count source The interrupt signal is the event Switch SW2 is connected to TA O channel 3 s input pin On detection of a falling edge following a switch press TAUO channel 3 starts counting The count stops on detection o
6. buttons are pressed so a more detailed look of the reported values can be made MO CTT RN eee User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual GUI Description 25 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 3 Memory RAM Content This section displays the data RAM content written to by the DTC and then read from the RL78 G14 RAM variable memory An 8 byte user area can also be written and read by the user RAM content is not lost even when the RL78 G14 enters the lowest power mode STOP mode providing power is not removed from the board 45 Low Power Low Power Mode Selection Three different standby modes are implemented in the RL78 G14 device HALT mode STOP mode and the new SNOOZE mode Buttons are used to switch the operational mode of the RL78 G14 to the standby mode selected The button clicked will set the RL78 into the selected low power mode and change caption to Release The RL78 will remain in the selected low power mode until button is clicked again to release the RL78 G14 to the active mode except for the Snooze mode which requires the user to adjust the external potentiometer to exit Detailed explanations about each of the low power modes are provided
7. follows Hardware Board YRPBRL78G14 Configuration of l YRPBRL78G14 CPU RL78 G14 Target Device R5F104LE Voltage level E 5V A binary file can be generated by compiling the GUI Demo Source Code project in e studio see chapter 7 1 lt 1 gt Installing the Install the Flash Programmer V1 03 00 GUI software on the host machine you RFP V1 03 00 GUI are using by referring to Chapter 6 Software Installation if the software has not been installed yet Fit a 0 1 pitch 2 row 7 way pin header to the E1 debug header see figure below u 8 ome bs a ra i GK a ik E do nu ma E u a E1 Debug Header Figure 9 E1 Debug Header MEO CTT RN ET User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software Connect an E1 emulator to the YRPBRL78G14 and the E1 emulator to the host PC via USB cable see figure below User Interface vi Cable USB Cable YRPBRL78G14 E1 Emulator C 7 y LI TAN N PMMA LA NS N LJL Jl TETEN E A NUM N Host PC Figure 23 YRPBRL78G14 E1 Connection Diagram Start the Renesas Flash Programmer V1 03 00 GUI from the start menu Start gt All Programs gt Renesas gt Renesas Flash Programmer V1 03 0
8. please refer to the following URL www sli components com quartz renesas TENESAS 67 YRPBRL78G14 Demo User Manual 11 4 Seiko Instruments Inc Contact Addresses R20UT1449EG Japan Contact person name Tel number Email address Company name Address China Contact person name Tel number Email address Company name Address Americas Contact person name Tel number Email address Company name Address Europe Contact person name Tel number Email address Company name Address Korea Contact person name Tel number Email address Company name Address Taiwan Contact person name Tel number Email address Company name Address User Manual Rev 1 00 Resonator from Seiko Instruments Inc Katsuyuki Masuko Quartz Crystal Sales Electronic Components Business Unit 81 43 211 1207 katsuyuki masuko sii co jp Seiko Instruments Inc 8 Nakase 1 choume Mihama ku CHiba shi Chiba 261 8507 Japan Kensei Nozu 86 775 82462680 307 kensei nozu QYsii co jp Seiko Instruments H K Ltd Shenzhen Rep office 2212 2215 Diwang commercial building Shunhin square 5002 Shennan Est Rd Shenzhen Guangdong China Jim Schlumpberger 01 310 517 7884 lim schlumpberger siu la com Seiko Instruments U S A Inc 2990 Lomita Blvd Torrance CA 90505 U S A Michael Bertsch 49 6102 297 303 michael bertsch seiko instruments de Seiko Instruments GmbH Siemenss
9. 100 PASS Autoprocedure E P PASS EndiSutoprocedure E P Disconnect Clear Output Panel Figure 16 Flash programming GEO TT EO a User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software 8 Terminating the Select File gt Exit to terminate the GUI software All settings executed are GUI saved so that those settings can be reused when the RFP GUI is restarted lt 9 gt Execute Verify that CNG CN7 CN8 and CN11 jumpers on the YRPBRL78G14 board are application setfor normal operation mode with the following settings Table 10 CN6 CN CN8 and CN11 Configuration for Normal Operation Mode CN8 CN7 CN6 CN11 Figure 17 Board in Normal Operation Configuration 10 Restarting the When the Renesas Flash Programmer V1 03 00 GUI is restarted simply reopen GUI the latest saved workspace MEO CTT RN a User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software 7 1 Debugging in e studio 1 Create The two projects provided can be debugged in e studio using an E1 connected Workspace to CNT The project located in the folder Debugging Project does not require a demo GUI and allows the user to debug the YRPBRL78G14 hardware The project located in the folder GUI Demo Source Code cannot be fully debugged without connecting to the demo GUI The steps provided in this section uses the
10. Browse Select a program file to be written to the program target device In this case the YRPBRL78G14 Stick Demo SW mot file is used however RFP supports hex mot s and rec binary file types This can be found in the following project folder C Workspace SampleProjects GUI Demo Source CodelY RPBRL78G14 Stick Demo SWMHardwareDebug Note The projects found in the location C Workspace SampleProjects should not be modified Please refer to Section 7 1 for creating projects in e studio based on the supplied sample projects MME CTT RN User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software Es Renesas Flash Programmer Basic mode File Microcontroller Help Microcontroller RBF1O04LE User Data area Command Autoprocedure E P Start This software is the no charge free version po is unsupported Figure 15 Selecting a user program lt 7 gt Auto procedure Click the button EP command execution When the Start button is Clicked Blank Check gt Erase gt Program are executed sequentially for the RL78 G14 device The result of the operation is displayed at the end K Renesas Flash Programmer Basic mode File Microcontroller Help Microcontroller REFIO4LE User Data area YRPBRL78GI 4 Stick Demo Smot ker Boot area Browse Command Auto procedurel E F Start PASS AUS 30 AU DU DU ZU DU OO
11. Componenlts 15 3 1 Configuration Jumpers CN6 CN7 CN8 CN11 s s 15 3 1 1 GUI Demonstration Mode Virtual UART Mode ssssnn 15 3 1 2 On Board Debug OCD and Flash Programming Modes s s 16 32 LS DI okok oo Skuno uas kara oak AE AE okulo da SO kane sub okasomunokatakabakusalaj 16 do leet 16 3 4 External Power Supply CN5 ss ssssssssssssssssssssssesssnnunusnnsns 16 3 5 Current Measurement CNG weus SCENE NEESS NEEN ge 17 3 6 E1 Emulator Connector CN1 ss ssssssssssssssssssssesenssnnununnnnns 17 3 7 Mini B USB Interface Connector USB s esssssessssnunssnnsns 18 3 8 External Jumpers CN2 and CN3 ss sssssssssssssssesssenunusnnnns 19 3 3 SolderBriaqes init ai iii 21 3 10 Seiko Instruments Inc Low Power 32 KHz Resonator 22 3 E RE7S G14 MEMON Man wi te nnn tn heme eiikoernn 22 Chapter 4 Getting Started s ssssessssssessunununns 23 4 1 Installed el LTC 23 Chapter 5 Hardware Installation s 24 Chapter 6 Software Installation s 25 6 1 Sample Programs InstallaHON sacas as iscasasniaca
12. GUI Demo Source Code project to help the user to familiarise with the e studio debugging environment Start e studio by selecting it from Start Menu The first dialog that will appear will be the Workspace Launcher Click Browse and select a suitable location to store your workspace using the Create New Folder option as necessary Click OK Workspace Launcher Selecta workspace e2Studio stores your projects in a folder called a workspace Choose a workspace folder to use for this session Workspace Use this as the default and do not ask again Cancel Click Yes when presented with the Administrator Privilege dialog eil Administrator Privilege Administrative privileges are required for correct operation of edstudio on Windows 7 Please ensure you have appropriate privileges e Right click renesas eclipse exe and choose Run as Administrator Do you want to continue The e studio welcome splash screen will appear Click the Go to the workbench arrow button on the far right E T E Mo aus MESA ee Die Ces Spuere fette I raggg famh um Pete dos ep A Mem Welcome e2 studio C s e tENESAS EO TT CC User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software 2 Import Project Once the e2 environment has initialised right click in the project explorer window and click
13. X1 pin to a 10K pull down resistor when 20MHz resonator not fitted ape Closed Connects X2 pin to a 10K pull down resistor when 20MHz resonator not fitted Table 7 Solder Bridges MEO CTT RN P Tua User Manual Rev 1 00 RENESAS 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 For more technical details on this device and contact details for Seiko Instruments please refer to chapter 13 3 11 RL78 G14 Memory Map The RL78 G14 memory layout is shown in the table below software Free for user application OxFEBFF Mirror pi s 1 Dieses OxF1000 SR Address area OxFOFFF Access prohibited area OxFO800 Free for user application software OxEFFFF Access prohibited area 0x10000 Free for user application software Table 8 RL78 G14 Memory Map MEO CTT RN DT User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual Getting Started Chapter 4 Getting Started The default setting of the YRPBRL78G 14 board is set for demonstration use with the GUI The DVD included and quick start guide will take the user through the installation procedure The Quick Start Guid
14. ZhiChunLu Haidian District Beijing 100083 P R China Tel 86 10 8235 1155 Fax 86 10 8235 7679 Renesas Electronics Shanghai Co Ltd Unit 204 205 AZIA Center No 1233 Lujiazui Ring Rd Pudong District Shanghai 200120 China Tel 86 21 5877 1818 Fax 86 21 6887 7858 7898 Renesas Electronics Hong Kong Limited Unit 1601 1613 16 F Tower 2 Grand Century Place 193 Prince Edward Road West Mongkok Kowloon Hong Kong Tel 852 2886 9318 Fax 852 2886 9022 9044 Renesas Electronics Taiwan Co Ltd 7F No 363 Fu Shing North Road Taipei Taiwan Tel 886 2 8175 9600 Fax 886 2 8175 9670 Renesas Electronics Singapore Pte Ltd 1 harbourFront Avenue 706 10 keppel Bay Tower Singapore 098632 Tel 65 6213 0200 Fax 65 6278 8001 Renesas Electronics Malaysia Sdn Bhd Unit 906 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 Korea Co Ltd 11F Samik Lavied or Bldg 720 2 Yeoksam Dong Kangnam Ku Seoul 135 080 Korea Tel 82 2 558 3737 Fax 82 2 558 5141 http www renesas com O 2012 Renesas Electronics Corporation All rights reserved Colophon 1 0 RL78 G14 Stick LENESAS Renesas Electronics Corporation RO2UT1449EG0100
15. is error free Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein 7 Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below 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 categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of 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 R20UT1449EG User Manual Rev 1 00 RENESAS 8 The quality grade of each Renesas Electronics product is Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books etc Standard Computers office equ
16. low order e Weight in data notation column e Active low notation xxx pin or signal name is over scored or xxx slash before signal name or _ XXX High order at high stage and low order at low stage e Memory map address Additional remark or tip Item deserving extra attention Binary xxxx or xxxB Decimal XXXX Hexadecimal XXXXH or 0X xxxx Representing powers of 2 address space memory capacity K kilo 2 1024 M mega 27 1024 1 048 576 G giga 299 1024 1 073 741 824 X x don t care Block diagrams do not necessarily show the exact wiring in hardware but the functional structure Timing diagrams are for functional explanation purposes only without any relevance to the real hardware implementation LENESAS How to Use This Manual 1 Purpose and Target Readers This manual is designed to provide the user with an understanding of the hardware functions and electrical characteristics of the MCU It is intended for users designing application systems incorporating the MCU A basic knowledge of electric circuits logical circuits and MCUS is necessary in order to use this manual The manual comprises an overview of the product descriptions of the CPU system control functions peripheral functions and electrical characteristics and usage notes Particular attention should be paid to the precautionary notes when using the manual These notes occur within the body of the text at the e
17. memory view and enter either a memory address location in hex or the name ofa variable El Console 45 Tasks i Problems 3 Executables 4_ Realti Monitors You can scroll the memory view up and down to see adjacent memory locations El Console Tasks fh Problems O Executables l Realtime Memory Es Realtime Chart T Trace D Memory e Monitors d 3 Ze RAMContent OxFES03 lt Hex gt 53 gt dr New Renderings RAMContent Address dal G B ESE 000FE900 DETE1E28 B3DF10A0 FFFA602A OOOFESIO 92D34558 FR40722B SFDBBASI DCFAZADA OOOFESZO0 3100FD25 CCO4F6FF 6609C504 11124D8E OOOFES30 03BEC8F 40010101 1EFFOOFE SAU BODOU U OOOFES40 020000000 00000000 00000000 00000000 OOOFESS5SO 00000000 gogogo 00000000 20000000 Note The projects provided with the YRPBRL78G14 were partly created using APIs generated by Applilet a tool used to generate source and headers files containing APIs Source files and APIs generated by Applilet have names starting with Tr and R respectively The version of Applilet used in the projects provide is Applilet3 for RL78614 V 1 01 01 and can be downloaded from the following website http www2 renesas eu products micro download 0c AP3 RL 8G14 EE MEO CTT RN CR User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual GUI Description Chapter8 GUI Description 8 1 The RL78 G14 demonstration GUI is Windows software application that can be used to demonstrate the k
18. that the USB connector is inserted fully into the USB port of the personal computer Alternatively disconnect the USB connector from the USB port then insert the USB connector again after a while Cause The driver may not be installed correctly Action 17 When this product is connected to the personal computer right click the driver marked with or x Click when displayed 2 On Device Manager execute Hardware Modification Scan 3 Install the driver again with Plug and Play Cause The device may not be recognized in the case of connection with the USB hub Action Try the following e Disconnect the USB connector then insert the USB connector again e Connect the USB connector to another port of the USB hub If the same symptom occurs do not use the USB hub but directly connect the connector to the USB port of the personal computer RZLENESAS 95 YRPBRL78G14 Demo User Manual Troubleshooting 1 e 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 Action Install the driver by referring to Chapter 6 Software Installation Alternatively the driver can be installed manually by following the provided guideline below e Installation on
19. urites the 4 Bytes ADC measurement Temperature voltage to RAM using the DTC unner RA EES Bytes read from RAM 090 090 88 op 88 op BO 00 DATA WRITTEN TO RAM DATA READ FROM RAM 2012 03 21 14 44 33 DTC and RAM Content TENESAS 48 YRPBRL78G14 Demo User Manual GUI Description 8 6 Low Power Demonstration It is recommended to remove the jumper link from the connector CNA 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 Figure 24 Multi Meter Connection for Current Measurement The RL78 G14 supports 3 low power modes that the GUI utilizes and demonstrates HALT STOP and SNOOZE For more details on the power saving modes of the RL78 G14 please consult the device user manual When using the low power demonstration the user clicks the appropriate button in the GUI window The RL78 G14 will enter the selected low power mode and will remain in that state until released by the GUI again The different low power modes supported by this GUI demonstration are explained below e L ES RL78 G14 E Real Time Clock Memory Dem H Low Power fi self Test Puts the EL78 into Lou Power Halt Mode 1 Select voltage Limits Select Trigger Intervals NRT Click Button to enter Mode 3 1 gt Fi Adjust Pot to release Mode JA pm Y m i Puts the EL73
20. you can take to get your device working gt Browse my computer for driver software advanced Locate and install driver software manually Figure 36 Install from a Specific Location Windows Vista MEO CTT RN E User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual Troubleshooting lt 2 gt Select the folder where the installer has copied the USB drivers from the DVD For 32 bit Operating Systems select the following location C Program Files Renesas RPB RL 78G14 USB Drivers win2k For 64 bit Operating Systems select this location C Program Files Renesas RPB RL 78G14 USB Drivers wlh_amd64 Click Browse for driver software on your computer Search for driver software in this location Include subfolders EKE Cancel Figure 37 Search Location Specification Windows Vista 3 Click Install when the driver has been found Windows Security Would you like to install this device software Mame Renesas Electronics Corporation Ports a Publisher Renesas Electronics Corporation Always trust software from Renesas Electronics Don t Install Corporation E You should only install driver software from publishers you trust How can decide which device software is safe to install Figure 38 Installation Confirmation Windows Vista lt 4 gt Click to close the installation wizard MEO CTT RN NF User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual Troubleshootin
21. 0 Figure 24 Flash Programmer Start up Screen 5 1 Select Create new workspace and click button Next Ai Renesas Flash Programmer Basic mode LE EA S File Microcontroller Help Micro controller Program File Browse Fu Welcome a Create new workspace Open latest workspace Open AFP workspace Clear Output Panel Figure 10 RFP Welcome Dialog Box MEO CTT RN PP PP User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software 5 2 from the menu select Microcontroller gt RL78 A list off all supported devices will appear in the target Microcontroller Select R5F 104LE 5 3 Give the workspace and the project a name The RFP V1 03 00 will by default save the workspace to the following location C Documents and Settings User_Name Local Settings Application Data Renesas Flash Programmer V1 03 00 with the User_Name being your logging user name to the host Click button Create a new workspace Microcontroller Filter Using Target Microcontroler Information A RBF104MJ R5F104PJ RL78 11A R5F1076C RLZ8 11A RSFIO7AC DES Workspace Name Project Name Folder CAllsers ento App Data Local Renesas Flash Programmer Figure 11 Device Selection 5 4 From the Select Tool list box select the communication port that matches the host machine being used Cl
22. A IA F 3 Pl40 P140 PCLBUZO INTP6_________ WW 4 P141 PI PCLBUZLINTPT T T 5 Poo P00 TIOO TRGCLKA M 6 P01 PON TODO TRGCLKB TRJIOO po 7 Poo IO _ANI7_SO10_TXD1 S o 8 Pos POS ANM6_SIMO RXDI SDAIO 9 Dn P04 SCK10 Z SCL10 S J a to P130 E G 11 AVep POANODAMREP P Meal WM 12 AVeim P1ANTAREM S WW 13 P2 P2ANZANO O OaI Me 21 1 14 P23 P23 ANIS ANO 15 P24 PR ANA OOOO 16 P25 P25 AN SO 17 P26 PP2BBANIB SOS 18 P27 I PRR ANT I I o Reset input 19 T RESET RESET Z Connected to 1 5 kQ pull up 17 18 resistor 23 24 23 fpa E oS S SS E Do E JJ 25 HE P14 26 P147 Pl47 AN18VCO U1 1 60M j 6 4 4 6 616 c 72 BE POD 28 IB IR 02 1 6 6 6 66 29 P30 P30 INTP3 RTCIHZ SCKOO Z SCLOO TRIO 11666 30 NC S f 6 61 Notcomnected o o O Table 6 Connector CN3 ME EH q 5U U1 User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual YRPBRL78G14 Board Components 3 9 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 IKUN AARM UI e SB3 SB4 SB5 Figure 7 Location of Solder Bridges Connects RxD pin to INTP5 pin for waking up the device from STOP mode upon data reception Connects
23. E HEW Debugging i s Renesas GDB Hardware Attach EES a E Renesas GDB Hardware Debugging Enable auto build Disable auto build EI EE Stick Dema SA HardwareDebug O Use workspace settings Configure Workspace Settings E Renesas GDB Simulator Debugging C C Application HardwareDebug Filter matched 12 of 12 items O MEO CTT RN P User Manual Rev 1 00 RENESAS 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 EI RL78 and the target device to R5F104LE The rest of the settings are as follows Main Clock Frequency MHz Using Internal Clock Sub Clock Frequency kHz 32 768 Monitor Clock System Communication Method 1 Line Type TOOLO Power Target From The Emulator Yes Supply Voltage 5 0V Debug Configurations Create manage and run configurations GBX E3 Name YRPBRL78G14 Stick Demo SW HardwareDebug type filter text E Main X5 Debugger gt Startup E Common E Source fe C C Application E C C Attach to Application Debug hardware El RL78 Target Device E C C Postmortem Debugger E7 Custom Debug GDB Settings Connection Settings Debug Tool Settings E Debug only Clock E GDB Hardware Debugging Main Clock Frequency MHz Using Internal Clack aka GH
24. ENESAS YRPBRL78G14 Demo 8 4 User Manual GUI Description 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 The RL78 stick sends the value of the RTC registers to the GUI every second and the values are displayed on the GUI on the right hand side of the lower window When the board is first connected and powered the RTC will start with a default value When the RTC tab is selected in the GUI the alarm values will be automatically set to the current time and date plus one minute so that the user only has to click the Set Alarm button to set the alarm Otherwise please check that alarm has a time and date in advance of the current settings This can be done using the Days Hours and Minutes buttons in the GUI The user can synchronize the on board RTC with the time and date of the PC system by clicking the Sync button To verify the operation Windows Date and Time applet can be launched to check that the values displayed by the GUI demonstration are synchronized with the PC system date and time To allow the GUI to set the alarm after synchronisation click on a different tab and allow a minimum of 3 seconds to pass before returning to the Real Time Clock t
25. G14 J Real Time Clock Memory Dem H Low Power self Test Puts the EL7E into Low Power Halt Mode 1 Select voltage Limits 2 Select Trigger Intervals KIO MALTO Click Button to enter Mode 2 Adjust Pot to release Mode k V L Puts the EL7S into Low Power Stop Mode De Trigger Intervals the tri limit a aj oe N RL 78 in Snooze Mode EA Please adjust the potentiometer using the potentiometer shaft to meet the trigger conditiojj This window will automatically close after the RL73 is released from Snooze mode MAIN RUN N The consumed power can la reduced oven mora than in Da hatt m 2000 01 01 00 04 48 EI 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 1 System Clock Measurement This allows the measurement and monitoring of the internal system clock 2 Switch Test This polls the user switches every one second 3 Guard Test RAM guard function is used to protect data in the specified memory space first 512 bytes of RAM SFR guard function is used to protect data in the control registers used by the port function 4 ELC Test The event link controller mutually connects links events output from each peripheral function By linking events it becomes possible to coordinate operation between peripheral functions directly without going through the CPU Each of them is
26. L78 G14 V1 01 01 software used to generate drivers for this board is at a preliminary version an can be downloaded from the Renesas website We recommend not upgrading these software tools in order to guarantee operation with the stick Documentation is not supplied for preliminary versions but can be downloaded from the 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 maintain compatibility between revisions it is not guaranteed that new software versions will be backward compatible with previous releases of the YRPBRL78G 14 board e Various input output signals available such as All I O ports prepared to be connected to user hardware Virtual UART interface via the uPD78F0730 78K0 8 bit microcontroller with on board USB interface 1 LED connected to a RL78 G14 port for visualisation e Full documentation is included for all of the released Renesas software tools and the RL78 G14 device YRPBRL78G14 is not intended for code development Renesas does not allow and does not support in any way any attempt to use YRPBRL78G14 in a commercial or technical product maoa e ee E User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual Introduction 1 2 System requirements HOST PC A PC supporting Windows XP Windows Vista or 7 is required for the GUI and development tools instal
27. O3 TOO3 INTP4 d P77 KR7 INTP11 o P76 KR6 INTTP10 Eq P75 KR5 INTP9 SCKO1 Z SCLO1 Cod P74 KR4 INTP8 SI01 SDAO1 MMM P73 KR3 SO01 EA P72 KR2 SO21 Eq P71 KR1 SI21 SDA21 oa P70 KRO SCK21 SCL21 MMM P61 P63 P31 P77 P76 P75 P74 P73 P72 P70 NC Table 5 Connector CN2 1 GND VSS EVNSS __ WW 2 VD MOD YE 6WoM2 3 P10 P10 SCKI1 Z SCLM TRDIODI 4 PM PM sim SDAM TROO gt 5 Pl2 P12 SOM TRDIOBI MEET _ 6 TxD_____ P13 TXD2 SOZO TRDIOA1 IVCMP1 7 RXD____ P14 RXD2 SI20 SDAZO TRDODO 8 P15 P15SCK20 Z SCL20 TRDIOBO _ _ 9 P16 P16 TIO1_TO01_INTP5_TRDIOCO_IVREFO 10 P17 Te TION TOO2 TRDIOAO TRDCLKO IVCMPO 411 P55 PIS o 12 P54 pn 13 P53 mm 4 4 15 P51 PS1 INTP2 SOOO TXDO TOOLTXD TRGIOB _ 16 P50 P50 INTP1 SI00 RXDO TOOLRXD SDAOO TRGIOA __ 17 Po PeOSCAD E e 622 6 4 4 O 18 Pl PRISMO Wua 62 6 19 P62 IA 20 P63 POS 21 P31 P31_TIOSZ Tom INTP4__________________ 22 P77 P77 KR7_INTP1 6 23 P76 P6EKRINTDK o O 24 Pr5 P75KR5 INTP9 SCKO1 Z SCLO1 _____ 25 P74 PA KR4 INTP8_SIO1SDA01_______ 26 P3 P3KRISMMI S 6 6 27 P72 P72kKR2s0 4 28 P71 PA KR1_SI21_SDA21 gt S 29 P7O PRO KRO SCK21 SUM 30 INC ooo 0 Not connected MEO CTT RN User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual YRPBRL78G14 Board Components 1 GND SS IES OOOO C
28. RL78 G14 family of devices The device used is the RL78 G14 R5F104LEAFB The board can be directly connected to the host system via a USB port The host system allows execution of the Demonstration program on the RL78 G14 device in combination with the supplied demonstration GUI As default the RL78 G14 is using the 32 MHz internal high speed oscillator but the YRPBRL78G 14 board is provided with a connection for an external 20 MHz oscillator not fitted if the user wishes to use a different clock frequency than that provided by the internal high speed oscillator An external Seiko Instruments low power 32 768 KHz resonator is provided for the sub clock Host Computer The USB host interface enables communication to the YRPBRL78G 14 board The uPD78F0730 78K0 8 bit microcontroller with on chip USB interface and the 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 Power Supply via USB interface YRPBRL78G14 is powered by USB interface therefore no separate power supply is required TENESAS 14 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 conn
29. S Local C C Launch Sub Clock Frequency kHz Ex HEW Debugging Monitor Clack System s Renesas GDB Hardware Attach Connection with Target Board E7 Renesas GDB Hardware Debugging Communication Method 1 Line Type TOOLD E7 YRPBRLT78G14 Stick Demo SW Hardy Power Target From The Emulator MAX Yes E7 Renesas GDB Simulator Debugging Supply Voltage NI Flash Current Security ID HEX 00000000000000000000 Permit Flash Programming Yes Use Wide Voltage Mode Wes IO Use Default IO Filename Yes 10 Filename C fe2studiofinternal loFiles RLT8 RSFIOALE 4 mW R Apply Revert Filter matched 12 of 16 items Close 4 Build and Once the debugger configuration has been verified click Close and select Download the Cancel if prompted to save the settings Click on the small arrow next to the Sample Code Build Configuration button hammer to show the build configuration menu Ensure that HardwareDebug is selected Clicking this will start the project build process EM C C e2studio File Edit Source Refactor Navigate Search Run Project Window Help mul E EF EE A AA EE AAR SA Br L 1 CustomDebug LO Project Explorer 3 gt CIO 22 Debug i DS gt 5 YRPBRL78GI4 Stick Demo SW 3 HardwareDebug r RN PP a User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software Once the sample code has been bullt click the bug ic
30. STOP Installation Figure 33 Installation Confirmation Windows XP lt 4 gt Click to close the installation wizard Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for F Renesas Starter Kit Virtual UART Click Finish to close the wizard Figure 34 USB Driver Installation Completion Windows XP MEO CTT RN a User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual Troubleshooting e Installation on Windows Vista 1 When the YRPBRL78G14 board is connected to the host machine for the first 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 Windows needs to install driver software for your Unknown Device Locate and install driver software recommended Windows will quide you through the process of installing driver software for your device Ask me again later Windows will ask again the next time you plug in your device or log on 8 Don t show this message again for this device Your device will not function until you install driver software Figure 35 Found New Hardware Wizard Windows Vista Then select Browse my computer for driver software advanced on the next window Windows couldn t find driver software for your device Check for a solution Windows will check to see if there are steps
31. Windows XP When the YRPBRL78G 14 board is connected to the host machine the board is recognized by Plug and Play and the wizard for finding new hardware is started Select No not this time and click Next gt Found New Hardware Wizard Figure 30 R20UT1449EG User Manual Rev 1 00 Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking on your computer on the hardware installation CD or on the Windows Update Web site with your permission Read our privacy policy Can Windows connect to Windows Lpdate to search for software O Yes this time only Yes now and every time connect a device No not this time Click Next to continue Found New Hardware Wizard Windows XP TENESAS 96 YRPBRL78G14 Demo User Manual Troubleshooting Select Install from a list or a specific location Advanced and click Next gt Found Mew Hardware Wizard This wizard helps you install software for USB Device ff your hardware with an installation CD E or floppy disk insert it now What do you wart the wizard to do C Install the software automatically Recommended Install from a list or specific location Advanced Click Next to continue e JES Figure 31 Install from a Specific Location Windows XP lt 2 gt Mark Include this location in the search and then browse the computer to select the follow
32. ab Renesas Electronics RL78 G14 Low Power Demonstrator ES RL78 G14 kJ Real Time Clock Memory Dem Low Power D Self Test d Synchronize the EL78 RIC registers IS set and use the Alarm function of the EL7S SZ With the Host system clock ur Hours minutes EI Select A PA Day of Heek Hour Minutes value ei j 14 e e Enable Disable the ETC intervals np Ala R d Interrupt att select Interval and then Click enable Day of Week CINTIA 99 Figure 22 R20UT1449EG User Manual Rev 1 00 2012 03 21 14 42 32 TN He B PIT A I Nia 7 Mu D Ba dm ku Pa VS On Board RTC Operation TENESAS af YRPBRL78G14 Demo User Manual GUI Description 8 5 Figure 23 R20UT1449EG User Manual Rev 1 00 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 In the Memory Content box when the Enable button is pressed the RL78 G14 enables transfers of the external voltage 2 bytes and internal temperature s hexadecimal values starts writing 4 bytes of data into the RAM memory for every ADC measurement Occurring every 5 seconds The 4 bytes of data written are o The external voltage 2 bytes o The temperature value 2 bytes The first byte r
33. anual Rev 1 00 RENESAS China RoHS Information O EN EVANITRODABARX Table of Toxic and Hazardous Substance and Elements HE Ph RE A TES Part Name Toxic and Hazardous Substance and Elements IFA TE 4 aus V SUL 7 c VE Lead Mercury Cadmium Hexavalent Polybrominated Jv Cd Chromium biphenyls Polybrominated Cr VI PBB diphenyl ethers PBDE Case k E Board A Jak Socket ACTA AC Adapter O eo RI Hi HARA e Eu E R HRL Ab SJ T11363 2006 REI ET 4 EE GE nde Dei ee If certain toxic and hazardous substances or elements do not exist in this part then mark O for the corresponding column which indicates that this toxic and hazardous substance or element contained in all of the homogeneous materials for this part is below the limit requirement in SJ T11363 2006 X DIK bb 4D Ob OCHRME HICK 6 BR E eu DR BZ SJ T11363 2006 HECHE T 5 IR Z SD e X LIS Z Z Las LET If certain toxic and hazardous substance or element is contained in this part then X for the corresponding column which indicates that this toxic and hazardous substance or element contained in at least one of the homogeneous materials used for this part is above the limit mo in SJ T11363 2006 D PIJ PHEA RAJTE CURSE STL ETERA EH STL VT ROBE ILE ER ae EA ADE DETT Rie KROZI IC EA Es ADFRA OI 0 yes mark is applied to ElPs sold in People s Republic of China and the number in the center indicates the years of the environment
34. arrow to the left of the YRPBRL78G14 Stick Demo SW folder to expand the folder GE Outline 15 Project Explorer 23 EE Disassembly Ss a _ OE WRPBRLTEGI4 Stick Dermo Su GEO TT ARA PF User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software R20UT1449EG User Manual Rev 1 00 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 E Outline 7 Project Explorer 53 Disassembly SE a 5 YRPBRLTEGI4 Stick Demo SM E oi Binaries 2 H Archives gt Pall Includes a 2 stc gt hardware setup IM Mew k Open Insert a break point on the R Systeminit function call inside the HardwareSetup function by double clicking in the blue section on the left hand side of the source code window AA 47 Function Name Hardware etun 48 Description This function calls function R Systeminit to initialise all peripherals 39 Arguments None 50 Return Value None ee eee ee a ee aaa oid Hardwaresetup void d Ze Disable global interrupts asm DI Z ft Configure all peripherals R Systeminit ft Enable global interrupts asm EI Note For the HardwareSetup function to be executed a macro named RELEASE needs to be defined This macro has been defined in Tools Sett
35. cifications s ssssessssnsnusss 67 E WED URL o o eee iecesesetencece 67 11 4 Seiko Instruments Inc Contact Addresses s s s s s s sasas 68 YRPBRL78G14 Demo User Manual Introduction Chapter 1 Introduction The YRPBRL78G14 is a promotion board for the new Renesas RL78 microcontroller family lt supports On Board debugging flash programming and is pre programmed to work with the GUI provided on the DVD to demonstrate the low power capabilities of the Renesas RL78 MCU 1 1 Main features of YRPBRL78G14 e Easy to use device demonstration capabilities YRPBRL78G14 contains elements to easily demonstrate simple I O functions i e LED output I O lines UART serial interface together with the key functions such as Real Time Clock RTC ADC DTC ELC Timers and safety functions e Power supply via USB interface YRPBRL78G14 is powered via USB interface No separate power supply is needed although a connector is provided to supply an external power supply if needed e Renesas Flash Programmer V1 03 00 Flash programming software Windows based Flash programming software allows the user to select and download application programs to the YRPBRL78G14 board for evaluation purposes e Applilet3 Device driver code generator Software tool used to generate device driver code to initialize and use on chip peripherals Caution Please note that the Renesas Applilet3 for R
36. d at the moment when power is supplied The states of internal circuits in the LSI are indeterminate and the states of register settings and pins are undefined at the moment when power is supplied In a finished product where the reset signal is applied to the external reset pin the states of pins are not guaranteed from the moment when power is supplied until the reset process is completed In a similar way the states of pins in a product that is reset by an on chip power on reset function are not guaranteed from the moment when power is supplied until the power reaches the level at which resetting has been specified Prohibition of Access to Reserved Addresses Access to reserved addresses is prohibited The reserved addresses are provided for the possible future expansion of functions Do not access these addresses the correct operation of LSI is not guaranteed if they are accessed Clock Signals After applying a reset only release the reset line after the operating clock signal has become stable When switching the clock signal during program execution wait until the target clock signal has stabilized When the clock signal is generated with an external resonator or from an external oscillator during a reset ensure that the reset line is only released after full stabilization of the clock signal Moreover when switching to a clock signal produced with an external resonator or by an external oscillator while program executi
37. demonstrated in the GUI The ELC and Switch tests cannot occur concurrently Enabling the ELC test automatically disables the Switch test ME 7 7 As ET User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual GUI Description R20UT1449EG User Manual Rev 1 00 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 The GUI will also show the minimum and maximum frequencies measured The user can then check that the frequency is always within the desired accuracy The RL78 uses the external Seiko 32KHz resonator as the reference clock to measure the internal 32MHz high speed oscillator This utilizes the special mode of the Timer Array Unit Channel 5 Switch Test The switch test function is used to poll the status of the two user switches Click the Enable button and the GUI will start to actively poll the user switches every second Pressing the switches on the YRPBRL78G14 stick will update the GUI Note that there may be a delay of up to 1 second between pressing a switch and it updating the GUI Guard Test RAM Guard The 8 bytes of RAM memory displayed in the Memory Demo tab are located in the first 512 bytes starting from address OxFEAOO Select the RAM Guard option and click the Enable
38. dosten da die aa casado iaa 25 6 1 1 Confirmation of USB Driver Installation s sssssssssssssss 26 Chapter 7 How to Use the Renesas Flash Programmer Software 27 7 1 Debugging in e studio is enn ennnnnnannennnntnnnnnnnnnnnnKnnnannnKInnIEnIIAN 33 Chapter 8 GUI Description ss ssss ssssssssssssnssssnses 43 8 1 Running the RL78 G14 Demo s sssssssssssssssssusussununnnnunnnnss 43 Se GUI Demo Re le TEE 44 8 3 ADC Demonstration s sesssssususuuvunuunnunnununnununnununnunnunnunnunnmnnnnnnnnnnanns 46 8 4 Real Time Clock Demonstration s s ss ss ss ssusuusunnunnunuununnnnnnnns 47 8 5 Memory Demonstration ssssesssessssssnsesnuunnnunnnunnnnnnnnunannnns 48 8 6 Low Power Demonstration sss ss sss sss sss sss ssc sss sassa anana aaa aaaea aaa 49 BOT HALT MO O asno eine laca 50 B62 EE 50 B03 SNOOZE Mode sara inicias ko baa dobra od Ra baa 51 8 7 Self Test Functions Demonstration s sss sssssessssssssss 52 Chapter 9 Troubleshooting sss a NN 55 Chapter 10 Schematics iii 65 Chapter 11 Resonator from Seiko Instruments INC 67 11 1 Features of the 32 KHz Resonator ss 67 11 2 Product Name and Spe
39. e port pins R PORT Create Z Configure system clocks R CGC Create ZS Configure serial array unit 1 R SAU1 Create 6 Advanced The panel in the top left of the screen can be used for debugging Click the Variables tab to view all local variables currently in scope Click Breakpoints to view and edit software breakpoints and click IO Registers to view the device SFR registers Debug Features R20UT1449EG User Manual Rev 1 00 Mame 1 Dir Variables 23 e Breakpoints II Registers ef Eventpoints 17 IO Registers Realtime Expressio D db Sei SZ A ER Type Value uint8 t 0 000 To view global variables click Window from the top menu bar and then click Show View and select Expressions This will add the Expressions panel to the list of tabs Click the plus icon and type in the name of the global variable you want to watch inio E Realtime f Expressio x A e Breakpoi DI Variables iif Registers ef Eventpoi i 10 Regist WEE BIT RS Expression Type Value GM NEW EXPressio RENESAS sd 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 Click the plus button to add a new
40. e will automatically open after the installation process to guide the user through the initial set up and connection to the PC and GUI Please note as the communication interface between the host computer and the YRPBRL78G14 board is the USB port interface the software must be installed properly before the board is connected to the PC 4 1 Installed Contents 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 gt AlI Programs menu I Renesas Flash Programmer V1 03 00 Flash Programming Software Renesas Electronics Tools eg E me Manual Navigator Table 9 Contents Installed on Start gt All Programs MEO CSCS A User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual Hardware Installation Chapter 5 Hardware Installation Before connecting the YRPBRL78G 14 board to the host PC via USB cable ensure all the software is correctly installed first see chapter 6 MEO CTT RN E User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual Software Installation Chapter 6 Software Installation 6 1 R20UT1449EG User Manual Rev 1 00 The YRPBRL78G 14 package comes with several software demonstration packages O O O e 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 Serv
41. ected to host computers E1 emulator or any external target hardware D2 D1 LEDs E1 Connector Ge i Unfitted CN7 SW1 USB Connector CN10 CN6 CN2 CN4 SW2 Switches T o 1 l o 1 o a TITITITINITTITI CN5 CN3 IC1 RL78G14 R5 Potentiometer Very Low Power Seiko 32KHz Resonator Figure 2 YRPBRL78G14 Board Components Some of the YRPBRL78G14 components are available for user application hardware and software Please read the user s manual of the RL78 G14 device carefully to get information about the electrical specification of the available UC ports before you connect any external signal to the YRPBRL78G14 board 3 1 Configuration Jumpers CN6 CN7 CN8 CN11 The jumpers CNG CN7 CNB CN11 control the different operating modes of the YRPBRL78G14 board 3 1 1 GUI Demonstration Mode Virtual UART Mode The default operation of the board is set for use with the GUI using the virtual UART Jumpers should be set as shown in the table below Table 1 Jumper configuration for GUl Demonstration Mode MEO TT RI sp User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual YRPBRL78G14 Board Components 3 1 2 On Board Debug OCD and Flash Programming Modes Table 2 The YRPBRL78G 14 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
42. epresents the integer part and the second byte the fractional part of the value The active window shows the current 64 bytes of the RAM memory block being written into The current 4 bytes written in the RAM memory appear in red colour RAM memory content is not retained after the power is removed from the device so that if you stop the GUl demonstration unplug the YRPBRL78G14 board and then plug it back and restart the GUI the RAM memory content will be re initialised and the window will show the data being written User data can be written to the internal RAM of the RL78 G14 device by entering or changing the values in the write window and clicking the Write button The data is then written to a specific location within the internal RAM of the RL78 G14 To read the data back click the Read button and the same internal RAM location is read by the RL78 G14 and sent back to the GUI The upper text field in white colour can be modified to enter random values to be written to the internal RAM The lower text field displays the actual contents reported by the RL78 G14 Renesas Electronics RL78 614 Low Power Demonstrator AS RL78 G14 Real Time Clock Memory Dem DH Low Power Self Test Enable Disable DTC transfers of temperature and external voltage r 66 81 82 83 84 85 86 87 88 89 81 B C 80 GE OF a cio DTC TRANSFER DATA ax28 ax3a re Bo uunuu RL78
43. er Renesas Flash Programmer V1 03 00 Flash programming GUI software to allow Flash programming of the RL78 G14 internal Flash memory GUI to be run with the main demonstration programs Source code for the demonstration and debugger programs The e studio work environment and the Renesas Flash Programmer V1 03 00 Flash programming GUI must be installed on your PC For detailed installation hints refer to the following chapters and to the corresponding documentation of the e studio for RL78 and Renesas Flash Programmer V1 03 00 Sample Programs Installation The DVD installer will automatically install the sample debugger programs and the demonstration source The debugging project and demo source code project can be found in the following location C Workspace RPB RL78G14 Sample Projects TENESAS 29 YRPBRL78G14 Demo User Manual Software Installation 6 1 1 Confirmation of USB Driver Installation After installing the USB driver check that the driver has been installed correctly according to the procedure below Open Device Manager by entering Start gt Settings gt Control Panel gt System gt 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 amp LPT The screen above shows that the COM port number is COM13 When you change the USB port connection the COM
44. esult of the AD conversion is outside the specified voltage range the ADC issues an interrupt and the system clock is supplied to the CPU so that the RL78 device fully wakes up If the ADC value is not outside the range the CPU is not woken and the device returns to STOP mode until the next RTC trigger event For example for an upper limit voltage sets to 2 9V and a lower limit voltage sets to 2 5V the device will only wake up if you adjust the potentiometer voltage to a voltage below 2 5V between OV and 2 5V or above 2 9V between 2 9V and 5V As this is the only way of waking the RL78 in this mode a window will pop up to remind the user to adjust the potentiometer To automatically set the limits adjust the potentiometer click on a different tab and allow a minimum of 3 seconds to pass before returning to the Low Power tab Tooltips and set up instructions are provided in the GUI for the user to follow the instructions given in the SNOOZE mode box before clicking the SNOOZE button and entering this mode Other wake up options are available for the RL78 device but are not included in this demonstration Please refer to the RL78 G14 user manual for more details These are a The wake up voltage can be set to occur inside the specified voltage range b CSI00 or UARTO reception User Manual Rev 1 00 YRPBRL78G14 Demo User Manual GUI Description Renesas Electronics RLTB O14 Low Power Demonstrator RL78
45. ey operation of the 16 bit microcontroller RL78 G14 mounted on the YRPBRL78G14 board The demonstrations allow the user to check the on board RTC DTC ELC the memory contents RAM switch between the different standby modes and to check associated power consumptions and to use the self test functions implemented in the RL78 G14 device Please note that the YRPBRL78G14 needs to be running the program supplied YRPBRL78G14 Stick Demo GW mot within the GUI Demo Source Code directory copied to the host PC during installation This is programmed as default in manufacture Before connecting the YRPBRL78G14 board check the jumpers CN6 CN7 CN8 CN11 are configured correctly as stated in Table 1 GUI Demonstration Mode After plugging the board to a free USB port make a note of the COM port assigned to the device from the device manager Running the RL78 G14 Demo From the menu All Programs locate the folder Renesas Electronics Tools gt 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 When the Demo GUI is started the COM port to which the YRPBRL78G14 board is connected should be automatically detected and selected in the RL78 G614 tab The GUI software should also connect to the YRPBRL78G14 board and start automatically If for any reason this does not happen p
46. f a rising edge resulting from the switch release triggering an interrupt signal The period between the switch press and release along with the number of events is displayed TENESAS 93 YRPBRL78G14 Demo User Manual GUI Description Number of ELC Events Guard Test RS RL78 GI4 ka Real Time Clock Le Memory Dem H Low Power Self Test ELC Events Enable ROM Protection Measure internal Clock Frequency loj Enable SFE Protection EL Event Count currat Frequency Min Frequency Switch Press Period Max Frequency net Switch Held down Period Switch Test Clock Measurement Figure 29 Self Test Functions MEO CTT RN E User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual Troubleshooting Chapter 9 R20UT1449EG User Manual Rev 1 00 Troubleshooting e ln 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 Alternatively disconnect the USB connector and then insert the USB connector again after a while e ln checking by Device Manager USB Serial Port or USB High Speed Serial Converter is not displayed Alternatively the or x is prefixed Cause The USB connector may not be inserted normally into the USB port of the personal computer Action Check
47. friendly use period The years for this product is applicable when the product is used normally E ZORZ AR A CO BA he eR Cen BALE Laa X ILC VEL EA DR TREMETO 33 Notice All of the attached items relating to Electronic Information Products are listed in this table Please understand that there is not always bundled all of the items because it depends on the product e NBA HRB NZ About Confirmation method of produced year HWP mk USES LHS SIE IRANI ES HR Please confirm the produced year from nameplate label etc on product body or outer box w E ARA 2012 F Produced 2012 R20UT1449EG User Manual Rev 1 00 RENESAS Readers Purpose Organisation Module instances Legend Note Caution Numeric notation Numeric prefixes Register contents Diagrams R20UT1449EG User Manual Rev 1 00 Preface This manual is intended for users who want to understand the functions of the concerned microcontrollers This manual presents the hardware manual for the concerned microcontrollers This system specification describes the following sections e Pin function e CPU function e Internal peripheral function These microcontrollers may contain several instances of a dedicated module In general the different instances of such modules are identified by the index n where n counts from 0 to the number of instances minus one Symbols and notation are used as follows Left is high order column right is
48. g Kit Virtual UART COM35 The software for this device has been successfully installed Windows has finished installing the driver software for this device Renesas Starter Kit Virtual UART Figure 39 USB Driver Installation Completion Windows Vista e Installation on Windows 7 1 When the YRPBRL78G 14 board is connected to the host machine the board is recognized as an Unknown Device in the Device Manager Right click on the Unknown Device and select Update Driver Software within the Device Manager window Select Browse my computer for driver software mm Update Driver Software Unknown Device How do you want to search for driver software Search automatically for updated driver software Windows will search your computer and the Internet for the latest driver software for your device unless you ve disabled this feature in your device installation settings Browse my computer for driver software Locate and install driver software manually Figure 40 Update Driver Software Windows 7 2 Select the folder where the installer has copied the USB drivers from the DVD For 32 bit Operating Systems select the following location C Program Files Renesas RPB RL 78G14 USB Drivers Win2k aT EO TER User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual Troubleshooting For 64 bit Operating Systems select this location C Program Files Renesas RPB RL 78G14 USB Drivers w
49. ick button Next p r Select Communication Interface Setting Oscillator Select Tool El Select Interface UART ch0 Intemal OSC 00 Back Next Cancel Figure 12 Port Selection MEO TT EN eee User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software r Setting Power Supply Power supply from E1 Z Power target from the emulator Supply voltage 3 3V o 5 0V Information on user power supply 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 Click button Complete Information Settings E Program File File name E Device information File File name R5F104LE pri File version W100 O Target Communication port LIART chi Communication transfer rate 1 000 000bp Supply oscillator Target Frequency MHz Internal OSG Multiply rate 1 00 supply power OI Operation mode Chip Flash Options Disable Block Erase Invalid Digable Program Invalid Digable boot block cluster reprogramming Invalid End of boot block number 003 tart of flash shield block number 000 File name Iii the program file to program in a flash memory Figure 14 Information Settings Dialog Box 6 Selecting a user ln the RFP main window click
50. in the section 8 6 Low Power Demonstration please refer to it 55 Self Test Function Figure 20 R20UT1449EG User Manual Rev 1 00 This section demonstrates the different self test functions provided within the RL78 G14 The self test functions are switch test RAM and SFR guard and system clock measurement The ELC test is also included within this tab The interrupt from one timer is used as the clock count source for another timer It is important to note that tooltips are present on every buttons to guide the user through the experience of the RL78 G14 GUI Demo and provide useful information for a good and quick understanding of the different features and peripherals demonstrated Help Click to write the bytes in the text boxes to the RL78 internal RAM Please note data will be retained even in the lowest power modes Data will not change if the RAM protection is enabled on the Self Test Tab Tooltip Example TENESAS 45 YRPBRL78G14 Demo User Manual GUI Description 8 3 ADC Demonstration This section of the GUl 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 The internal reference voltage TYP 1 44V is also displayed on the right hand side of the GUI window For all ADC data requests by the GUI e
51. indow Help E G e e kj Z Uv LL e a 7 lt E no launch history di Debug As Debug Configurations Organize Favorites R20UT1449EG LENESAS 35 User Manual Rev 1 00 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 Create manage and run configurations fe C C Application E C C Attach to Application e CfC Postmortem Debugger Ex Custom Debug Ex Debug only E GDB Hardware Debugging mu GH Local C C Launch ex HEW Debugging s Renesas GDE Hardware Attach C Renesas GDB Hardware Debugging EX Renesas GDB Simulator Debugging Click on the YRPBRL78G14 Stick Demo SW HardwareDebug configuration to view the configurations Debug Configurations oo Create manage and run configurations GExXI BIR Name VRPBRLZ8GI4 Stick Demo SW HardwareDebug type filter text l E Main xX5 Debugger E Startup E Common Ey Source E C C Application E C C Attach to Application E C C Postmortem Debugger HardwareDebug YRPBRL78G14_Stick_Demo_SW x Search Project Browse cx Custom Debug Project E Debug only E GDB Hardware Debugging YRPBRL78G14 Stick Demo SW a GHS Local C C Launch Build if required before launching
52. ing directory C Program Files Renesas RPB RL 78G14 USB Drivers win2k Click Next gt Found New Hardware Wizard Please choose your search and installation options gt Search for the best driver in these locations Use the check boxes below to limit or expand the default search which includes local paths and removable media The best driver found will be installed Search removable media floppy CD ROM Include this location in the search O Dont search will choose the driver to install Choose this option to select the device driver from a list Windows does not quarantee that the driver you choose will be the best match for your hardware EE Figure 32 Search Location Specification Windows XP MEO CTT RN ET User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual Troubleshooting lt 3 gt Click Continue Anyway to continue the installation Hardware Installation The software you are installing for this hardware Renesas Starter Kit Virtual USAT has not passed Windows Logo testing to very its compatibility with Windows ab Tell me why this testing is important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing Continue Anyway
53. ings gt Compiler gt Source Defining a macro in this way ensures that it is visible to all functions in the project TENESAS 39 YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software R20UT1449EG User Manual Rev 1 00 Properties for YRPBRL78G14 Stick Demo type filter text Settings Resource Builders a 8 Library Generator Include file directories ana i E Settings C C Build SS Header fil C e2studio GNURL7 1 01 rl78 elf rl78 elf optlibinc Build Variables eader fi Ro Change Toolchain Vers d 5 Di 3 Miscellaneous iscovery Options Envi a Compiler nvironment Ss Logging Source Setti E Object ings E List C C General l 5 Project References a Ro Refactoring History e Standard X Run Debug Settings Advanced a E Other e Miscellaneous 8 CPU 4 8 Assembler E Source S Object List Macro Defines aaas EB Other RELEASE Click the Restart button to restart the target device and begin code execution 0 Q gt E 5 ip 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 460 gi rde e re dr oe e ee ee KKK K KKK KKK re KKK KK KKK K KKK KKK KK KK KKK KK KKK KK KK KK KKK KK KKK KK KKK KKK K KK e X 47 Function Name HardwareSetup 48 Description This function calls function R Systeminit to initialise all peripherals 49 A
54. into Low Power Stop Mode Trigger Intervals Set the trigger limits 6 5 Second e Figure 25 Low Power Mode Selection User Manual Rev 1 00 YRPBRL78G14 Demo User Manual 8 6 1 HALT Mode GUI Description 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 fes RL78 G14 Low Power Modes Puts the Y KC into Low Power Halt Mode Puts the EL78 into Low Power Stop Mode 8 6 2 STOP Mode kJ Real Time Clock Memory Demo H Low Power i self Test ADC Trigger Conditions during Snooze Mode upper Lon er Select voltage Limits Select Trigger Intervals d Click Button to enter Mode 3 1 adjust Pot to release Mode Trigger Intervals 8 5 Second e Set the trigger limits SNOOZE In this mode all the operations of the internal circuits except the sub clock oscillator are stopped This mode can reduce the power consumption to a level lower than all other modes The RL78 G14 Is still operating the RTC using the 32 68 KHz sub system clock ER RL 78 G14 Low Poner Modes Puts the Ki imo Lou Poner Halt Mode HALT Puts the EL7m into Low Power Stop Mode Figure 27 STOP Mode R20UT1449EG User Manual Rev 1 00 LJ Real Time Clock 2 Me
55. ipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life 9 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 10 Although Renesas Electronics endeavours 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 malfunction
56. lation 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 350 Mbytes of free disk space and an additional 10 Mbytes of free disk space on the Windows system drive A web browser Display Display with 1024x768 minimum resolution Properties Normal size 96Dpi Display Dpi settings Host interface USB interface that enables communication based on USB Ver1 1 or later 1 3 Package contents YRPBRL78G 14 USB Type A Mini B cable Screwdriver to adjust the potentiometer voltage DVD containing all the software tools and documentation needed to quickly start evaluating the product If any part is missing or seems to be damaged please contact the dealer from whom you received your YRPBRL78G 14 promotion board MEO CTT RN BP User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual YRPBRL78G14 System Configuration Chapter 2 Figure 1 2 1 2 2 2 3 R20UT1449EG User Manual Rev 1 00 YRPBRL78G14 System Configuration The YRPBRL78G 14 system configuration is given in the diagram below USB Cable YRPBRL78G14 JE Ji NA Wi JE Jl LALA JL Jl ATA NY Host PC YRPBRL78G14 System Configuration YRPBRL78G14 YRPBRL78G14 is a promotion board for evaluating the new Renesas
57. lease select the appropriate port number from the drop down list and then press the Connect button on the GUI start window Renesas Electronics RL78 G14 Low Power Demonstrator mts Select the Port RL78 is connected to Connection Status RL78 Board is not connected Figure 18 COM Setup R20UT1449EG User Manual Rev 1 00 TENESAS 43 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 Some values will not change immediately after enabling a demo test Renezas Electronics 2 L Low Power Demon E RL7B GI4 Select the Port RL78 is connected to COMIS Connection status RLY amp Board is Connected Version l l 2000 01 01 00 00 30 1 ADC External Voltage amp Temperature Graphs This section displays the external voltage measured from the potentiometer on the board and the temperature reported by the internal temperature sensor of the RL78 G14 The measurements are performed by the 10 bit ADC of the RL78 G14 The graphs can be reinitialized by clicking the Clear buttons on the right hand side of the window Note that the graphs are re scaled automatically when the Clear
58. lh_amd64 Click Next gt Browse for driver software on your computer Search for driver software in this location kuj Browse Include subfolders Let me pick from a list of device drivers on my computer This list will show installed driver software compatible with the device and all driver software in the same category as the device Figure 41 Search Location Specification Windows 7 lt 3 gt Click Install when the driver has been found Windows Security Would you like to install this device software Mame Renesas Electronics Corporation Ports LC oes Publisher Renesas Electronics Corporation P O Always trust software from Renesas Electronics Don t Install Corporation E You should only install driver software from publishers you trust How can I decide which device software is safe to install Figure 42 Installation Confirmation Windows 7 lt 4 gt Click to close the installation wizard User Manual Rev 1 00 YRPBRL78G14 Demo User Manual Troubleshooting LJ H Update Driver Software Renesas Starter Kit Virtual UART COM5 Figure 43 R20UT1449EG User Manual Rev 1 00 Windows has successfully updated your driver software Windows has finished installing the driver software for this device Renesas Starter Kit Virtual UART USB Driver Installation Completion Windows 7 After the manual installation please go to Chapter 6 1 1 Confirmation
59. ment 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 R20UT1449EG User Manual Rev 1 00 RENESAS 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 Producis and in the body of the manual differ from each other the description in the body of the manual takes precedence 1 Handling of Unused Pins Handle unused pins in accord with the directions given under Handling of Unused Pins in the manual The input pins of CMOS products are generally in the high impedance state In operation with an unused pin in the open circuit state extra electromagnetic noise is induced in the vicinity of LSI associated shoot through current flows internally and malfunctions occur due to the false recognition of the pin state as an input signal become possible Unused pins should be handled as described under Handling of Unused Pins in the manual Processing at Power on The state of the product is undefine
60. mory Demo H Low Power LA Self Test ADC Trigger Conditions during Snooze Mode Upper Lon er Select voltage Limits Select Trigger Intervals Click Button to enter Mode 3 1 Adjust Pot to release Mode Trigger Intervals 8 5 Second e Set the trigger limits SNOOZE TENESAS 50 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 The test is performed solely in hardware without having to wake the CPU each time until the valid event is met SNOOZE is technically part of STOP mode but for the purposes of the demonstration the user only has to press the SNOOZE button to activate this demonstration Before activating SNOOZE mode the user must specify the voltage window that the device is to wake up as well as set the trigger interval of the ADC measurements In this demonstration the RL78 has been set to wake on an external ADC voltage Potentiometer value that is Outside the specified voltage window SNOOZE mode alternates between STOP mode and SNOOZE mode where the system clock is supplied periodically to the ADC according to the RTC trigger intervals specified An ADC measurement is automatically performed on the selected input channel In our case it is channel 2 where the potentiometer is connected If the r
61. nd of each section and in the Usage Notes section The revision history summarizes the locations of revisions and additions It does not list all revisions 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 Data Sheet Hardware overview and electrical RL78 G14 Group R01DS0053EJ0100 characteristics Datasheet Hardware specifications pin assignments memory maps peripheral function specifications User s manual for electrical characteristics timing Hardware charts and operation description Note Refer to the application notes for details on using peripheral functions RL78 G14 User s Manual for R01UH0186EJ0100 Hardware Hardware specifications pin assignments memory maps peripheral function specifications User s manual for electrical characteristics timing Promotion Board charts and operation description Note Refer to the application notes for details on using peripheral functions RL78 G14 Promotion Board R20UT1449EG0100 User s Manual RL78 Series Description of CPU instruction set User s Manual for RO1US0015EJ0100 Software Quick Start Guide Provides simple instructions to setup Quick start Guide R20UT2015EG0100 the RPB and run the sample code Information on using peripheral functions and ap
62. of USB Driver Installation e Communication with the YRPBRL78G14 is disabled Cause The driver may not be installed correctly Action 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 YRPBRL78G 14 board is operating in GUI Demo Virtual UART mode Action Set the board to the On Board Debugging Flash Programming mode e Compatibility Issues with Adobe Reader 10 and Manual Navigator If a manual fails to open in Manual Navigator and the Protected Mode dialog is shown select Always open with protected mode disabled This issue is known to occur on 64 bit Windows 7 operating systems stENESAS 63 YRPBRL78G14 Demo User Manual Troubleshooting e Known e studio Limitations Please refer to the release note titled DO11189 YRPBRL78G14 Release Note e 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 MEO CTT RN ii User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual Schematics Chapter 10 Schematics
63. on is in progress wait until the target clock signal is stable Differences between Products Before changing from one product to another e to one with a different part number confirm that the change will not lead to problems The characteristics of MPU MCU in the same group but having different part numbers may differ because of the differences in internal memory capacity and layout pattern When changing to products of different part numbers implement a system evaluation test for each of the products R20UT1449EG User Manual Rev 1 00 RENESAS Regional Information 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 e e Device availability e Ordering information e Product release schedule e e Availability of related technical literature e e Development environment specifications for example specifications for third party tools and components host computers power plugs AC supply voltages and so forth e Network requirements In addition trademarks registered trademarks export restrictions and other legal issues may also vary from country to country Visit http www renesas com or get in contact with your regional representatives and distributors R20UT1449EG User M
64. on to download the code to the target device and begin debugging e studio may show a security alert dialog select the option that allows e2 server gdb access 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 then click Yes R E Gy 0 0 5 Running and The target device should now be programmed ready for debugging The Debugging the HardwareVector at Ox0 tab and the debug command buttons will appear Sample Code Clicking on View Assembly will open the disassembly tab ez Renesas Debug Source not found e2studi File Edit Navigate Search Project Run Window Help EJ gt F Renesas Debug El K c K R K oof Thread 1 main suspended User Request P Harduvarevectors at Dx Hardivarevectors at 0x0 E HardwareWectors at x ES Mo source available for HardwareWectorsO at Del View Disassembly The program counter s position is indicated by the circled arrow and the instruction is also highlighted as shown below GE Outline li Project Explorer Disassembly ES E Enter location here EN I I EZ HardwareVectors A Yoooooooo empo x QOOOOOOOL nop DUDU addw sx ax QOOOO000S nop Vectors OOOOOOO4A mow 9510 hc 39 OOOOOOOG moar ax ROxdaz7 Click on the Project Explorer tab Click on the
65. or 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 Table 4 Pin Configuration of mini B USB Connector USB For connection with the host machine YRPBRL78G 14 can be plugged directly into an available USB port MEO EECH User Manual Rev 1 00 RENESAS 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 l 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 CN2 SR CN Figure 6 External Jumpers CN2 and CN3 GND VDD P10 P11 P12 TXD RXD P15 P16 P17 P55 P54 P53 VSS EVSS RE VDD EVDD TROO P10 SCK11 Z SCL11 TRDIOD1 Ps P11 SI11 SDA11 TRDIOC1 E P12 SO11 TRDIOB1 IVREF1 WE P13 TXD2 SO20 TRDIOA1 IVCMP1 MM P14 RXD2 SI20 SDA20 TRDIODO Do P15 SCK20 Z SCL20 TRDIOBO 5 P16 TIO1 TOO1 INTP5 TRDIOCO IVREFO MM P17 TIO1 TOO2 TRDIOAO TRDCLKO IVCMPO o P55 MM P54 MM P53 Do P51 P51 INTP2 SO00 TXDO TOOLTXD TRGIOB Co P50 P50 INTP1 SI00 RXDO TOOLRXD SDAOO TRGIOA P60 SCLAO Da P61 SDAAO o P62 SSI00 Z ENN P63 A P31 TI
66. plication examples User s manual for Software Available from Renesas Electronics Web site Application Note Sample programs Information on writing programs in assembly language and C Renesas Product specifications updates on Technical Update documents etc 2 Notation of Numbers and Symbols Not applicable 3 Register Notation Not applicable 4 Listof Abbreviations and Acronyms Abbreviation Full Form ACIA Asynchronous Communication Interface Adapter bits per second Cyclic Redundancy Check Direct Memory Access Event Link Controller Global System for Mobile Communications High Impedance Inter Equipment Bus Integrated Development Environment Input Output Most Significant Bit Non Connect PLL Phase Locked Loop Pulse Width Modulation Special Function Register All trademarks and registered trademarks are the property of their respective owners Table of Contents Ghapter1 INtrOGUCUON eege ones 12 1 1 Main features of YRPBRL7BG14 ssssssssssusunnununnnnunnnnnnnnnnnnnns 12 1 2 System requirements ss ssssssssssssssusssnunsununnununnnnunannunnnnnnanns 13 1 3 Package E E 13 Chapter 2 YRPBRL78G14 System Configuration 14 ZA RPBRE OGI iia 14 Seeler Eeer Ee 14 2 3 Power Supply via USB interface sss sssssssssssssssnssas 14 Chapter3 YKRPBRL78G14 Board
67. port number will be changed as well amp Device Manager File Action View Help cesta lBlBl N gp Batteries Mi Computer gt Disk drives gt Aa Display adapters gt a DVD CD ROM drives De Human Interface Devices gt a IDE ATA PA TAP controllers gt EB Keyboards gt D Mice and other pointing devices AL Monitors mY Network adapters di Ports COM amp LPT Loj Communications Port CO A ECP Printer Port LPT1 EE o Processors 8 Renesas Emulator Ey sound video and game controllers gt JE System devices T q Universal Serial Bus controllers Figure 8 Device Manager Caution Hardware Modification Scan should not be executed whist communicating with the target device Please refer to Chapter 9 Troubleshoot if the driver fails to install correctly MEO TT lV BP n User Manual Rev 1 00 RENESAS YRPBRL78G14 Demo User Manual How to Use the Renesas Flash Programmer Software 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 YRPBRL78G 14 board This chapter covers how to start the system execute the EP command Erase Program and program the target RL78 G14 device To use the Renesas Flash Programmer you must connect the YRPBRL78G14 to an E1 emulator not included The conditions of the series of operations described in this chapter are as
68. rguments None 50 Return Value None 51 pak kk kok lk kk ERE RE REE RE RE RE ok kok EE REE EEE EEE Kok ok EEE KA AA A AK K K Koko AA A K K K EEE EEE kok o kok kok ko kok kkk KOLO K K K K K Koj GA void HardwaresSetup void 53 L 54 fk Disable global interrupts 55 asm DI 56 57 Ze Configure all peripherals 58 R Systeminit 59 60 Ze Enable global interrupts k 61 asm EI 62 Press the Resume button to run the code It will run up to the break point and then halt The position of the program counter is indicated by the highlight line Press the Step In button to step inside the function amp Os UR IE e The file containing the function will open and the program counter will move to the first line of code in the function TENESAS 40 YRPBRL78G14 Demo User Manual a fee eee eee eee ERE RAE RAR RARE RARE RRE RRE RRE KKK KKK KKK K KKK KKK mi un aj mi Cn m CO 6 CO NENT la D Ra How to Use the Renesas Flash Programmer Software Function Name R Systeminit Description This function initialises every macro Arguments None Return Value None X KK KKK KKK KK REE RE REE EEE EE RE K K K EEE E K K K EEE EEE EA K K E EEE K K K KAA void R Systeminit void i ZS Configure port pin assignments PIORO piorO 0x000 fk Configure port pin assignments PIORI piorl 0x00U Read the reset source flags R CGC Get ResetSource Ze Configur
69. s under certain use conditions 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 system manufactured by you 11 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 12 This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics 13 Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this docu
70. tr 9 D 63263 Neu Isenburg Germany To be informed later Sungnam Chung Choi Kyonghoan 82 2 565 8006 sungnam chung sii co jp kyonghoan choi sii co jp Seiko Instruments Korea Inc 507 508 Korea City Air Terminal Bldg 159 6 Samsung dong Gangnam gu Seoul 135 728 Korea Shawn Yang 886 2 2516 8518 ext 239 shawn yang siil co jp Seiko Instruments Taiwan Inc 6F No 236 Sec 2 Jianguo N Rd Taipei 104 Taiwan stENESAS 68 REVISION HISTORY RL78 G14 Stick User s Manual Demo Rev Description Mar 21 2012 NN First Edition issued RL78 G14 Stick User s Manual Hardware Publication Date Rev 1 00 Mar 21 2012 Published by Renesas Electronics Corporation LENESAS salesorrices Renesas Electronics Corporation pupo rene 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 Tel 1 905 898 5441 Fax 1 905 898 3220 Renesas Electronics Europe Limited Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH U K Tel 44 1628 585 100 Fax 44 1628 585 900 Renesas Electronics Europe GmbH Arcadiastrasse 10 40472 D sseldorf Germany Tel 49 211 65030 Fax 49 211 6503 1327 Renesas Electronics China Co Ltd 7th Floor Quantum Plaza No 27
71. ts of Renesas Electronics or others 3 You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part 4 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 5 When exporting the 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 You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military including but not limited to the development of weapons of mass destruction 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 6 Renesas Electronics has used reasonable care in preparing the information included in this document but Renesas Electronics does not warrant that such information
72. used then it can damage the board Please refer to the schematic and the assembly drawing of the board to locate the above components External Power Supply Connector J4 Note Pin number 1 is marked with a square on the assembly drawing Current Measurement CN4 Jumper CN4 connects the 5V power supply to the Vpp pin of the RL78 G14 microcontroller The jumper can be replaced by the two leads of a multi meter to measure the current consumed by the RL78 device To use this function please make sure that the multi meter is connected before supplying power to the promotion board The current can be measured for all the different low power modes by using the demonstration GUI supplied to enter all different power and standby modes 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 The board power supply can also be provided through this connector A 14 way 2 x 7 standard pitch connector needs to be mounted and connected as shown below if the E1 is to be used Figure 4 R20UT1449EG User Manual Rev 1 00 E1 Emulator Connection TENESAS 17 YRPBRL78G14 Demo User Manual YRPBRL78G14 Board Components 3 7 Mini B USB Interface Connector USB The mini B USB connect
73. very 5 sec the internal reference voltage is measured and then used as a calculation scaling point for the external voltage Potentiometer and internal temperature calculations as shown in the example below Ext Voltage V Ext Voltage ADC result x 1 44V Int Ref Voltage ADC result Renesas Electronics RL78 G14 Low Power Demonstrator ES RL78 G14 ky Real Time Clock Memory Dem H Low Power ff Self Test synchronize the RL78 RIC registers KG set and use the alarm function of the EL7S SZ uith the Host system clock koaj Hurz Minutes Select alarm Time PR Ka Sne Day of Weeks Hour Minutes value Lp LU Enable Disable the ETC intervals Interrupt Select Interval and then Click enable FG ee 2000 01 01 00 04 33 Cs an nne OA Evtarnmal Valtana 22 Taranaratra Nasetirarnar ka T Q ad ke i The graphs keep a history of all the reported values from the RL78 G14 In order to clear the history and get clear readings please click the Clear buttons The graphs then automatically re scale to the displayed data values To see the external voltage changes turn the potentiometer using the potentiometer shaft included To increase the voltage turn the potentiometer in a clockwise direction to decrease the value turn the potentiometer anticlockwise The temperature can be changed by simply touching the MCU with a finger or blowing air over the RL78 device MEO CTT RN ee User Manual Rev 1 00 R

Download Pdf Manuals

image

Related Search

Related Contents

Planar IX2850 Car Video System User Manual  SINUMERIK 840D/840Di/810D Manuale di  CodeWarrior for Microcontrollers V10 Processor Expert User Manual  D2.3.8v2 Report and Prototype of Dynamics in the Ontology Lifecycle    里 取扱説明書      Gigaset C470  SERVICE MANUAL  

Copyright © All rights reserved.
Failed to retrieve file