Home

Renesas Promotional Board for RL78G13 Demo User Manual

image

Contents

1. 24 Chapter 6 Software Installation 25 6 1 Systems Embedded Workbench for RL78 Installation 25 6 2 WriteEZ5 Flash Programming GUI Installation 25 6 3 GULINStala ON cir 25 6 4 Sample Programs Installation s s ssssesssssssuss 25 6 5 USB driver installation sans 26 65 1 Installation on Windows as ee Ee 26 6 5 2 Installation on Windows Vista sss ssssssssssssssesssssessnsununnnunsnnnnnsnnnnanenos 29 6 5 3 Installation on WINdOWS 7 4 444444404 31 6 5 4 Confirmation of USB Driver InstallatiOn sss sssssssess 34 Chapter How to Use WriteEZ5 Flash Programming Software 35 RO1UHO243ED0000 1 0 RENESAS User Manual 10 Chapter 8 On Board Debugging OCD 42 8 1 Monitor ResoUrces s s sssssssassusunuunanunnunnnnunmnnunnnnunnannnnanmnnanmnnunmunnmnnanas 42 Ch 0 RR 42 M CN Tee A Cda 43 8 2 Sample Program Description s ssss sssssssssssssssssssans 43 8 2 1 General Introduction E 43 00 PUC 44 925 os LT o oo 44 8 2
2. 12 USE CN 13 11 23 Package cohlenls Gavin sa enti cus clues Ea pO UG eu 13 kiha Trademarks TT 13 Chapter 2 YRPBRL78G13 System Configuration 14 2 1 14 2 2 HOSt COMPUTO srta C 14 2 3 Power Supply via USB interface s sesssssessssssnssnnsss 14 Chapter 3 YRPBRL78G13 Board Components 15 3 1 1 Configuration Jumpers J6 J7 J8 J9 ssssssssssensssssssnnnnsnuunnnnnnmuunnennns 15 3k2 Users CED Di COME ccm 16 DLS 1008 220 16 3 1 4 External Power Supply Ua gada ursan p ou udu e vulva ia eks nka a 16 3 1 5 Current Measurement J3 ondaa 17 3 1 6 E1 Emulator GONNECIOF O suan OE A KNK 17 3 1 7 Programming Connector else ren nnna onon nnna in Cus kala ka a 17 3 1 8 Mini B USB Interface Connector USB1 s sssssssssssssssssssssssnnnssnsssssssssnnns 18 3 1 9 External Connectors 41 and siii ii 18 3 1 10 o 21 3 1 11 Seiko Instruments Inc Low Power 32 KHz 22 3 1 12 RL78 G13 Memory MAD ym 22 Chapter 4 Getting Stare DE 23 ZI Installed ee in ET CN 23 Chapter 5 Hardware Installation
3. Found New Hardware Wizard Please choose your search and installation options gt Search for the best driver in these locations Use the check bowes 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 CO search will choose the driver to install Choose this option ta select the device driver from a list Windows does not quarantee that the driver you choose will be the best match for your hardware Figure 9 Search Location Specification Windows XP 010 0243 00000 Rev 1 0 TENESAS 27 User Manual RO1UHO243EDO0000 lt 3 gt Click Continue Anyway to continue the installation Hardware Installation The software you are installing for this hardware Renesas Starter Kit Virtual UART has not passed Windows Logo testing to very its compatibility with Windows AH Tell me why this testing 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 STOF Installation Figure 10 Installation Confirmation Windows XP lt 4 gt Click to close the instal
4. Before using the On Board debug function of the YRPBRL78G13 board together with the IAR C SPY debugger please ensure that the Virtual UART USB driver has been installed Please refer to section 6 5 for the installation of the USB driver To set the YRPBRL78G13 starter kit to the on board debug mode configure jumpers J6 to J9 as following TPIRIZ www renesas com Jumper Positions Figure 32 Stick in On Board Debug Configuration 8 1 Monitor Resources The debugging feature of the YRPBRL78G 13 starter kit has been realized by a monitor program that is running on the RL78 G13 device Therefore the following resources are reserved by the monitor and can not be used by the user program TOOLO The RL78 G13 uses Vpp RESET and Vss pins to communicate with the host machine via the Virtual UART using the 78KO USB or the E1 on chip debugging emulator Serial communication is performed by using a single line UART that uses the TOOLO pin which is shared with 40 and therefore cannot be used for another purpose during debugging RO1UHO243ED0000 Rev 1 0 aS NE SAS 42 User Manual RO1UH0243ED0000 On Board Debugging OCD 8 1 2 Memory Area Four different areas 24 bytes in total are reserved for placing the debug monitor program in the flash memory of the RL78 G13 device so user programs or data cannot be allocated in these spaces When using the on chip debug function these spaces must be secured so
5. 15 P24 4 e 16 P25 o G 17 P26 PANE 18 P27 gt Reset input reser 0 EE 155 kO pulp resistor _ 20 P120 JP120ANMHO9 12 7 21 P43 AA o O 22 P42 HMMTAMA P 23 P41 417077007 4 64 y OO 24 P137 MMM 25 P146 JP146 j y O 26 P147 PMA ANA y O 27 06 06106 06 ee 46 2 64 6 4 28 Po JPOSTIOUTOO o y OO 29 P30 X P3O0 INTPS RTCTHZ SCKT1 SCL11 6 1 y O INC NT Table 6 Connector J2 22 User Manual RENESAS RO1UHO243EDO0000 YRPBRL78G13 Board Components 3 1 10 Solder Bridges 5 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 NF2 Ka A EE RID 25 J 8 19 Bu SSp Get e P ggo 0 TP1R12 E YRPBRL78G13 www renesas com SES NF1 NO1 Figure 6 Location of Solder Bridges Power is supplied from the USB interface Closed Connects RxD2 pin to INTP5 pin for waking up the device from STOP mode upon data reception a Ta Connects X1 pin to a 10K pull down resistor when 20 2 resonator not fitted Connects X2 pin to a 10K pull down resistor when 20 2 resonator not fitted externally Table 7 Solder Bridges 010 0243 00000 Rev 1 0 AS 21 User Ma
6. COMTE Create your user account and download praguct updates fram MyPages Here you can also manage your contact information and check your license amd SUA status STANTE gt Gap Ier iibig adding TUTORIALS SUPPORT RELEASE MOTES ron drama L DE bo are y al Tu abor sepen d a bug ding ripper Pru nuy Figure 33 IAR Embedded Workbench for RL78 Now from the File menu select Open and select the option Workspace Open the YRPBRL78G13 IAR Project eww located in CAWorkspacel RPBIRL78G13NAR Sample Projects Debugging Project This is the workspace file that contains general information about the sample project and settings Open Workspace Look in C3 YRPBRL78G13 DCD Project applilet3 src Debug My Recent settings Documents Jjuser src 3 I YRPBRL78G13 IAR Project Desktop My Documents My Computer Lo File name YRPBRL78G13 Ap DCD Project My Network Files of type Workspace Files eww Figure 34 IAR Sample Project Location R01UHO243ED0000 Rev 1 0 RZENESAS 45 User Manual RO1UHO243ED0000 On Board Debugging OCD After the demo workspace has been opened the project contained in the workspace is displayed Now click on the sign next
7. 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 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 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 06 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 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
8. 1 0 AS 61 User Manual RENES RO1UHO243EDO0000 GUI Description 9 6 3 SNOOZE Mode User Manual 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 result 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
9. BLUE SMD OSRAM LBT676 J1 J2 CON30 On PCB Board 0 1 pitch Pin headers not fitted 2 way straight PCB pin headers 0 1 pitch jumper efe T 9 1 4 cow On PCB Board 0 1 pitch Pin headers not fitted CON7x2 7 x 2 straight pin headers 0 1 pitch Pin headers not fitted 3 way straight pin headers 0 1 pitch jumpers SE mi CONG On PCB Board 0 1 pitch Pin headers not fitted NF1 NF2 NF4 SldrC On PCB Board PIR R2 360R MULTICOMP RESISTOR 0603 360R e eme CI EE 0 Im MULTCOMP RESISTOR 0609 0000 5 ns E 7 1734035 1 RECEPT 5 LAM ELS C EE o a 03 Panasonic Schottky Diode 0821411 40V SMni2 F5B8 _ Table 15 Bill of Materials 22 422 CC User Manual RENESAS RO1UHO243EDO0000 Resonator from Seiko Instruments Inc Chapter 13 Resonator from Seiko Instruments Inc 13 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 209 13 2 Product Name and Specifications The different product names offered by Seiko
10. LENESAS 78 013 Stick YRPBRL 8G13 16 bit Microcontroller RL 8 G13 R5F100LEAFB 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 RO1UHO243EDO0000 Rev 1 0 WWW renesas com March 25 2011 Notice 1 Allinformation 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 proper
11. 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 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 Update to search for software CO Yes this time only CO Yes now and every time connect a device No not this time Click Next to continue Figure 7 Found New Hardware Wizard Windows XP RO1UHO243EDO0000 Rev 1 0 ZENESAS 26 User Manual ROTUHO243EDOOOO Software Installation Select Install from a list or a specific location Advanced and click Next Found Mew Hardware Wizard This wizard helps you install software for USB Device your hardware with an installation CD SF 32 or floppy disk insert it now What do you want the wizard to do CO Install the software automatically Recommended 5 Install from a list or specific location Advanced Click Mext to continue Figure 8 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 following directory C Program Files Renesas RPB RL 78G13 USB Drivers Win2k Click Next gt
12. 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 RO1UHO243EDO0000 Rev 1 0 User Manual 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 Products 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 an 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 2 Processing at Power on The state of the product is undefined at the moment
13. For all ADC data requests by the GUI every 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 G13 Low Power D emonstrator me RL78 G13 kj Real Time Clock 2 Memory Dem H Low Power LN self Test Select the Port FL7 amp is connected to COMB Connection Status RL78 Board is Connected Version l l 2011 03 24 21 04 46 Len ua Lg a EAS a en 1 V y FR A Figure 49 External Volt 2 The graphs keep a history of all the reported values from the RL78 G13 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 screwdriver 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 RO1UHO243EDO0000 Rev 1 0 AS 57 User Manual RENES RO1UHO243EDO0000 GUI Description 9 4 Real Time Clock Demonstration This section of the GUI demonstrates the capability
14. Installation Chapter 6 Software Installation The YRPBRL78G13 package comes with several software demonstration packages o IAR Systems Embedded Workbench for RL78 including C compiler assembler linker librarian and IAR C SPY debugger o A project built for use with the IAR debugger is included o WriteEZ5 Flash programming GUI software to allow Flash programming of the RL78 G13 internal Flash memory o GUI to be run with the main demonstration programs o Source code for the demonstration and debugger programs The IAR Systems Embedded Workbench environment and the WriteEZ5 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 IAR Embedded Workbench for RL78 and WriteEZ5 6 1 IAR Systems Embedded Workbench for RL78 Installation This program will be installed automatically by the installer on the DVD when the full installation is selected If the quick install GUI was previously selected please insert the DVD again and select the full installation 6 2 WriteEZ5 Flash Programming GUI Installation This program will be installed automatically by the installer on the DVD when the full installation is selected If the quick install GUI was selected please insert the DVD again and select the full installation 6 3 GUI Installation This program will be installed automatically by the installer on the DVD for both quick
15. Kangnam Ku Seoul 135 080 Korea Tel 82 2 558 3737 Fax 82 2 558 5141 http www renesas com 2010 Renesas Electronics Corporation All rights reserved RO1UHO243EDO0000 Rev 1 0 User Manual RENESAS Colophon 1 0 76 RL78 G13 Stick LENESAS Renesas Electronics Corporation RO1UHO0243ED0000
16. Manual Readers Purpose Organisation Module instances Legend Note Caution Numeric notation Numeric prefixes Register contents Diagrams RO1UHO243ED0000 Rev 1 0 User Manual e Weight in data notation e Active low notation e Memory map address 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 counts from to the number of instances minus one oymbols and notation are used as follows Left is high order column right is low order column xxx pin or signal name is over scored or slash before signal name or XXX High order at high stage and low order at low stage Additional remark or tip Item deserving extra attention Binary or xxxB Decimal XXXX Hexadecimal XXXXH or Ox xxxx representing powers of 2 address space memory capacity K kilo 219 1024 M mega 2 1024 1 048 576 G giga 2 1024 1 073 741 824 X don t care Block diagrams do not necessarily show the exact wiring in hardware but the func
17. Multi Meter Connection for Current Measurement RL78 G13 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 G13 please consult the device user manual When using the low power demonstration the user clicks the appropriate button in the GUI window The RL78 G13 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 kj Real Time Clock 2 Memory Demo A Low Power Hodes m 78 G13 Puts the FL7 amp into Lou Power Halt Mode Select voltage Limits Select Trigger Intervals died Click Button to enter Mode Adjust Pot to release Mode Puts the FL7 amp into Lou Power Stop Mode Trigger Intervals Set the trigger limits Figure 53 Low Power Mode Selection RO1UHO243EDO0000 Rev 1 0 User Manual RENESAS 60 RO1UHO243ED0000 GUI Description 9 6 1 HALT Mode In this mode only the operating system clock to the CPU is stopped The system clock can still be supplied to the peripherals The total current consumption of the system can be reduced by using this mode in combination with the normal operation
18. Programming Software E Device Setup Standard Advance Command options Iw Blank check before Erase Wide Yoltage mode Read verify after Program Security flag after Program Checksum alter Program Security settings Disable Chip Erase Reset yector 0000000 Disable Block Erase Boot black end Disable Program F5 Black start 000 Disable Read FS Block end 063 Disable Boot block cluster repragrammir Show Addres Disable 5 Settings Cade settings ID Code Target Reset Message Figure 27 Advance Device Setup Dialog Box 6 6 Click on the button OK The GUI software sets the parameters When the settings have bee completed the following screen is displayed E WriteEZ5 Ll Sg Sat 4 gt gt Flash penning Flash Open Mame gt gt ParameterFile Heading Version Success Head ParameterF ile gt gt COMMAND Device Setup File Read Mame version Mame Date Chksum Area Connection to device 23 Speed 1152006 Range Block 000 063 000 003 Freq Internal OSC Multiply 1 00 Figure 28 Completion of Parameter Settings RO1UHO243ED0000 Rev 1 0 aS NE SAS User Manual RO1UH0243ED0000 How to Use WriteEZ5 Flash Programming Software lt gt Selecting a user 7 1 Select File gt Load from the menu bar or click on the Load icon 7 2 Select a program file to be written
19. R5F10DEA prs Ed ReF100JD prs ERSF1007D pr5 R5FiODEC prs 5 5 1007 5 RSF10DED prs 5 10022 5 REF10D8A pr5 File name R5F100LE Places Files of type Parameter Files pro pm prr Cancel Figure 25 Parameter File Selection 010 0243 00000 Rev 1 0 TENESAS 37 User Manual RO1UH0243ED0000 How to Use WriteEZ5 Flash Programming Software 6 3 From the Port list box select the communication port that matches the host machine being used Select the communication speed of the host connection E Device Setup Standard Advance Parameter File Head Hast connectian Supply oscillator Port COM23 Frequency Speed 115200 Multiply rate Operation Mode D Code Data e Black Are End 1063 e End 003 FF Skip Show Addres Voltage settings vdd v 5 00 Target Reset Message Figure 26 Port Selection Start 000 m Stark 000 kuj Remark Selectable ports can be checked using Device Manager For details refer to Chapter 6 5 4 Confirmation of USB Driver Installation 6 5 Switch to the Advance dialog box In Command Options check Blank check before Erase In Security flag settings all the different options should remain unchecked RO1UHO243EDO0000 Rev 1 0 User Manual RENESAS 38 39 RO1UH0243ED0000 How to Use WriteEZ5 Flash
20. SOFTWARE 0026 50 IT flag MD CLEAR 0026 30B70B t 00270 2200EF 5 00273 4 NOP Do nothing ins 00276 400 01 0027 DDEE I 0027C AOODEFO1 00280 DF1D I 00282 202 1 End user code Do not edit comment generated here deren Se 00289 C3 I 0028 C1 I Start user code for adding Do not edit comment generated here Tee d End user code Do not edit comment generated here 0028 FDD800 Ce v nn292 YRPBRL78G13 DCD Project Log Thu Mar 10 03 48 54 2011 Loaded debugee CADateWy StufiRenesas Microcontrollers Starter Kits RL 8 USB Ki SOFTWARE YRPBRL 8G13_IAR_OCD_Project Debug Exe YRPBRL 6G13_IAR_OCD_Pr Thu Mar 10 09 48 55 2011 Target reset Thu Mar 10 03 48 55 2011 RL 8 El Executor v1 31 1 Feb 2011 OCD Control Code 43 01 gt Device chipname R5F100LEff1 00 file version E1 00a Ni lt gt Build Breakpoints Debug Log NUM Figure 40 IAR C SPY Debugger As can be seen from the debugger window the user can now set Software breakpoints in the code or assembler windows This can be done simply double clicking on the C Source code line or the in the assembler window Other methods of setting software breakpoints by right clicking the mouse button or using the pull down menus are available 010 0243 00000 Rev 1 0 TENESAS 49 User Manual RO1UH0243ED0000 On Board Debug
21. Self Test tab as this is part of the user write protection RAM area In the Data Flash Content box when the Enable button is pressed the RL78 G13 starts writing 4 bytes of data into the internal data flash memory for every ADC measurement Occurring every 5 seconds The 4 bytes of data written are o The temperature value 2 bytes The first byte represents the integer part and the second byte the fractional part of the value o The external voltage 2 bytes The active window shows the current 64 bytes of the data flash memory block being written into The current 4 bytes written in the data flash memory appear in red colour Data flash content is retained even when the power is removed from the device so that if you stop the GUI demonstration unplug the YRPBRL78G13 board and then plug it back and restart the GUI the data flash content is still available and the window shows the current 64 bytes data written The use of the data flash is based on a simple E Emulation technique where two data flash blocks are used to save the data being written One block is used until it is full and the writing is switched to the next erased block The previous block is then erased User data can be written to the internal RAM of the RL78 G13 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 G13 To read the data ba
22. as previously set Note the Read function is still able to read the RAM data Regarding the SFR guard the 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 22 42 User Manual RENESAS RO1UH0243ED0000 GUI Description 3 System Clock Frequency Monitoring Finally the RL78 G13 also provides the ability to measure and check the system clock frequency Click the 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 Peripheral CRC Background CRC enabled Clock M
23. 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 Renesas Electronics RL78 613 Low Power Demonstrator 5 pm RS RL78 G13 CJ Real Time Clock Memory Demo lj Low Power 5 Self Test synchronize the RL78 registers Set and use the alarm function of the RL78 Kk with the Host system clock BI Date and Time Hours Minutes Select Alarm Time Day of Week Hour Minutes value uU 21 14 Day of week Date 24 March 2011 Time 21 14 05 2011 03 24 es Time zone UTC Dublin Edinburgh Lisbon London Gem Change time zone 03 28 Daylight Saving Time begins on 27 March 2011 at 01 00 The clock is set to go forward 1 hour at that time 01 44 Notify me when the clock changes Get more time zone information online How do I set the clock and time zone Figure 50 On Board RTC Operation RO1UHO243EDO0000 Rev 1 0 LENESAS User Manual 58 RO1UHO243EDO0000 GUI Description 9 5 Memory Demonstration This section of the GUI demonstrates the internal data flash 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
24. been successfully installed Windows has finished installing the driver software for this device Renesas Starter Kit Virtual UART Figure 16 USB Driver Installation Completion Windows Vista 6 5 3 Installation on Windows 7 i When the YRPBRL78G13 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 Update Driver Software Unknown Device How do you want to search for driver software gt 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 17 Update Driver Software Windows 7 010 0243 00000 Rev 1 0 AS 31 User Manual RENES R01UHO243EDO0000 Software Installation 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 78G13 USB Drivers Win2k For 64 bit Operating Systems select this location C Program Files Renesas RPB RL78G13 USB Drivers wilh_amd64 Click Next gt Upd
25. of the RL78 G13 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 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 Two other features of the RTC can be used the interval interrupt and alarm function The interval interrupt allows the user to generate periodic interrupts that have been selected in the drop down menu Click the Enable button and you will see the LED D2 on the board toggling according to the selected period The alarm function lets the user select the time Days of the week hours and minutes for which you want the alarm to go off When pressing the Set Alarm button the LED D2 will stop blinking and will turn on when the alarm has gone off The GUI will also show a notification that the alarm has gone off When the RTC tab is selected in the GUI the alarm values will
26. specifications electrical User s characteristics timing User s manual for charts and operation manual for Hardware description Hardware Note Refer to the application notes for details on using peripheral functions This User s manual Series Description of CPU User s instruction set manual for Software User s manual for Software RO1USxxxxEJXxxx Information on using peripheral functions and mE application examples Application Available from Renesas Sample programs Information on writing programs in assembly language and C Note Electronics Web site Renesas Technical Update Product specifications updates on documents etc RO1UHO243EDO0000 Rev 1 0 User Manual RENESAS 2 Notation of Numbers and Symbols Not applicable 3 Register Notation Not applicable 010 0243 00000 Rev 1 0 LENESAS User Manual 4 List of Abbreviations and Acronyms Abbreviation Full Form ACIA Asynchronous Communication Interface Adapter bits per second Inter Equipment Bus Most Significant Bit PLL Special Function Register Subscriber Identity Module UART Universal Asynchronous Receiver Transmitter Voltage Controlled Oscillator All trademarks and registered trademarks are the property of their respective owners GOI User Manual RENESAS Table of Contents Chapter INUOJUCION susana isidro 12 1 1 44 Main features of 78 13
27. the USB port of the personal computer Alternatively disconnect the USB connector and then insert the USB connector again after a while The driver file cannot be found at a specific location Cause The WriteEZ5 programming software may not be installed correctly Action Install the WriteEZ5 software again by referring to Chapter 6 Software Installation e In 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 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 RO1UHO243ED0000 Rev 1 0 TENESAS 66 User Manual RO1UHO243EDO0000 Troubleshooting 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 conne
28. 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 using the provided mini screwdriver to a voltage below 2 5V between and 2 5V or above 2 9V between 2 9V and 5V As this is the only way of waking the 78 in this mode a window will pop up to remind the user to adjust the potentiometer 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 G13 user manual for more details These are a The wake up voltage can be set to occur inside the specified voltage range b 5100 or UARTO reception R01UHO243ED0000 Rev 1 0 TENESAS 62 RO1UHO243EDO0000 GUI Descripti Renesas Electronics RL78 G13 Low Power Demonstrator E RL 8 G13 ky Real Time Clock 2 Memory Demo Low Power Self Test Puts the EL73 into Lou Power Halt Mode 1 Select voltage Limits Select Trigger Intervals Click Button to enter Mode 3 a Adjust Pot to release Mode d Puts the EL78 into Low Power Stop Mode Trigger Intervals the trigger limits Snooze Mode in Snooze Mode ESA Please
29. 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 document or Renesas
30. wait until the target clock signal is stable 5 Differences between Products Before changing from one product to another i 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 RO1UHO243EDO0000 Rev 1 0 User Manual 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 Device availability Ordering information Product release schedule Availability of related technical literature Development environment specifications for example specifications for third party tools and components host computers power plugs AC supply voltages and so forth 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 to get in contact with your regional representatives and distributors R01UHO243ED0000 Rev 1 0 LENESAS User
31. 0LE ID code FFFFFFFFFFFFFFFFFEFF Erase flash before next ID check Time unit Mam clack Sub clock Clock board Clock board External External System System Flash programming Target power off Low voltage gt Permit Permit On Mot Permit gt Mot Permit Fin mask TARGET RESET LJ INTERNAL RESET Peripheral break timer serial etc Memon map Start address Length 0500000 Internal 64 Internal 4096 bytes Figure 39 TK Hardware Setup Menu 2 2 010 0243 00000 Rev 1 0 User Manual LENESAS Fail safe break kHz View zeli p Target connect TOOL Ke Target Power supply Connect Mot Connect LU LLI Internal ROM a emove Remove All 48 RO1UH0243ED0000 On Board Debugging OCD Now the debugger is started and the demo project is downloaded to the YRPBRL78G13 board In other words the Flash memory of the RL78 G13 device is reprogrammed with the user application After the download is completed all debug features of IAR C SPY debugger are available i e Single Stepping Step Over In Out Go Stop Breakpoints Register Memory view etc To get more details on the debugger configuration and capabilities please refer to the RL78 IAR Embedded Workbench IDE User Guide of the IAR installation Embedded Wor
32. 3 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 Data Flash amp RAM Content When the Enable button is pressed the RL78 writes 4 bytes of data to the internal data flash memory for every ADC measurement 5 sec The data saved are the converted ADC values for the external voltage Potentiometer and internal temperature sensor The GUI window shows the current 64 bytes window of the current data flash block that is being written into Data flash contents are retained even when the power is removed from the device This section also displays the data RAM content read from the RL78 G13 RAM variable memory and an 8 byte user area which can written and read by the user RAM content is not lost even when the RL78 G13 enters the lowest power mode STOP mode providing power is not removed from the board 4 Low Power Low Power Mode Selection Three different standby modes are implemented in the RL78 G13 device HALT mode STOP mode and the new SNOOZE mode Buttons are used to switch the operational mode of the RL78 G13 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 G13 to the active mode except for the Snooze mo
33. 4 Project Structure EE 44 8 3 Sample Debugging Session 2 4 21 122 45 8 4 Debugging using Emulator in lAR 52 Chapter 9 GUI Description eere eee 53 9 1 Running RL78 G13 Demo ss sssesssssssssesssnsusnuuunnnunnnnnss 53 92 D mo SECIIONS d rond odor EE EO CR OE 55 9 3 ADC Demonstration 57 9 4 Real Time Clock nnns 58 95 Memory Re Et E e E 59 9 6 Low Power Demonstration 60 9 6 1 HALT d EE 61 962 SIOP MODO Tm 61 953 SNOOZE KT EE 62 9 6 4 Typical Current Consumption Figures ss ssssssssssssssssssssssssnsunussnnnunus 63 9 7 Self Test Functions Demonstration 64 Chapter 10 Troubleshooting eese 66 Chapter 11 Schematics 68 Chapter 12 dE CU 71 Chapter 13 Resonator from Seiko Instruments Inc 72 13 1 Featur
34. 8 bit microcontroller with on chip USB interface and the 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 YRPBRL78G13 is powered by USB interface therefore no separate power supply is required RO1UHO243ED0000 Rev 1 0 RTENESAS 14 User Manual RO1UHO243EDO0000 YRPBRL78G13 Board Components Chapter 3 YRPBRL78G13 Board Components The YRPBRL78G13 board is equipped with a USB connector and with several connectors in order to be connected to host computers Minicube2 E1 emulator or any external target hardware USB1 J10 J1 U1 D2 D1 J3 J5 0 ES E MO ew KS 72 TPIR12 24 oj 50 GND YRI BRL78G13 WAw renesas com N 94 92 J6 49 2 R15 Figure 2 YRPBRL78G13 Board Components Some of the YRPBRL78G13 components are free for user application hardware and software Please read the user s manual of the RL78 G13 device carefully to get information about the electrical specification of the available ports before you connect any external signal to the YRPBRL78G13 board 3 1 1 Configuration Jumpers J6 J7 J8 J9 The jumpers J6 to J9 control the different operating modes of the YRPBRL78G13 board 3 1 1 1 GUI Demonstration
35. 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 13 3 Web URL Fore more information about those products please refer to the following URL www sii components com quartz renesas 22 2 User Manual RENESAS RO1UHO243ED0000 Resonator from Seiko Instruments Inc 13 4 Contact Addresses 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 R01UHO243ED0000 Rev 1 0 User Manual Katsuyuki Masuko Quartz Crystal Sales Electronic Components Business Unit 81 43 211 1207 katsuyuki masuko gsii 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 gsii co jp Seiko Instruments H K Ltd Shenzhen Rep office 2212 2215 Diwang commercial building Shunhin square 5002 Shennan Est Rd Shenzhen Guangdong Chi
36. L78G13 Board Schematics 1 2 68 LENESAS RO1UHO243ED0000 Rev 1 0 User Manual Schematics RO1UHO243ED0000 Hasn xeL 104 sped burumeibojg UI x 93402 gsnA T IKWOELOABLOAJN Wed 3400 _ lad 09d SN Ex T ESADMBGLADLSD YOL a a SHUOOEdINVEEd a HH g BT BENS m ZI re 15 asnu 050 0514 Ld TM ii SSNA 2 LHOLISL L BS ae e LIO 13534 lt lt Sid vow lt PE anota assy DO 9x lt lt OLA 2 asf 154 DDOLL ODd OLIS L Ld ro _ ii DIMOSMOLd BLU 4 Figure 60 YRPBRL78G13 Board Schematics 2 2 69 24 N S AS RO1UHO243ED0000 Rev 1 0 User Manual RO1UHO243ED0000 QO OE Or 96 EL Gilda H 1 00 UL ca 5 co a Ym oH OW l mu 8 E 3 223 R 9 00 Figure 61 YRPBRL78G13 Board Assembly Drawing 010 0243 00000 Rev 1 0 AS User Manual RENES Dimensions imn mm Schematics 70 RO1UHO243EDO0000 Bill of Materials Chapter 12 Bill of Materials e eem e O 1 8 9 10 12 YAGEO CAPACITOR 0603 100NF 50V X7R C4 C6 C7 0 47uF CAPACITOR 0603 470NF 16V X7R 6 2 01 02 LED
37. Mode Virtual UART Mode The default operation of the board is set for use with the GUI using the virtual UART Jumpers J6 to J9 should be set as shown in the table below Table 1 J6 to J9 GUI Demonstration Mode 010 0243 00000 Rev 1 0 AS 15 User Manual RENES RO1UHO243ED0000 YRPBRL78G13 Board Components 3 1 1 2 On Board Debug OCD Mode Flash Programming Mode User Manual The YRPBRL78G13 starter kit supports on board debug mode achieved by a dedicated monitor running on the RL78 G13 device By using the IAR C SPY debugger flash programming and standard debug functions i e code execution single stepping software breakpoints memory manipulation etc are supported Additionally the built in Flash memory of the RL78 G13 device can be programmed by using the WriteEZ5 Flash programming GUI Configure jumpers J6 to J9 as following to use the on board debug or Flash programming mode Table 2 For more details please refer to Chapter 8 On Board Debugging OCD of this document 3 1 2 User s LED 01 D1 is the Power LED D1 is activated if power is supplied to the YRPBRL78G13 board 3 1 3 Power LED D2 D2 is connected to the port pin P77 of the RL78 G13 It can be used by the user for any purpose 3 1 4 External Power Supply J4 External power can be supplied by connecting a regulated 5V DC to the connector J4 not assembled The operation of the stick is as follows USB power only Or External sup
38. ROM 0500000 Internal 64 Kbytes OxFFEFF Internal 4096 bytes Remove All Figure 43 E1 Emulator Hardware Setup for TOOLO Interface It is important to note that any use of the E1 emulator must be set to Target in the Power supply box Thus it is the USB interface which is used to power all circuits function and Please note that the E1 emulator is a separate tool from Renesas Electronics and is not included with this starter kit The E1 emulator can be purchased separately 010 0243 00000 Rev 1 0 TENESAS 52 User Manual RO1UHO243ED0000 GUI Description Chapter 9 GUI Description The RL78 G13 demonstration GUl is Windows software application that can be used to demonstrate the key operation of the 16 bit microcontroller RL78 G13 mounted on the YRPBRL78G13 board The demonstrations allow the user to check the on board RTC the memory contents both data flash and RAM switch between the different standby modes and to check associated power consumptions and to use the self test functions implemented in the RL78 G13 device The user can measure the current in each power mode using a multi meter connected to the J3 jumper provided on the board as shown 1 2627 cr 3 TP1R12 YR 8 13 WWW renesas com Figure 44 Current Measurement Connector 9 1 on Renesas Electronics Tools Please note that the YRPBRL78G13 needs to be runnin
39. Rev 1 0 LENESAS 33 User Manual ROTUHO243EDOOOO Software Installation 6 5 4 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 YRPBRL78G13 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 COM23 When you change the USB port connection the COM port number will be changed as well Device Manager File Action Help Hes EE DE DVYDICD ROM drives ba Human Interface Devices 11 53 IDE ATAJATAPI controllers 23 IEEE 1394 Bus hast controllers Infrared devices c Keyboards 3 Mice and ather pointing devices Modems E Monitors Network adapters E PCMCIA adapters 3 PCMCIA and Flash memory devices E la Ports COM amp LPT E Bluetooth Communications Port COMITE F Bluetooth Communications Port OMIO E Communications Port COM d ECP Printer Port LPT1 E Renesas Starter Kit Virtual UART CONS me Processors H Aen SCT and RAID controllers CZ Secure Digital host controllers Figure 21 Device Manager Caution Do not do Hardware Modification Scan when you
40. adjust the potentiometer using the screw driver to mzet the trigger conditions This window will automatically close after the RL78 is released from Snooze mode 2011 03 24 21 21 05 Loo IKON MAIN RUN N cru pun The consumed power can be reduced oven mora ian in Pa halt moda L ARICA A SNOOZE Mode SY Ga rigure oo 9 6 4 Typical Current Consumption Figures The table below shows typical current consumption figures for the different operating and low power modes of the RL78 and shows the corresponding active and non active clocks and peripherals used in the RL78 demonstration In a real application these settings can be adjusted to minimize the current consumption on further Power Current Mode Consumption CPU 32 MHz 32KHz UART Timer ADC RTC LVD Flash RAM RUN 5 1 mA On On On On On On On Off On On HALT 1 mA Off On On On On On On Off On On STOP 0 62 UA Off Off On Off Off Off On Off Off On 1 HA On SNOOZE depends on the Off Off On Off Off periosteal On Off Off On trigger interval time y RO1UHO0243ED0000 Rev 1 0 aS NE SAS 63 User Manual RO1UHO243EDO0000 GUI Description 9 7 Self Test Functions Demonstration The RL78 G13 includes several new self test and safety hardware functions amongst these are 1 Hardware CRC Peripheral This can be used for background CRC calculations on part or all of the code flash memory or as a peripheral CRC
41. are Installation if the driver has not been installed yet lt 3 gt Installing the The parameter file for the RL78 G13 device is installed automatically during parameter file installation of WriteEZ5 GUI in the folder C Program Files Renesas RPB RL78G13 WriteEZ5 for RL78G13 PR5 RL78G13_V100 Nevertheless the parameter files for the family RL78 G13 can also be found in the folder WriteEZ5 for RL78G13 PR5 RL78G13 V100 of the DVD EISEN User Manual RENESAS RO1UH0243ED0000 How to Use WriteEZ5 Flash Programming Software lt 4 gt Setting and Set the YRPBRL78G13 board by configuring 46 to J9 as following connecting 122 Is J JB J9 S ku 510 gt SSP T 7 F R 1 D3 v TP1 R12 25 END YRPI3RL78G13 www renesas com N E Jumper Positions Figure 22 Stick in Flash Programming Configuration Connect the YRPBRL78G13 board with the host machine 5 Starting Start the WriteEZ5 GUI from the start menu Start gt All Programs gt Renesas Electronics Tools WriteEZ5 Or use the shortcut icon on your Desktop E WriteEZ5 AE File Device View Help gt Flash penning Device IFlash Open Version Parameter file Name Version Connection to device Figure 23 WriteEZ5 Start up Screen RO1UHO243EDO0000 Rev 1 0 LENESAS 36 User Manual RO1UHO243EDO0000 How to Use WriteEZ5 Flash Programming Software 6 Setti
42. as not to be used by the user program Moreover this area must not be rewritten by the user program The monitor reserves 6 bytes of the global stack area by halting the user program caused by a forcible break debugger stop command or a software breakpoint 8 2 IAR Sample Program Description 8 2 1 General Introduction The sample program is located in a single directory which will be called main directory of the sample This main directory contains the complete project including all output files of the development tool The workspace file YRPBRL78G13 IAR OCD Project is located on top of the sample program directories The project has been created using the Applilet software tool to generate the different source and header files Any changes that the user wishes to make to the project s peripheral initializations should ideally be done by changing the settings in the Applilet tool 28 user src Empty directory available for new user source files a IAR OCD Proiect de Dependency information file IAR Embedded DT Workbench YRPBRL78G13 IAR Project ewd Project setting file IAR C SPY debugger la VRPBRL78G13 IAR OCD Boedo Project file IAR Embedded Workbench YRPBRL78G13 IAR OCD Project eww Workspace file IAR Embedded Workbench RL78 Table 13 Example Directory Structure The main directory contains only the project files for the IAR Embedded Workbench All source files header files and linke
43. ate Driver Software Renesas Starter Kit Virtual VART COMBS Browse for driver software on your computer Search for driver software In this lacation CAProgram FilessRenesasNRPEARLT8GISAUSB Driverswingk el 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 18 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 are Renesas Electronics Corporation Ports Publisher Renesas Electronics Corporation Always trust software from Renesas Electronics Don t Install Corporation n You should only install driver software from publishers you trust How can I decide which device software is safe to install Figure 19 Installation Confirmation Windows 7 010 0243 00000 Rev 1 0 32 User Manual ROTUHO243EDOOOO Software Installation lt 4 gt Click to close the installation wizard Update Driver Software Renesas Starter Kit Virtual UART COM Windows has successfully updated your driver software Windows has finished installing the driver software for this device Renesas Starter Kit Virtual UART Figure 20 USB Driver Installation Completion Windows 7 RO1UHO243EDO0000
44. ck click the Read button and the same internal RAM location is read by the RL78 G13 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 G13 to RAM Content Ax RLXB G13 CJ Real Time Clock Memory j Low self Test Enable Disable write amd read from the internal Data Flash 61 62 63 84 65 7 GO 659 GO 60 56455 GAN EL78 urixe the 4 Bytes measurementiTemperature voltage to the data flash The 217 Monages the readfuriteferase processes HI 2 Ad HZ pis to write tom 22 05 UZO Bytes read from 1 22 89 EF FF 91 65 C5 Data read Figure 51 Data Flash and RAM Content from RAM RO1UH0243ED0000 Rev 1 0 ZENESAS 59 User Manual GUI Description RO1UHO243ED0000 9 6 Low Power Demonstration It is recommended to remove the jumper link from the connector J3 and replace it with the two leads of a multi meter to be able to measure the current consumption of the RL78 G13 The following figure gives an illustration on how to connect merece a a B SEE EN NF2 SD QU R8 pog 11 gt lt eu ol W Segen TP1R12 VRPBRL78G13 www renesas com 200000000000000000000000000000 l Figure 52
45. communicate with the target device 010 0243 00000 Rev 1 0 TENESAS 34 User Manual RO1UHO243EDO0000 How to Use WriteEZ5 Flash Programming Software Chapter 7 How to Use WriteEZ5 Flash Programming Software This chapter explains the basic operations of the WriteEZ5 GUI for programming the YRPBRL78G13 board This chapter covers how to start the system execute the command Erase Program Verify and program the target RL78 G13 device The conditions of the series of operations described in this chapter are as follows Hardware Board YRPBRL78G13 Configuration of YRPBRL78G13 CPU RL78 G13 Target Device R5F100LE Voltage level 5V Software Parameter file R5F100LE pr5 Configuration of WriteEZ5 GUI Clock setting Internal OSC Port UART chO 1Mbps Operation mode Chip Write HEX file YRPBRL78G13 Stick Demo SW hex or YRPBRL78G13 IAR Project hex Option Setting Blank check before Erase The YRPBRL78G13 Stick Demo SW hex file is the main demonstration software for use with the GUI The YRPBRL78G13 IAR OCD Project hex file is the sample project for use with the IAR Embedded Workbench debugger lt 1 gt Installing the Install the WriteEZ5 GUI software on the host machine you are using by referring WriteEZ5 GUI to Chapter 6 Software Installation if the software has not been installed yet 2 Installing the Install the USB driver on the host machine you are using by referring to Chapter driver 6 Softw
46. ctor 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 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 Communication with the YRPBRL78G13 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 WriteEZ5 may not be set correctly Action Set the port checked using Device Manager Cause The YRPBRL78G13 board is operating in GUI Demo Virtual UART mode Action Set the board to the On Board Debugging Flash Programming mode Cause The PRM file selected in Device Setup may be incorrect Action Use the corresponding PRM file that matches the target device For information about the PRM file refer to Chapter 7 How to Use WriteEZ5 Flash Programming Software RO1UHO243EDO0000 Rev 1 0 aS NESAS 67 User Manual Schematics RO1UHO243ED0000 Chapter 11 Schematics peg
47. de which requires the user to adjust the external potentiometer to exit Detailed explanations about each of the low power modes are provided in the section 9 6 Low Power Demo please refer to it 5 Self Test Function This section demonstrates the different self test functions provided within the RL78 G13 The self test functions are CRC check RAM amp SFR write protection and system clock measurement It is important to note that tooltips are present on every buttons to guide the user through the experience of the RL78 G13 GUI Demo and provide him with useful information for a good and quick understanding of the different features and peripherals demonstrated Help e to the d Click to write the bytes in the text boxes to the RL 8 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 L o Figure 48 Tooltip Example 0 0 24 0 User Manual RENESAS RO1UHO243EDO0000 GUI Description 9 3 ADC Demonstration This section of the GUI makes use of the ADC to measure and display the external voltage and the temperature using the RL78 G13 internal temperature sensor The sensor is internal to the RL78 G13 device therefore the measured temperature might not reflect the room temperature The internal reference voltage TYP 1 44 V is also displayed on the right hand side of the GUI window
48. debug functions such as code execution single stepping software breakpoints memory manipulation etc WriteEZ5 Flash programming software Windows based Flash programming software allows the user to select and download application programs to the YRPBRL78G13 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 WriteEZ5 and Applilet3 software versions provided are only preliminary versions and therefore should only be used with the YRPBRL78G13 board We recommend not to upgrade these software tools in order to guarantee operation with the stick Please also note that documentation is not supplied for these pre release versions but will be available to download from the Renesas website once final versions are released e Various input output signals available such as All I O ports prepared to be connected to user hardware Virtual UART interface the uPD78F0730 78K0 8 bit microcontroller with on board USB interface 1 LED connected to a RL78 G13 port for visualization The IAR Embedded Workbench for RL78 and the IAR C SPY debugger are included These packages are restricted in such that maximum program code size is limited to 16 Kbytes Caution Please note that only the IAR Embedded Workbench for RL78 1 10 version provided on the DVD should be used with the YRPBRL78G13 stick a
49. easurement 3 RL78 G kd Real Time Cldck Memory Dem Low Power 5 Self Test Enable RAM Protection Measure internal Clock Frequency Automatic Enable SFE Protection nutomatic CRO 65439 emt P initiate peripheral Ct Curremt Frequency 32 210 MHz Min Frequency 22 178 MHz Max Frequency 39 243 MHz gpm pu gr Ak Peia d e la CAIT aval PATI AA Figure 5 voelt lest Functions J Low Power E Self Test 15 27 03 59 15 27 57 15 27 59 15 27 57 E gg 15 27 57 15 27 57 14 2A 5A 15 27 03 5N 78 CRC Result 15 27 03 59 15 27 03 57 10 56 03 57 10 56 55 ex7zlE4 ds 11 54 03 54 OF 58 03 59 FF FF FF FF GG GI 02 64 05 05 07 08 69 BA C D BE or 71 4 RL78 writes the Bytes ADC measurement Temperature Voltage to the data flash The RL78 Manages the read write erase processes eo Bal 92 ga a5 6 a rer sa as 5 15 59 as sa ns Bytes read from RAM La mur MDM Dani ROf UHO243ED0000 Rev 1 0 RENESAS User Manual VE INE RO1UHO243EDO0000 Troubleshooting Chapter 10 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
50. eature can be used to show the periodic update of the selected variables This can be used for example to see the ADC conversion variable for potentiometer Live updates can also be used to view the memory window in the Live Memory window The Live Memory window can be opened from the Emulator pull down menu RO1UHO243ED0000 Rev 1 0 AS 51 User Manual RENES RO1UH0243ED0000 On Board Debugging OCD 8 4 Debugging using E1 Emulator in IAR If the UART2 is required in the user application the user can use the TOOLO interface of the RL78 G13 available using 40 Please consult Figure 3 for the schematic and the E1 emulator user manual for proper connections To use this interface for debugging proceed as explained above but make sure to change the driver to E1 in the Debugger section and set the E1 hardware setup as shown below Hardware Setup R5F100LE code Time unit FFFFFFFFFFFFFFFFFFFF Erase flash before nest ID check Mam clack Sub clock Clock b Clock D E ard Default gt External 9 External System Fail safe break Flash programming Target power off Low voltage Target connect Permit C2 Permit CO Un TOOLO C Mot Permit Mot Permit mask Peripheral break Power supply WAST TARGET RESET timer L annect Tamel i JINTERNAL RESET serial etc h ct Memory map 3ustem Start address Length Type o 360 Internal
51. ect the Port FL78 is connected to BEES Connection Status RL78 Board is not Connected RO1UHO243EDO0000 Rev 1 0 AS 54 User Manual RENES RO1UHO243EDO0000 GUI Description 9 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 Renesas Electronics RL 8 G13 Low Power Demonstrator me RL78 G13 Ej Real Time Clock 2 Mempry Demo Low Power il Self Test Select the Port EL78 15 connected to Connection Status RL78 Board is Connected Yersion 1 1 2000701 201 00 02 19 RO1UHO243EDO0000 Rev 1 0 AS 55 User Manual RENES RO1UHO243ED0000 GUI Description 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 G13 The measurements are performed by the 10 bit ADC of the RL78 G13 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 buttons are pressed so a more detailed look of the reported values can be made 2 Real Time Clock This section displays the date and time reported by the on board RTC The RL78 G1
52. es of the 32 KHz 72 13 2 Product Name and Specifications eese 72 13 3 Web 72 134 Contact Addresses EE 73 RO1UH0243ED0000 Rev 1 0 RENESAS User Manual RO1UHO243EDO0000 Introduction Chapter 1 Introduction The YRPBRL78G13 is a promotion board for the new Renesas RL78 microcontroller family It 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 1 Main features of YRPBRL78G13 Easy to use device demonstration capabilities YRPBRL78G13 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 Timers safety functions and on chip data flash e Power supply via USB interface YRPBRL78G13 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 On Board debug function The YRPBRL78G13 supports an On Board debug function by using the IAR C SPY debugger without the need of additional debug hardware It allows Flash programming and supports standard
53. g the program supplied YRPBRL78G13 Stick Demo SW hex within the GUI Demo Source Code directory copied to the host PC during installation This is programmed as default in manufacture Before connecting the YRPBRL78G13 board check the jumpers J6 to J9 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 G13 Demo From the menu All Programs locate the folder Renesas Electronics Tools YRPBRL78G13 within that folder select Y RPBRL78G13 Demo to run the RL78 G13 demo as shown below It is also possible to run the demo by double clicking on the GUI demo shortcut icon on the desktop a YRPERLZEGIS YRPBRL78G13 Demo Figure 45 Running the Demo R01UHO243ED0000 Rev 1 0 aS NE SAS 53 User Manual RO1UHO243ED0000 GUI Description When the Demo GUI is started the COM port to which the YRPBRL78G13 board is connected should be automatically detected and selected in the RL78 G13 tab The GUI software should also connect to the YRPBRL78G 13 board and start automatically If for any reason this does not happen please select the appropriate port number from the drop down list and then press the Connect button on the GUI start window Renesas Electronics RL78 6G13 Low Power MEE me RL78 G13 kJ Real Time Clock 3 Mempry Demo Low Power Self Test Sel
54. ging OCD One hardware Event breakpoint is available so that a break be made data event for example a write of a specific value from the ADC Potentiometer The event can be set up as shown below by clicking on the Edit Events feature on the Emulator pull down menu Edit Events M ame Fass count Cancel Access type Address Read Write Start Read Condition ADL value 9 Write A E C3 DP fetch exec Inside Outside Data Stark 0 0200 Condition End Start pattern i End pattern Inside Remove Outside Usage Addifange ODL Breakpoint taj EH SON 00000010 Figure 41 Edit Event Window RO1UHO243ED0000 Rev 1 0 AS 50 User Manual RENES RO1UH0243ED0000 On Board Debugging OCD Then this event can be assigned to a breakpoint e Inthe view window select breakpoints a breakpoint Tab will be added e Click the breakpoint Tab and in the breakpoint window select New Breakpoint and select Event e Then select the event as shown below and click OK Mew Breakpoint Event Break At Select Event Select Event ane Selected event none ZK Cancel Figure 42 New Breakpoint Window The debugger will now break when the ADC value variable is written with a value of 0x200 The use of the Live Watch f
55. imer Port and On board OCD resources are within this module The files generated for this module are e CG ad c e CG e port c e CG system c e systeminit c 8 2 4 2 Main Loop This module includes the main loop and additional system initialization such as Security ID for OCD and Option Byes settings The file generated for this module is e main c 8 2 4 3 Interrupt Handling This module includes the interrupt handling of ADC and interval interrupt of the Interval Timer The files generated for this module are e ad user c e it user c User Manual RENESAS RO1UH0243ED0000 On Board Debugging OCD 8 3 IAR Sample Debugging Session When everything is set up correctly the IAR Embedded Workbench for RL78 can be started To do so start the IAR Embedded Workbench from Windows Start menu gt All Programs gt folder IAR Systems gt IAR Embedded Workbench for Renesas RL78 1 10 Kickstart The following screen appears E Embedded Workbench Fia Edt Ven Project Took Window Help ni E d ei e A Eu c c i vn EAR rd ormation Denver lor Renesas ELTO Files i E Information Center for Renesas RL78 Ww pietii E in depth atices Om aur software engineer amd product managers see vedi presentab ns and Cheick webinar calendar ar view Me rec rdngs Www
56. install the GUI full documentation and all of the development tools The Quick Start Guide 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 YRPBRL78G13 board is the USB port interface the hardware and software must be installed properly 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 All Programs menu under the main Renesas Electronics Tools YRPBRL78G13 and main Systems folders with the following directory structure Manual Navigator LA WriteEZ5 Flash programming software Mu II JAR Systems DESCRIPTION LI IAR Embedded Workbench for Renesas RL78 1 10 Kickstart Table 9 Contents Installed on Start gt Programs IAR Embedded Workbench for RL78 EE User Manual RENESAS RO1UHO243EDO0000 Hardware Installation Chapter 5 Hardware Installation After unpacking the 78613 promotion board connect the USB cable supplied to the board The connection of the board to the Host PC should be done in conjunction with Chapter 6 5 USB Driver Installation This driver must be installed before the user can use the GUI or debugger RO1UHO243ED0000 Rev 1 0 aS NE SAS 24 User Manual RO1UHO243EDO0000 Software
57. istered trademarks of Microsoft Corporation Adobe and Acrobat Reader are registered trademarks of Adobe Systems Incorporated All other product names are trademarks or registered trademarks of their respective owners 2 0 7 User Manual RENESAS RO1UHO243ED0000 YRPBRL78G13 System Configuration Chapter 2 YRPBRL786G13 System Configuration Figure 1 2 1 2 2 2 3 The YRPBRL78G13 system configuration is given in the diagram below YRPBRL78G13 System Configuration YRPBRL78G13 7841315 a promotion board for evaluating the new Renesas RL78 G13 family of devices The device used is the RL78 G13 R5F100LEAFB the first microcontroller from the G Series The board can be directly connected to the host system via a USB port The host system may be used for On Board debugging or Flash programming and to allow execution of the Demonstration program on the RL78 G13 device in combination with the supplied demonstration GUI As default the RL78 G13 is using the 32 MHz internal high speed oscillator but the YRPBRL78G13 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 YRPBRL78G13 board The uPD78F0730 78K0
58. kbench IDE File Edit View Project Debug Emulator Tools Window Help 2 gt i x EEE NNN x CG it user c Disassembly px EE EEN Go to m Memory Expression Value E value 0 0000 void main void MD INTIT E IT compare value 0 0000 io 00246 Ci E SOFTWARE counter 0x0000 Dco ade Start user code Do not edit comment generated here 00248 AEFC Result 0 0000000 ade 1 JNN 7 73 3 3 0024 Zl I MS eae Bae EE E CG ad user c Peripheral start function calls P7 bit EI CG itc IT _Start Start Interval Timer 0024B 7A0780 CG it user c AD ComparatorOn Enable ADC voltage comparator 0024E AF 4EF CG main c 8 Start ADC ADCS 0n _Start Star qi 00251 2802 CG_portc 1 lag E CG_system c Endless control loop 00257 I CG system while 1U 00258 BEFC 1 systemin 00254 C6 L user src if ADC done MD TRUE ADC conversior 0025B I Lm C Output 0025C 61FC I ADC done MD CLEAR Clear ADC rest AR koko IT compare value 0667 ITMCMP VALUE ADC value 1 D 0025 1702 00262 FDESO1 if IT flag MD SET Interval Timez 00265 FDDBO1 SOFTWARE counter Increment soft 00268 E E Result ULONG SOFTWARE counter ULONG
59. lation wizard Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for E Renesas Starter Kit Virtual LAAT i Click Finish to close the wizard lt Back Cancel Figure 11 USB Driver Installation Completion Windows XP RO1UHO243EDO0000 Rev 1 0 User Manual RENESAS Software Installation 28 ROTUHO243EDOOOO Software Installation 6 5 2 Installation on Windows Vista 1 When the YRPBRL78G13 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 0 Don t show this message again for this device Your device will not function until you install driver software Cancel Figure 12 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 gt Check for a solution Windows will check to see if there are steps you can take to get your device working gt Browse my comp
60. le Code Flash Programming finish Flash Programming Start Flash Programming 105 Flash Programming 205 Flash Programming 305 Flash Programming 405 Flash Programming CDU Flash Programming Flash Pragramming lt 05 Flash Programming SU Flash Programming COU Data Flash Programming finish Mame TRPBRLFBGI3 STICK Date 2011 02721 12 32 56 Chksum 3245h rea 0000004 0041 26h Connection to device Port 23 Speed 175200bps Range Block 000 063 000 003 Internal USC Multiply 1 00 Figure 30 Completion of EPV Command R01UHO243ED0000 Rev 1 0 40 User Manual RENESAS RO1UH0243ED0000 How to Use WriteEZ5 Flash Programming Software lt 9 gt Terminating the Select File gt Quit to terminate the GUI software All settings executed so are GUI saved so that those settings can be reused when the WriteEZ5 GUI is restarted 10 Execute Set the YRPBRL78G13 board to the normal operation mode by applying the application following settings mmu2 E o ESIS SSP T7 F A fee aep se GER 25 oj SU GND YRPBRL78G13 www renesas com sr be Jumper Positions Figure 31 Stick in Normal Operation Configuration lt 11 gt Restarting the When the WriteEZ5 GUI is restarted the latest settings should be applied GUI User Manual RO1UHO243ED0000 On Board Debugging OCD Chapter 8 On Board Debugging OCD
61. mode for intermittent operation Typical current consumption values for the RL78 Stick configuration in this mode is shown in table 14 below pL 8 G13 J Real Time Clock 9 Memory Dem H Low Power self Test Power Modes AGC Trigger Conditions during Snooze Mode Puts the EL7 amp into Low Power Halt Mode 1 Select voltage Limits 2 Select Trigger Intervals Click Button to enter Mode wg Adjust Pot to release Mode Puts the EL7 amp into Lou Power Stop Mode Trigger Intervals Set the trigger limits 8 5 Second e SHOOZE Figure 54 HALT Mod 9 6 2 STOP Mode 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 G13 is still operating the RTC using the 32 768 KHz sub system clock Typical current consumption values for the RL78 Stick configuration in this mode is shown in table 14 below pL 78 613 Real Time Clock Memory H Low Power 4 self Test Low Power Modes ADC Trigger Conditions during Snooze Mode Puts the EL7 amp into Low Power Halt Mode 1 Select voltage Limits Select Trigger Intervals HALT Click Button to enter Mode Adjust Pot to release Mode Puts the EL7 amp into Low Power Stop Mode Trigger Intervals Set the trigger limits 8 5 Second e SNOOZE RO1UHO243EDO0000 Rev
62. munications 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 endeavors to improve the quality and reliability of its products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain
63. na 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 Siemensstr 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 sii co jp Seiko Instruments Taiwan Inc 6F No 236 Sec 2 Jianguo N Rd Taipei 104 Taiwan RZENESAS 73 RO1UHO243EDO0000 REVISION HISTORY RL78 G13 Stick User s Manual Hardware Rev Description 19 i AAA EE User Manual RENESAS RO1UHO243ED0000 RL78 G13 Stick User s Manual Hardware Publication Date Published by 010 0243 00000 Rev 1 0 User Manual Rev 1 00 Mar 25 2011 Renesas Electronics Corporation LENESAS 75 RO1UHO243ED0000 LENESAS sue one Renesas Electronics Corporation nupynwwrene 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
64. nd will be supported 4244 7 User Manual RENESAS RO1UHO243EDO0000 Introduction e Full documentation is included for the Renesas software tools and the RL78 G13 device YRPBRL78G13 is not intended for code development Renesas does not allow and does not support in any way any attempt to use YRPBRL78G13 in a commercial or technical product 1 1 2 System requirements HOST PC A PC supporting Windows XP Windows Vista or 7 is required for the GUI and development tools installation A Pentium processor with at least 1 GHz CPU performance with at least 256 Mbytes of RAM allowing you to fully utilize and take advantage of the product features 350 Mbytes of free disk space and an additional 10 Mbytes of free disk space on the Windows system drive A web browser and Adobe Acrobat Reader to be able to access all the product documentation Host interface USB interface that enables communication based on USB Ver1 1 or later 1 1 3 Package contents YRPBRL78G13 USB 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 YRPBRL78G73 starter kit 1 1 4 Trademarks IAR Embedded Workbench VisualSTATE IAR MakeApp and C SPY are registered trademarks of IAR Systems AB Microsoft and Windows are reg
65. ng the 6 1 Select Device gt Setup from the menu bar or click on the Setup icon programming The environment Standard tab of the Device Setup dialog box is opened E Device Setup Standard Advance Parameter file Hoscomecion Supplyoscilator Port Frequency Im MHz Speed Multiply rate Operation Mode Code ista C Chip Dato Block Stat z sm x C Ares End wl mimi Show Addres Voltage settings V A Target Reset Message Figure 24 Standard Device Setup Dialog Box 6 2 Click on PRM File Read to open the parameter file selection window C Program Files Renesas RPB RL78G13 WriteEZ5 for RL78G13 PR5 RL78G13_V100 Select the parameter file R5F100LE pr5 then click on Open Look in FR5 RL 8h13 W10O j R5F10DAA prs Sprint op lnetinnLc ms Ed RSF1008C pr5 i RSE1004C pr5 RSF1O0FA ors RSFIDOLD pr5 RSF1008D pr5 Recent R5F1008D pr5 ES RSFi00Fc pr5 IK RSFIODBE RRE RSFIODAE pro ASFI00LJ pr5 8 RSF1QOFE prs R5F1DDMJ pr5 RSF1OOBC prs RSF100FJ pr5 RSF100PJ pr5 RSFIODED pr Ed ReF10OGA prs E ASF10064 pr5 RSFIDDEE pr5 RSFIDOGC pes Si RSF1006C prs RSF1OOCA prs ERSFIOOGD prs RSF1006D pr5 RSFLOOCC prs EJRSFIOOGE prs 8 RSF1006 pr5 RSF1DOCD prs 8 RSF100G2 pr5 R5F1DD7A pr5 RSFIOOCE prs RSF1OOJC pr5 RSF1007C prs
66. nual RENES RO1UHO243EDO0000 YRPBRL78G13 Board Components 3 1 11 Seiko Instruments Inc Low Power 32 KHz Resonator The YRPBRL78G13 board is fitted with an external 32 KHz resonator X2 characterized specifically for the RL78 G13 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 G13 family For more technical details on this device and contact details for Seiko Instruments please refer to chapter 13 3 1 12 RL78 G13 Memory Map The RL78 G13 memory layout is shown in the table below Free for user application software OxFEEFF Mirror OxF2000 LS OxFTFFF Data flash memory OxF 1000 OxOFOFFF Access prohibited area OxF0800 Free for user application C lt software OxEFFFF Access prohibited area 0x10000 Free for user application software Table 8 RL78 G13 Memory Map User Manual RO1UHO243EDO0000 Getting Started Chapter 4 Getting Started The default setting of the YRPBRL78G13 board is set for demonstration use with the GUI The DVD included and quick start guide will take the user through the installation procedure Initially the user will be required to select between the two installation options that are available to the user 1 Quick Start Installation This will just install the GUI drivers and associated documentation 2 Complete Installation This will
67. operation and usage of the on board debug function of the YRPBRL78G13 board First highlight the upper folder called YRPBRL78G13 IAR OCD Project in the workspace window Then select Project gt Options from the pull down menus Next select the category Debugger Make sure that the driver is set to in order to use the on board debug function of the YRPBRL78G13 board R01UHO243ED0000 Rev 1 0 RZENESAS 46 User Manual RO1UHO243ED0000 Figure 36 Figure 37 On Board Debugging OCD Options for node YRPBRL786G13 IAR OCD Project Category General Options compiler Assembler Custom Build Build Actions Linker Debugger 1 20 IECLIBE Simulator TK MICRL YS Factory Settings setup Extra Options Images Plugins Driver Hun to main Setup macros C Use macro file A Device description File Override default IAR Debugger Options Next the correct linker settings of the demo project will be checked This can be done in the Linker category as shown below Select the Config tab and check that the linker command file md_Inkr5f100le xcl is selected This file is used by the linker and contains information on where to place the different sections of code and data that may be used within the demo project Options for node YRPBRI 78G13 IAR OCD Project Category General Options compiler Assembler Custom Build Build Action
68. ply only Board can only be operated as stand alone only no USB power connection When external power supply Vext is used make sure that you follow these guidelines Solder bridge is closed Default is open Solder bridge NF1 is closed to power the 78KO USB circuitry Default is closed 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 used then it can damage the board Please refer to the schematic and the assembly drawing of the board to locate the above components RO1UH0243ED0000 Rev 1 0 stENESAS 16 RO1UH0243ED0000 YRPBRL78G13 Board Components Vext GND Table 3 External Power Supply Connector J4 Note Pin number 1 is marked with a square on the assembly drawing 3 1 5 Current Measurement J3 Jumper J3 connects the 5V power supply to the Vpp pin of the RL78 G13 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 starter kit 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 3 1 6 E1 Emulator Connector 45 Jumper J5 not fitted is provided to allow debugging and programming of the RL78 G13 microcontroller using the E1 OCD emulato
69. r This function allows the user to be able to debug an application and make use of the UART2 that can use the Renesas Virtual UART to interface to the PC For this function a 14 way 2 x 7 standard pitch connector needs to be mounted and connected as shown below TCK GND ITRST EMLE TDO NC MD1 VCC TMS MDO TDI GND 5 GND E1 connector unmounted 1 Interface Connector Figure 3 E1 Emulator Connection 3 1 7 Programming Connector J10 910 is provided for production programming of the uPD78F0730 78 0 8 bit microcontroller during manufacturing The 78K0 USB device should not be reprogrammed in order to ensure the USB interface working correctly with the GUI 6 0 2 42 22 User Manual RENESAS RO1UHO243EDO0000 YRPBRL78G13 Board Components 3 1 8 Mini B USB Interface Connector USB1 mini B USB connector allows connecting the IAR C SPY debugger or the WriteEZ5 Flash programming software to the YRPBRL78G13 board in order to debug or program application software to the RL78 G13 device The board power supply is also provided by this connector Additionally connector USB1 connects UART2 of the RL78 G13 device to the host system Figure 4 Connector USB1 Mini USB B Type Connector Pin Configuration Be Table 4 Pin Configuration of mini B USB Connector USB1 For connection with the host machine YRPBRL78G13 can be plugged directly into an available USB port 3 1 9 External Connectors J1 and J2 J1
70. r control file are located in the lapplilet3 src The sample project uses two targets One target is the Debug directory Debug that holds all information for debugging purpose and the other one is the Release target directory Release contains the programmable file i e the Intel HEX file for programming the RL78 G13 internal Flash memory by using the WriteEZ5 software All output files of the development tools for the corresponding target are generated in the directories Debug and Release For details of using the IAR Embedded Workbench and the IAR C SPY debugger please refer to the IAR Embedded Workbench IDE User Guide EISE User Manual RENESAS RO1UH0243ED0000 On Board Debugging OCD 8 2 2 Functionality The sample project shows a simple demonstration of Interval Timer usage ADC usage and interrupts handling Interval Timer is setup to generate an interrupt every 200 milliseconds which toggles the LED on P77 When turning the potentiometer to increase the ADC input voltage the timer interrupt interval is reduced which results in toggling the LED faster 8 2 3 Required Resources The sample program uses the following peripheral resources of the R5F100LE device e Interval Timer ADC Potentiometer input Port 7 Pin 7 P77 8 2 4 Project Structure The project consists of the following software modules 8 2 4 1 System Initialization All the system initialization including Clock ADC Interval T
71. rmation 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 RO1UHO243EDO0000 Rev 1 0 User Manual 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 equipment com
72. s Debugger El E20 IECLIBE Simulator TK MICRLYS Factory Settings Config Output Extra Output List tidefine Diagnostics Check Linker configuration file Override default PRO DIAS applets sre md cl Override default program entry Entry symbol Defined by application Search paths one per line TODLEIT DIRTALIB Haw binary image File Symbol Segment Align JI _ JL IAR Linker Options RO1UHO243ED0000 Rev 1 0 User Manual RTENESAS 47 RO1UHO243ED0000 Now after everything has been setup correctly it s time to build compile link the demonstration project Close the Options menu and select Rebuild All from the Project menu If the project is compiled and linked without errors or warnings it can now be downloaded to the YRPBRL78G13 board and debugged To start the IAR C SPY debugger select the option Debug from the Project menu or press the Debugger button In the next step the TK hardware setup has to be configured before downloading a new application Press the OK button to enter the hardware setup menu Set the configuration as show in the figure below and start the download by pressing the OK button Emulator has to be configured before downloading a new application Press OK to enter Emulator Hardware Setup On Board Debugging OCD Figure 38 TK Hardware Setup Menu 1 2 TK Hardware Setup R5F10
73. start and full installation 6 4 Sample Programs Installation The DVD installer will automatically install the sample debugger programs and the demonstration source code when the full installation is selected If the quick start installation was previously selected then please insert the DVD again and select the full installation The programs will be located in the following directories on the host PC C Workspace RPB RL78G13 IAR Sample Projects Debugging Project C Workspace RPB RL78G13 IAR Sample Projects GUI Demo Source Code RO1UHO243EDO0000 Rev 1 0 TENESAS 25 User Manual RO1UHO243EDO0000 6 5 Note 6 5 1 c1 Software Installation USB driver installation In order to use the YRPBRL78G13 board in combination with IAR C SPY debugger or the WriteEZ5 Flash programming GUI software Renesas Electronics Starter Kit Virtual UART USB driver must be installed on the host machine Please follow according to version of Windows OS Please check your Windows version and follow the instructions Installation on Windows XP Chapter 6 5 1 Installation on Windows Vista gt Chapter 6 5 2 Installation on Windows 7 gt Chapter 6 5 3 Please insert the YRPBRL78G13 DVD in your DVD drive in order to proceed with the USB driver installation After the installation please go to Chapter 6 5 4 Confirmation of USB Driver Installation Installation on Windows XP When the YRPBRL78G13 board is connected to the host machine
74. tional 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 end 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 xxx xx Group Make sure to refer to the latest versions of these documents The newest versions of the documents listed may be obtained from the Renesas Electronics Web site Document Document Data Sheet Hardware overview and xxx xx Group RO1DSxxxXEJXxxxx electrical characteristics Datasheet Hardware specifications pin assignments memory maps peripheral function
75. to J2 are connectors for external user hardware A standard 0 1 pitch 30 way single row straight headers can be mounted to bring all I Os for usage Please read the user s manual of the RL78 G13 device carefully to get information about the electrical specification of the available ports DU C2 mSSP T7 F es ug 12 2 YRPBRL78G13 www renesas com quoi BU GND m e Figure 5 External Connectors J1 and J2 RO01UHO243ED0000 Rev 1 0 AS 18 User Manual RENES RO1UHO243EDO0000 YRPBRL78G13 Board Components 4 P11 SI00 RxD0 TOOLRxD SDA00 6 TXD P13 TXD2 SO20 8 P15 55 050 9 Ple P16 TIO1TOOVINTPS 24 P75 5 5 1 5 01 25 Pra JPTAKRAINTPS SIONSDAOT 1 26 P73 5041 27 P72 JPT2KR2 SO20 28 P71 P71 KR1 S121 SDA21 7 29 P70 2 5 4 30 NC 7 Table 5 Connector J1 6 0 User Manual RENESAS RO1UHO243EDO0000 YRPBRL78G13 Board Components 1 GND VSS EVSS 2 VDD VDD EVDD P140 141 p p P140 P140 PCLBUZO INTP6 TT P141 PTAPCLBUZMINTP7 2 5 _ 1 0 JPOOTIOO Pot X JPOT TOO 22 7 02 X JPOZANMT SOTUTXDi LI POS POSANMO SHORXxDI SDATO TI JPO4SCKTI0 SCLTO y 10 P1390 CE o O 11 X P20 ANIDAVREFP 12 PVANVAREM aO 17 13 P22 P22 ANI2 e 14 23 PBWANB __ _
76. to the YRPBRL78G13 IAR Project project to show files that are part of the project The screen should now look similar to this IAR Embedded Workbench IDE File Edit View Project Tools Window Help De Wor ks pace e Files E applilet src CG CG ad user CG itc 0 it user c LOG porto L user src LE I Output E CG_port_user c E CG_system c CG_system_user c void main void RC mano CG_systeminit c E fj YRPBRL78G13_IAR_OCD_Project Deb Abstract This function implements main function Parameters None Returns Start user code Do not edit comment generated here Peripheral start function calls IT Start Start Interval Timer AD ComparatorOn Enable ADC voltage comparator ADCI AD Start Start ADC ADCS 0n 4 Endless control loop while 117 if ADC done MD TRUE ADC conversion com ADC done MD CLEAR Clear ADC result ur YRPBRL78813 IAR DCD Project ANE rralwe sala rralnma y Messages StuffiRenesas Microcontrollers Starter Kits RL78 USB KitSOFTWAREYYRPBRL78G13 Projectiappli Errors O Warnings O Figure 35 IAR Project Workspace The next step is to check the settings of the IAR Embedded Workbench that have to be made for correct
77. to the target device then click on the button Open E5 WriteEZ5 File Device View Help PA gt gt FlashOpenning evice Flash Open gt gt ParameterFile Reading Version Success Head ParameterFile gt gt LoadFile eading Success read HEX file El AE Parameter file Mame H5F1 DLE Version 1441 00 Load file Mame THPFBHL78G13 STICK Date 2011 02 21 12 32 55 Chksum 3245h Area OOO000h 004126h Connection to device Port COM2S Speed 1152006 Range Block 000 063 000 003 Freg Internal OS E Multiply 1 00 7 n Figure 29 Completion of HEX File Download 8 Auto procedure Select Device gt Autoprocedure EPV form the menu bar or click on the EPV command Autoprocedure icon When the Autoprocedure EPV command is executed Blank Check Erase gt Program and Flash Internal Verify are executed sequentially for the RL78 G13 device E WriteEZ5 File Device View Help Ba URA block 000 to 003 Date blank check finish Device skip erase Mame R5F100LE Flash Programming Start Version 1 10 Flash Programming 105 Flash Programming 2155 Flash Programming 302 Flash Programming 4055 Flash Programming 505 Flash Programming BLU Flash Programming lt OE Parameter file Mame FSF1O0LE Version 1 00 Flash Programming lt 0 Flash Programming lt 90 gt Load fi
78. ty rights 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 o 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 info
79. unit also called general purpose CRC which performs a CRC check only on a desired set of data 2 RAM and SFR Guard Protection This provides a write protection function on a part of the internal SRAM and the SFR registers 3 System Clock Measurement This allows the measurement and monitoring of the internal system clock Each of them is demonstrated in the GUI 1 CRC In the CRC Test box click the Automatic button and the background CRC result is calculated on the first 32KB section of the code flash memory and will be displayed under the button To initiate the peripheral CRC click on the Enable button Please refer to the Memory Demo tab as the CRC check is performed on the 64 bytes of the data flash displayed in this window Each time a new set of 4 bytes is written in this 64 bytes data flash window both the GUI and the RL78 G13 calculate the CRC check and should display the same results 2 RAM and SFR Guard The RL78 G13 features two guard functions write protect which protect part of the internal SRAM and the SFR registers Select one of them and then click the Enable button When selecting the RAM guard the first 512 bytes of the RAM memory are protected therefore the following data reported to the GUI no longer change The data is still sent to the GUI o ADC measurements both external voltage and internal temperature o registers user RAM area in this window will remain
80. unouiun sapesy uid fem De payunowun sapeay Ewe juarzno IOJ chung Ajddng Buren uya jndur AS eq an psquncuuun Ac 1IMEJBO 21400 TEMJITA ETA UJO asn OM ODO LEWOS E LIS ALUNOS LLOSf d LNW Sd kd SdLIMI VOOJ LOLL 9ILJ UTISHI S kd Uc vase L E Ld OX LIOO LOG TOO L OCIXH AOOISTT Ld 00 1925 00542 S401 d BLINVIZFLd 04d kid aid bid L 801L 80d DOE LNU PHY LOTOS LIHIS SOOL SOLL SOd o Le Si E HM eO S CH 80 LEMD S O MM LETOS LEMOS ZH EO LH Ed INI OEd levos PINW Ped BINV SZd SINW S d EIN Weed INW Ecd IN J3Av HNY EZd E Z ENNA TENJITA SL St MO asn 04 090 925 Fid G Ld Lid HM FJLNIZOOJL EOLL LE OW135 09d Bd LNIIG ON NATAJ SdLNVOZNUTDdJ OF Ld OLwOS LOXHOHIS 9 LIN VEOJ LOX L 0LOS DOOL LOd 0L12S 0L42S F0d 00117004 dd3HAV O0INV OZd Ad LNVE 2181 3108390 INwn TEMJITA Z T ETA MO asn 07090 SS d JIJu X IO ACXICC Od LNI ZE kd SM Ox ale Ed 0100 Ltd DOLO Fd POOL POLLcrd ttd amp LINY UC Ed E E ren TENJITA T I NL ETA MDO gsn UM 000 Figure 59 YRPBR
81. uter for driver software advanced Locate and install drrver software manually Figure 13 Install from a Specific Location Windows Vista 10 0243 0000 Rev 1 0 TENESAS 29 User Manual R01UHO243EDO0000 Software Installation 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 78G13 USB Drivers Win2k For 64 bit Operating Systems select this location C Program Files Renesas RPB RL 78G13 USB Driverswlh 4 Click Next gt Browse for driver software on your computer Search for driver software in this location Include subfolders Figure 14 Search Location Specification Windows Vista lt 3 gt Click Install when the driver has been found 7 1 Windows Security Would you like to install this device software Renesas Electronics Corporation Ports C ech Publisher Renesas Electronics Corporation Always trust software from Renesas Electronics Don t Install e Corporation EI You should only install driver software from publishers you trust How I decide which device software is safe install Figure 15 Installation Confirmation Windows Vista RO1UHO243EDO0000 Rev 1 0 LENESAS 30 User Manual RO1UH0243ED0000 Software Installation lt 4 gt Click to close the installation wizard The software for this device has
82. 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 3 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 4 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 execution is in progress

Download Pdf Manuals

image

Related Search

Related Contents

MSI Cubi W3205U2GXXDX81MB  Whirlpool 8316566 Washer User Manual  Étalonnage - ColorMunki  苓H麦麦C麦ン キャスターセ ッ ト取扱説明書  Sony-CCDTR818  Philips Sonicare AirFloss Pro HX8331  Lincoln Electric IM845-A User's Manual  Cortasetos  【お詫びと訂正】 取扱説明書におきまして、記述の間違いがございました  Model 7002-HD-MUX1 Differential Long Life Quad 1 x 40  

Copyright © All rights reserved.
Failed to retrieve file