Home
Renesas Promotional Board for RL78/L12 Demo User Manual
Contents
1. s e ga What s New Find out what is new On the Welcome tab select Release notes al Release notes Cygwin Heap Error For some 32 bit Windows 7 machines a build error may occur when using cygwin GNU compilers due to virtual memory allocation 1ssues This can happen for any project and 1s described in the following technical note http support code red tech com CodeRedWik1 VirtualAllocPointerNull R20UT2494EG0100 Rev 1 00 AS 55 Jan 21 2013 ENES YRPBRL78L12 11 Low Power Measurements Chapter 11 Low Power Measurements The different power consumptions were measured under the peripheral states shown in the table below An Agilent U1241B multi meter serial MY51140128 was used to measure the power The results obtained cannot be guaranteed to be exactly the same for each board but should not be significantly different It is good to note that the result can be affected by the test environment and equipment used The YRPBRL78L12 was designed to support two of the three available voltage generation methods internal voltage boosting and capacitor split The third method external resistance division is not supported During normal power mode RUN the internal voltage boosting method is used as it provides a better display and wider viewing angle compared to the capacitor split method The capacitor split method proved to be better in terms of power consumption as it uses less current compared to the in
2. Bytes to write in the Data RAM Content section then click Write Attempt to read the written bytes by clicking on Read The bytes read from RAM will not change Switch to the Self Test tab and disable RAM guard Switch back to the Memory Demo tab and attempt to read the bytes Notice that the bytes read from RAM does not match the bytes written to RAM SFR Guard LED1 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 LED 1 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 1 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 3 CRC To initiate the RL78 L12 s peripheral CRC enable DMAC to RAM transfers To initiate the GUI CRC click on the Enable button under the CRC Test Please refer to the Memory Demo tab as the CRC check is performed on the 64 bytes of the RAM memory content displayed in this window Each time a new set of 4 bytes 1s written in this 64 bytes memory window both the GUI and the RL78 L12 calculate the CRC check and should display the same
3. 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 13F No 363 Fu Shing North Road Taipei Taiwan Tel 886 2 8175 9600 Fax 886 2 8175 9670 Renesas Electronics Singapore Pte Ltd 80 Bendemeer Road Unit 06 02 Hyflux Innovation Centre Singapore 339949 Tel 65 6213 0200 Fax 65 6213 0300 Renesas Electronics Malaysia Sdn Bhd http www renesas com Unit 906 Block B Menara Amcorp Amcorp Trade Centre No 18 Jin Persiaran Barat 46050 Petaling Jaya Selangor Darul Ehsan Malaysia Tel 60 3 7955 9390 Fax 60 3 7955 9510 Renesas Electronics Korea Co Ltd 11F Samik Lavied or Bldg 720 2 Yeoksam Dong Kangnam Ku Seoul 135 080 Korea Tel 82 2 558 3737 Fax 82 2 558 5141 O 2013 Renesas Electronics Corporation All rights reserved Colophon 1 3 RL78 L12 ENESAS Renesas Electronics Corporation RO2UT2494EG0100
4. SampleProjects GUI Demo Source Code Y RPBRL78L12_LCD_Demo_SW HardwareDebug Note The projects found in the location C Workspace SampleProjects should not be modified ES Renesas Flash Programmer Unsupported Freeware Version File Tool Microcontroller Help Microcontroller R5F1ORLC User Data area User Boot area Browse Command Auto pro cedure E P Start This software is the no charge free version This is unsupported vr Clear Output Panel Figure 14 Selecting a user program lt 7 gt Auto procedure EP command execution R20UT2494EG0100 Rev 1 00 AS 23 Jan 21 2013 ENES YRPBRL78L12 Click the button When the Start button is Clicked Blank Check Erase device The result of the operation is displayed at the end 7 Renesas Flash Programmer Program are executed sequentially for the RL78 L12 n Es Renesas Flash Programmer Unsupported Freeware Version File Tool Microcontroller Help Microcontroller RB5FIORLC User Data area YRPBRL78L12_ LCD Demo SW mot Command Auto procedure E P A PASS Program Data flash 10 Autoprocedure E P PASS omnes End Sutoprocedure E P lt o Disconnect ssssssssss T Clear Output Panel Figure 15 Flash Programming lt 8 gt Terminating the GUI Select File Exit to terminate the GUI software All settings executed are saved so that those settings can be reused when the RFP GUI is restarte
5. CENESAS RL78 L12 Group Renesas Promotional Board Demo User Manual RENESAS MCU RL78 Family L12 Series 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 www renesas com Rev 1 00 Jan 2013 10 11 12 Notice 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 Renesas Electronics has used reasonable care in preparing the information included in this document but Renesas Electronics does not warrant that such information 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 Renesas Electronics does not assume any liability for infri
6. Changing the USB port connection will result in the COM port number changing as well Refer to Chapter 10 for notes on manually changing the COM port number Action View Help i amp gt a Batteries i Computer gt Disk drives gt MG Display adapters gt 3 DWDCD ROM drives gt Ai Human Interface Devices og IDE ATA ATAPI controllers gt En Keyboards gt PA Mice and other pointing devices gt A Monitors gt EE Network adapters E Portable Devices a 7 Ports COM amp LPT Y W ECP Printer Port LPTD gt a Processors gt E Sound video and game controllers ie System devices ya p Universal Serial Bus controllers Figure 7 Device Manager Hardware Modification Scan should not be executed whist communicating with the target device Please refer to Chapter 9 Troubleshoot if the driver fails to install correctly R20UT2494EG0100 Rev 1 00 Jan 21 2013 2tENESAS i YRPBRL78L12 7 Renesas Flash Programmer Chapter 7 Renesas Flash Programmer This chapter explains the basic operations of the Renesas Flash Programmer RFP V2 00 01 GUI for programming the YRPBRL78L12 LCD board This chapter covers how to start the system execute the EP command Erase Program and program the target RL78 L12 device The Renesas Flash programmer is not installed by default The executable file needed to install the programmer can be found in the Renesas Flash Programmer folder in the root folde
7. Close Device Manager lt 10 gt Disconnect then reconnect the USB cable When this product is connected with a personal computer the Add New Hardware Wizard screen is displayed Cause If the USB connector of this product is not inserted into the USB port used at the installation time but into another USB port this product may be recognized as a new hardware item Action Install the driver by referring to Chapter 6 Software Installation Alternatively the driver can be installed manually by following the provided guideline below Installation on Windows XP lt l gt When the YRPBRL78L12 LCD board is connected to the host machine the board is recognized by Plug and Play and the wizard for finding new hardware is started Select No not this time and click Next gt Found New Hardware Wizard 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 pennissian Read our privacy policy Can Windows connect to Windows Update to search for software Yes this time only Yes now and every time connect a device 2 No not this time Click Nest to continue Figure 28 Found New Hardware Wizard Windows XP R20UT2494EG0100 Rev 1 00 AS 47 Jan 21 2013 RENES YRPBRL78L12 10 Troubleshooting Select Install from a list or a specific lo
8. 1 1 Main features of YRPBRL78L12 Easy to use device demonstration capabilities YRPBRL78L12 contains elements to easily demonstrate simple l O functions 1 e LED output I O lines UART serial interface together with the key functions such as Real Time Clock RTC ADC DMAC ELC Timers and safety functions Power supply via USB interface YRPBRL78L12 is powered via USB interface No separate power supply is needed although a connector is provided to supply an external power supply if needed Renesas Flash Programmer V2 00 01 Flash programming software Windows based Flash programming software allows the user to select and download application programs to the YRPBRL78L12 LCD board for evaluation purposes Caution Applilet3 is a device driver code generator software tool used to generate device driver code for initializing and using on chip peripherals Please note that the Renesas Applilet3 for RL78 L12 V1 00 00 software is at a preliminary version an can be downloaded from the Renesas website We recommend not upgrading these software tools in order to guarantee operation with the board Documentation is not supplied for preliminary versions but can be downloaded from the Renesas website once final versions are released Any of the software supplied with this product can be updated from the Renesas Tools web site However please be aware that while every effort is made to maintain compatibility between revisions it is not guaranteed that
9. 2 5V or above 2 9V between 2 9V and 4 8V As this is the only way of waking the RL78 in this mode a window will pop up to remind the user to adjust the potentiometer To automatically set the limits adjust the potentiometer click on Auto Limit Only integer values can be used when manually setting the upper and lower limits Use the voltage increment decrement buttons to fractionally increment decrement the limits 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 L12 user manual for more details These are a The wake up voltage can be set to occur inside the specified voltage range b CSIO0 or UARTO reception Renesas Electronics RL78 L12 Low Power Demonstrator q Adjust the potentiometer to a value outside of the specified In Snooze mode limits to wake up the RE The RL 8 checks the value based on the interval setting MAIN RUN NEW N i SNOOZE A D conversion senal d ata reception multiply and division i The consumed power can be operations multiply accumulate i even more than in the operations and DMA re co a pL RA operations are possible oh Peripheral A D conversion and serial data reception are possible Figure 26 SNOOZE Mode R20UT2494EG01
10. 2 General Ine Archive File i Existing Projects into Workspace LO File Systern fe HEW Project El Preferences p E C C b E cvs gt 2 Run Debug t LS Team R20UT2494EG0100 Rev 1 00 AS Jan 21 2013 ENES Cancel 26 YRPBRL78L12 8 Debugging in estudio Select Select archive file The import dialog will now allow you to specify the project to import Import Import Projects Select a directory to search for existing Eclipse projects D Select root directory O Select archive file Projects Select All Deselect All Refresh Copy projects into workspace Working sets Add project to working sets Click Browse The import dialog will open a folder browser to allow you to specify the project to import Locate the master copy of the YRPBRL78L12 Debugging Project from C Workspace RPB RL78L12 Sample Projects Select the YRPBRL78L12_e2studio_Debugging_Project zip file Click Open Click Finish on the import dialog to complete the import procedure lt 3 gt Configure Debugger Connection Once the project has been imported click the arrow to the right of the bug symbol to open the debugger configuration menu and then select Debug Configurations Project Window Help no launch history Debug As Debug Configurations Organize Favorites The Debug Configurations dialog will appear Click the small arrow next t
11. 4 Project Explorer ES Disassembly as R20UT2494EG0100 Rev 1 00 AS 30 Jan 21 2013 ENES YRPBRL78L12 8 Debugging in estudio Expand the src folder to reveal the list of source files Double click the hardware_setup c file to open it Alternatively right click on the file and select Open Ge Outline E Project Explorer x E Disassembly si 7 gt a 15 YRFPBRL78L12_e studio_Debugging_Project g Binaries gt HH Archives gt Hi Includes gt E HardwareDebug gt E Release a 2 3rc gt E Include a 2 source A startup gt c hardware_setun r gt Le interrupt_ha Mew Le Icd_panel c gt e iia gt Le cg _adc c Open With el Open Insert a break point on the R_Systeminit function call inside the HardwareSetup function by double clicking in the blue section on the left hand side of the source code window PRET a e a a AR NARRAR ASAE ARATE AREER AEE AEE EAE EAA Function Name Hardwaresetup Description This function calls function E aysteminit Arguments None Return Value None TET TPP Pa aaa a ao r woid HardwareSetup roid i Disable global interrupts asmi DI Configure all peripherals a R Systeminit i Enable global interrupts asm EI I ERRE ARA RA RAR RARA EERE ERRATA AREER EEA EERE EEA EEE EERE EES End of function Hardwaresetup ERRATA ERA RE TTT AA AAA EA ERA AREA EA RAE AA ARA AAA EA PPP aoa ao ow
12. 9 3 ADC Demonstration coconcncononcncononcncononcnnanononrnnnnnnrnnnnnnrnn narran narran nara rna narran nnrnanann 39 9 4 Real Time Clock Demonstration oococoncncononcnnanoncnnanononnnnnnnnrnnnncnrnnnncnrnnnnnarannncaanann 39 9 5 Memory Demonstration inside dra 40 9 6 Low Power Demonstration cscscsenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenenes 41 61 HATE DVM Ode ai A A dai 42 9062 STOP Mode a dad 42 63 SNOOZE Modena dead 43 9 7 Self Test Functions Demonstration occococcncnccncnonnnnacnanarnanarnncnrnnnnrnnenanarnanarnanarnananzs 44 Chapter 10 TEOUBDICSHOOUING eisista 46 Chapter 11 Low Power Measurements cssecceseeceesesenseseeeeseeeees 56 Chapter 12 Resonator from Seiko Instruments INC 2 0008 57 12 1 Features of the 32 KHz Resonator cccccecceseeseeeeeeeeeesenseneeseesenseaseneeeeesenseaeeneneens 57 12 2 Product Name and Specifications ss0ssesscssessensensensenscnssnnsnenensnesessnesesscesenses 57 123 Wep UR Deoise iat 57 12 4 Seiko Instruments Inc Contact AddresSeS ssssnunnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn 58 YRPBRL78L12 1 Introduction Chapter 1 Introduction The YRPBRL78L12 is a promotional 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
13. Note For the HardwareSetup function to be executed a macro named RELEASE needs to be defined This macro has been defined in the reset_program asm file Click the Restart button circled on the left to restart the target device and code execution The Resume button circled on the right can also be used to resume code execution OrQ OTIO R20UT2494EG0100 Rev 1 00 AS 31 Jan 21 2013 ENES YRPBRL78L12 8 Debugging in estudio Program execution will stop at the break point The main window will show the program counter indicator on the line of code with the break point gt IO ow a N Pp O Function Name HardwareSetup Description This function calls function R Systeminit to initialise all peripherals Arguments None Return Value None ie ee eee eee eee ee eee eee eee eee eee ee eee eee eee eee eee eee eee eee eee eee eee eee eee eee eee ee ee eee ee eS void HardwareSetup void Disable global interrupts asm DI Configure all peripherals R _Systeminit Enable global interrupts asm El Press the Resume button to run the code It will run up to the break point and then halt The position of the program counter is indicated by the highlight line Press the Step In button to step inside the function 2 O i 1 E Ja e The file containing the function will open and the program counter will move to the first
14. sensor The sensor is internal to the RL78 L12 device therefore the measured temperature might not reflect the room temperature The internal reference voltage TYP 1 45V is also displayed on the right hand side of the GUI window For all ADC data requests by the GUI 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 45V Int Ref Voltage ADC result Renesas Electronics RL 8 L12 Low Power Demonstrator fac Home EA Data Logger 1 Real Time Clock Memory Demo P Low Power Self Test Stop External voltage volts l i clear Snapshot 5 06 Reference 1 45 MCU Temperature 2 Snapshot 24 20 RTC Time 20130121 01 01 34 Figure 20 External Voltage 8 Temperature Measurements The graphs keep a history of all the reported values from the RL78 L12 In order to clear the history and get clear readings please click the Clear buttons The graphs then automatically re scale to the displayed data values To see the external voltage changes turn the potentiometer using the potentiometer shaft included To increase the voltage turn the potentiometer in a clockwise direction to decrease the value turn the potentiometer anticlockwise The temperature can be changed by simply touching the MCU with a finger or blowing air over
15. the RL78 device 9 4 Real Time Clock Demonstration This section of the GUI demonstrates the capability of the RL78 L12 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 YRPBRL78L12 LCD promotional board sends the value of the RTC registers to the GUI every second and the values are displayed on the GUI on the right hand side of the lower window When the board is first connected and powered the RTC will start with a default value When the RTC time is synchronised with the host PC by clicking on the Sync button the alarm values will be automatically set to the current date and time The minutes is set to one minute in advance after clicking on 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 To verify the time synchronisation operation Windows Date and Time applet can be launched to check that the values displayed by the GUI demonstration are synchronised with the PC system date and time R20UT2494EG0100 Rev 1 00 AS 39 Jan 21 2013 ENES YRPBRL78L12 9 GUI Description Renesas Electronics RL78 112 Low Power Demonstrator a Home Data Logger Real Time Clock Memory Demo P Low Power w Self Tes
16. workspace Basic mode E Open latest workspace Figure 9 RFP Welcome Dialog Box 5 2 from the menu select Microcontroller RL78 A list off all supported devices will appear in the target Microcontroller Select RSFIORLC 5 3 give the workspace and the project a name The RFP V2 00 01 will by default save the workspace to the following location C Documents and Settings User_Name Local Settings Application Data Renesas Flash Programmer V2 00 01 The User_Name being your logging username to the host PC Click the button Create new workspace Microcontroller Filter Using Target Microcontroler Group Device Name Information RL78 L12 RL78 L12 AL78 L12 RALF8 L13 AL78 L13 AL78 L13 AL78 L13 RL7S L13 RL7S LT3 R5F10AJA R5F10AJC A5F10RLA RSF10RLC ASFA OWL REFIOWLC REFIOWLD RSF1CWLE RSFIOWLF RSFIOWLG Workspace Name Project Name Folder CA Users ituraM App atasLocal Aenesas Flash Programme Figure 10 Device Selection R20UT2494EG0100 Rev 1 00 AS 21 Jan 21 2013 RENES YRPBRL78L12 5 4 From the Tool list box select the communication port that matches the host machine being used Click button Next amp Renesas Flash Programmer Unsupported Freeware Version File Tool Microcontroller Help Microcontroller Communication Interface Tool Interface Figure 11 Port Selection 5 5 The Power Supply dialog box appears Click button Nex
17. 00 Rev 1 Eee E RENESAS Jan 21 2013 YRPBRL78L12 9 GUI Description 9 7 Self Test Functions Demonstration The RL78 L12 includes several new self test and safety hardware functions amongst these are 1 CRC Test The RL78 L12 s performs a Cyclic Redundancy Check on the 64 byte data transferred by the DMAC using the dedicated CRC peripheral This can be compared to the GUI calculated CRC 2 Guard Test RAM guard function is used to protect data in the specified memory space first 128 bytes of RAM SFR guard function is used to protect data in the control registers used by the port function 3 Switch Test Enables the RL78 L12 to detect switch presses using interrupts Pressing switch SW3 will also measure the switch press duration Each of them is demonstrated in the GUI 1 Switch Test The switch test function is used to poll the RL78 L12 for the status of the user switches Click the Enable button to start sending switch state requests Pressing the switches on the YRPBRL78L12 LCD board will update the GUI Note that there may be a delay of up to 1 second between pressing a switch and it updating the GUI 2 Guard Test RAM Guard The 8 bytes of RAM memory displayed in the Memory Demo tab are located in the first 128 bytes starting from address OxFEAOO To enable the RAM Guard option click on the Self Test tab select RAM Guard and click the Enable button Click on the Memory Demo tab specify the
18. 12_e2studio_Debugging_Project Build if required before launching Browse Build configuration Use Active Enable auto build 0 Use workspace settings D Disable auto build Configure Workspace Settings Click the Debugger tab check the settings match those shown in the image below Make sure the Debug Hardware drop down menu is set to El RL78 and the target device to R5F10RLC The rest of the settings are as follows Main Clock Frequency MHz Sub Clock Frequency kHz Monitor Clock Communication Method Power Target From The Emulator Supply Voltage R20UT2494EG0100 Rev 1 00 Jan 21 2013 Using Internal Clock 32 768 System 1 Line Type TOOLO Yes 5 0V stENESAS 28 YRPBRL78L12 8 Debugging in estudio Debug Configurations Create manage and run configurations Erase Flash on Start is Enabled Please Disable this option after sucessful connection E R LF B x B gt Name YRPBRL 8L12_e2studio_Debugging_Project type filter text B Main 5 Debugger _ amp Startup E Common Ey Source fe C C Application E C C Attach to Application Debug hardware El RL78 v Target Device RSFIORLC fe C C Postmortem Debugger E Custom Debug Connection Settings Debug Tool Settings E Debug only Clock E GDB Hardware Debugging Main Clock Frequency MHz Using Internal Clock tha GHS Local C C Launch Sub Clock Frequency kHz 32 768 E7
19. GUI Description From the menu All Programs locate the folder Renesas Electronics Tools YRPBRL78L12 within that folder select YRPBRL78L12 Demo to run the RL78 L12 demo as shown below It is also possible to run the demo by double clicking on the GUI demo shortcut icon on the desktop When the Demo GUI is started the COM port to which the YRPBRL78L12 LCD board is connected should be automatically detected and selected in the Connection section of the Home tab The GUI software should also connect to the YRPBRL78L12 LCD board and start automatically If for any reason this does not happen please select press the Connect button the appropriate port number from the drop down list and then Renesas Electronics RL78 L12 Low Power Demonstrator o fac Home Data Logger Real Time Clock Memory Demo Low Power wi Self Test Connection Port Renesas Starter Kit virtual UART COMP Via Firmware version 1 0 RL78 The True Low Power MCU Platform Low Power Scalable L7 LCD Demo Start RTC Time 2013 01 21 12 19 27 Efficient Figure 17 COM Setup R20UT2494EG0100 Rev 1 00 Jan 21 2013 stENESAS 36 YRPBRL78L12 9 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 E Renesas Electronics RL78 112 Low Powe
20. HEW Debugging Monitor Clock em Renesas GDB Hardware Attach Connection with Target Board E Renesas GDB Hardware Debugging Communication Method 1 Line Type TOOLO E7 YRPBRL78L12_e2studio_Debugging_Project Power Target From The Emulator MAX Yes Renesas GDE Simulator Debugging Supply Voltage 5 0 Flash Current Security ID HEX D0000000000000000000 Permit Flash Programming Yes Use Wide Voltage Mode Yes Erase Flash ROM When Starting Yes r Filter matched 12 of 12 iterns eve lt 4 gt Build and Download the Sample Code Once the debugger configuration has been verified click Close and select Cancel if prompted to save the settings Click on the small arrow next to the Manage Configurations button sundial to show the current build configuration Ensure that HardwareDebug is selected PE C C e2stucio AAA File Edit Source Refactor Navigate Search Project Run Window Help O E Bf rea Go AS 0 Q gt ic Yo 1 HardwareDebug 2 Release Click on the small arrow next to the Build Configuration button hammer to show the build configuration menu Ensure that HardwareDebug is selected Clicking this will start the project build process File Edit Source Refactor Navigate Search Project Run Window Help bi M4 ae SB Sr B 20 9 Iv 1 HardwareDebug Once the sample code has been built click the bug icon to downl
21. ace e2Studio stores your projects in a folder called a workspace Choose a workspace folder to use for this session Monspace Use this as the default and do not ask again ED Administrative privileges are required for correct operation of e2Studio on Windows 7 Please ensure you have appropriate privileges i e Right click renesas eclipse exe and choose Run as Administrator Do you want to continue The e studio welcome splash screen will appear Click the Go to the workbench arrow button on the far right ES C C e2Studio ees File Edit Source Refactor Navigate Search Run Project Window Help ED Welcome 3 ty Welcome e2 studio A 2 ae aie R20UT2494EG0100 Rev 1 00 AS 25 Jan 21 2013 ENES YRPBRL78L12 lt 2 gt Import Project Once the e studio environment has initialised right click in the project explorer window and click Import 8 Debugging in estudio r C C e2Studio File Edit Source Refactor Navigate Search Run Project Window Help rie EP 6 6 8 6 4 amp B F O Q g Import 24 Export 2 Refresh FS The Import dialog will now show Expand the General folder icon and select Existing Projects into Workspace then click Next Select Create new projects from an archive file or directory select an import source type filter text a
22. 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 YRPBRL78L12 promotional board R20UT2494EG0100 Rev 1 00 AS 9 Jan 21 2013 ENES YRPBRL78L12 2 YRPBRL78L12 System Configuration Chapter 2 YRPBRL78L12 System Configuration The YRPBRL78L12 system configuration 1s given in the diagram below CEA gt USB o YRPBRL78L12 o J REC N J LIN Y ANUN Host PC Figure 1 YRPBRL78L12 System Configuration 2 1 YRPBRL78L12 YRPBRL78L12 is a promotional board for evaluating the new Renesas RL78 L12 family of devices The device used is the RL78 L12 RSFIORLCAFB The board can be directly connected to the host system via a USB port The host system allows execution of the Demonstration program on the RL78 L12 device in combination with the supplied demonstration GUI As default the RL78 L12 is using the 24 MHz internal high speed oscillator but the YRPBRL78L12 LCD 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 2 2 Host Computer T
23. are performed by the 10 bit ADC of the RL78 L12 The graphs can be re initialized 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 R20UT2494EG0100 Rev 1 00 AS 37 Jan 21 2013 RENES YRPBRL78L12 9 GUI Description lt 2 gt Real Time Clock This section displays the date and time reported by the on board RTC The RL78 L12 RTC registers can be synchronised with the PC system date and time by clicking the Sync button The user can also set and enable the interval interrupt used to toggle LED1 and the alarm functions lt 3 gt Memory Demo This section displays the data 64 byte RAM content written to by the DMAC and then read from the RL78 L12 RAM variable memory An 8 byte user area can also be written and read by the user RAM content is not lost even when the RL78 L12 enters the lowest power mode STOP mode providing power 1s not removed from the board lt 4 gt Low Power Low Power Mode Selection Three different standby modes are implemented in the RL78 L12 device HALT mode STOP mode and the new SNOOZE mode Buttons are used to switch the operational mode of the RL78 L12 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
24. board and then plug it back and restart the GUI the RAM memory content will be re initialised and the window will show the data being written User data can be written to the internal RAM of the RL78 L12 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 L12 To read the data back click the Read button and the same internal RAM location is read by the RL78 L12 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 L12 R20UT2494EG0100 Rev 1 00 AS 40 Jan 21 2013 ENES YRPBRL78L12 9 GUI Description Fr Renesas Electronics RL78 L12 Low Power Demonstrator Y Real Time Clock Memory Demo F Low Power gt Self Test Memory Content CRC CRC GUI 0x5559 RL78 0x5559 Mode pMACtoRAM v RESULTS OA OB OC an cree DMAC TRANSFER FF FF FF DATA FF FF FF FF FF FF Data RAM Content DATA READ DO 01 02 03 04 05 06 07 FROM Bytes to write oo OO OO 00 00 oo oo loo Write DATA WRITTEN TO RAM Bytes read oo 00 00 00 00 00 00 00 Read RAM RTC Time 2013 01 21 12 21 51 Figure 22 DMAC and RAM Content 9 6 Low Power Demonstration The RL78 L12 supports 3 low power modes that the GUI utilizes and demonstrates HALT STOP and SNOOZE F
25. cation Advanced and click Next gt Found New Hardware Wizard This wizard helps you install software for USB Device ff your hardware with an installation CD 182 or floppy disk insert it now What do you want the wizard to do O Install the software automatically Recommended 2 Install from a list or specific location Advanced Click Next to continue ma lia ames Figure 29 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 RL78L12 USB Drivers win2k Click Next gt Found New Hardware Wizard a gt Please choose your search and installation options Search for the best driver in these locations Use the check boxes below to limit or expand the default search which includes local paths and removable media The best driver found will be installed Search removable media floppy CD ROM Include this location in the search O Dont search will choose the driver to install Choose this option to select the device driver from a list Windows does not guarantee that the driver you choose will be the best match for your hardware Figure 30 Search Location Specification Windows XP R20UT2494EG0100 Rev 1 00 AS 48 Jan 21 2013 ENES YRPBRL78L12 10 Troubleshooting lt 3 gt Click Continue Anyway to conti
26. ct generates uses and can radiate radio frequency energy and may cause harmful interference to radio communications However there is no guarantee that interference will not occur in a particular installation If this equipment causes harmful interference to radio or television reception which can be determined by turning the equipment off or on you are encouraged to try to correct the interference by one or more of the following measures ensure attached cables do not lie across the equipment reorient the receiving antenna increase the distance between the equipment and the receiver connect the equipment into an outlet on a circuit different from that which the receiver is connected power down the equipment when not in use consult the dealer or an experienced radio TV technician for help NOTE It is recommended that wherever possible shielded interface cables are used The product is potentially susceptible to certain EMC phenomena To mitigate against them it is recommended that the following measures be undertaken The user is advised that mobile phones should not be used within 10m of the product when in use The user is advised to take ESD precautions when handling the equipment The Renesas Promotional Board does not represent an ideal reference design for an end product and does not fulfil the regulatory standards for an end product How to Use This Manual 1 Purpose and Target Readers This manual is designed to provide th
27. d lt 10 gt Restarting the GUI When the Renesas Flash Programmer V2 00 01 GUI is restarted simply reopen the latest saved workspace R20UT2494EG0100 Rev 1 00 Jan 21 2013 stENESAS 24 YRPBRL78L12 8 Debugging in estudio Chapter8 Debugging in e studio lt 1 gt Create Workspace The two projects provided can be debugged in e studio using the on board debugging feature via a USB cable connected to CN2 USB connector Ensure to configure the board as shown in Table 2 Section 3 1 2 Debugging can also be achieved using an El not supplied connected to CN4 not fitted The project located in the folder Debugging Project does not require a demo GUI and allows the user to debug the YRPBRL78L12 hardware The project located in the folder GUI Demo Source Code cannot be fully debugged without connecting to the demo GUI Connecting to the GUI is not possible when debugging using the on board debug feature The steps provided in this section use the Debugging Project to help the user to familiarise with the estudio debugging environment Start estudio by selecting it from the Start Menu Start gt All Programs gt Renesas Electronics e2studio gt Renesas e2studio The first dialog that will appear will be the Workspace Launcher Click Browse and select a suitable location to store your workspace using the Create New Folder option as necessary Click OK Workspace Launcher Select a worksp
28. de Put the RL into Low Power Halt mode Set ADC trigger conditions voltage limits Auto Limit Upper 3 9 Lower 2 3 Put the RL into Low Power Stop mode Sample interval one Second Stop Turn off LCD Put the ALF into Snooze mode Snooze ARTE Time 2012 11 13 12 48 47 Figure 24 HALT Mode 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 L12 1s still operating the RTC and the LCD driver using the 32 768 KHz sub system clock The user is given the option of turning off the LCD operation to further reduce power A switch press is required to exit STOP mode Renesas Electronics RLYS L12 Low Power Demonstrator a Press a switch to exit Stop mode In Stop mode MAIN RUN ero o ura NEW SNOOZE A D conversion serial data reception multiply and division AT The consumed power can be Y operations multiply accumulate Y reduced even more than in the operations and DMA ee A d operations are possible J 1 A D conversion and serial data reception are possible a IRA Figure 25 STOP Mode R20UT2494EG0100 Rev 1 00 AS 42 Jan 21 2013 RENES YRPBRL78L12 9 GUI Description 9 6 3 SNOOZE Mode The SNOOZE mode is a new mode which allows the RL78 to test for a valid Wake Up mode to occur before waking the CPU In thi
29. directly into an available USB port R20UT2494EG0100 Rev 1 00 AS 14 Jan 21 2013 ENES YRPBRL78L12 3 YRPBRL78L12 Components 3 8 Seiko Instruments Inc Low Power 32 KHz Resonator The YRPBRL78L12 LCD board is fitted with an external 32 KHz resonator X2 characterized specifically for the RL78 L12 device supplied by Seiko Instruments Inc This 1s a specially designed low power resonator designed to support the very low power consumption of the RL78 L12 family For more technical details on this device and contact details for Seiko Instruments please refer to chapter 13 3 9 RL78 L12 Memory Map The RL78 L12 memory layout is shown in the table below Free for user application software OxF7FFF OxF2000 OxF1 FFF Data flash memory 0xF1000 el OxFOFFF Access prohibited area Address area OxFO800 Free for user application software OxEFFFF Access prohibited area 0x08000 Free for user application Software Table 6 RL78 L12 Memory Map Note In debug mode the end address for the user application software is OxO7DFF R20UT2494EG0100 Rev 1 00 AS 15 Jan 21 2013 ENES YRPBRL78L12 4 Getting Started Chapter 4 Getting Started The default setting of the YRPBRL78L12 LCD board is set for demonstration use with the GUI The DVD included and quick start guide will take the user through the installation procedure The Quick Start Guide will automatically open after the installation process to guide the user throug
30. e 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 RL78 L12 Group Make sure to refer to the latest versions of these documents The newest versions of the documents listed may be obtained from the Renesas Electronics Web site Data Sheet Hardware overview and electrical RL78 L12 Group RO1DS0157EJ characteristics Datasheet Hardware specifications pin assignments memory maps peripheral function specifications User s manual for electrical characteristics timing dnde a User s N E Hardware charts and operation description anual tor 01UHO330EJ ae Hardware Note Refer to the application notes for details on using peripheral functions User s manual for Desc
31. ed before supplying power to the board The current can be measured for all the different low power modes by using the demonstration GUI supplied to enter all different power and standby modes R20UT2494EG0100 Rev 1 00 AS 13 Jan 21 2013 ENES YRPBRL78L12 3 YRPBRL78L12 Components 3 6 El Emulator Connector CN4 Connector CN4 not fitted is provided to allow debugging and programming of the RL78 L12 microcontroller using an El emulator The Renesas Flash Programmer V2 00 01 software can be used with the El emulator in order to flash the RL78 L12 device with a program file such mot or hex The board power supply can also be provided through this connector A 14 way 2 x 7 standard pitch connector needs to be mounted and connected as shown below if the El is to be used VDD VDD VDD CN4 g 1 H 2 33 44 R16 TOOLO 5 5 6 6 T_RESET _ f 8 9 9 10 10 OK RESET_N To i 12 12 RESET_N13 13 14 14 Figure 4 E1 Emulator Connection 3 7 Mini B USB Interface Connector USB The mini B USB connector allows connecting e studio to the YRPBRL78L12 LCD board in order to debug or program application software to the RL78 L12 device The board power supply 1s also provided by this connector Additionally connector USB connects UART2 of the RL78 L12 device to the host system 2 Table 5 Pin Configuration of mini B USB Connector USB For connection with the host machine YRPBRL78L12 can be plugged
32. eiko 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 2tENESAS 98 REVISION HISTORY RL78 L12 User s Manual Demo Rev Description Jan 21 2013 A First Edition issued Renesas Promotional Board User s Manual Demo Manual Publication Date Rev 1 00 Jan 21 2013 Published by Renesas Electronics Corporation CENESAS satesorrices Renesas Electronics Corporation __ntpiwmw renesas com Refer to http www renesas com for the latest and detailed information Renesas Electronics America Inc 2880 Scott Boulevard Santa Clara CA 95050 2554 U S A Tel 1 408 588 6000 Fax 1 408 588 6130 Renesas Electronics Canada Limited 1101 Nicholson Road Newmarket Ontario L3Y 9C3 Canada Tel 1 905 898 5441 Fax 1 905 898 3220 Renesas Electronics Europe Limited Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH U K Tel 44 1628 651 700 Fax 44 1628 651 804 Renesas Electronics Europe GmbH Arcadiastrasse 10 40472 D sseldorf Germany Tel 49 211 65030 Fax 49 211 6503 1327
33. esults and performance of the RPB is assumed by the User The RPB is provided by Renesas on an as is basis without warranty of any kind whether express or implied including but not limited to the implied warranties of satisfactory quality fitness for a particular purpose title and non infringement of intellectual property rights with regard to the RPB Renesas expressly disclaims all such warranties Renesas or its affiliates shall in no event be liable for any loss of profit loss of data loss of contract loss of business damage to reputation or goodwill any economic loss any reprogramming or recall costs whether the foregoing losses are direct or indirect nor shall Renesas or its affiliates be liable for any other direct or indirect special incidental or consequential damages arising out of or in relation to the use of this RPB even if Renesas or its affiliates have been advised of the possibility of such damages Precautions The following precautions should be observed when operating any RPB product This Renesas Promotional Board is only intended for use in a laboratory environment under ambient temperature and humidity conditions A safe separation distance should be used between this and any sensitive equipment Its use outside the laboratory classroom study area or similar such area invalidates conformity with the protection requirements of the Electromagnetic Compatibility Directive and could lead to prosecution The produ
34. h the initial set up and connection to the PC and GUI Please note as the communication interface between the host computer and the YRPBRL78L12 LCD board is the USB port interface the software must be installed properly before the board is connected to the PC 4 1 Installed Contents The installer will copy and install the contents of the DVD on the host PC The contents copied and installed from the DVD will appear on the Start All Programs menu paa Renesas Electronics Tools E il YRPBRL78L12 Demo GUI Software a Renesas Electronics e2studio 2 i e2 Renesas e2studio estudio IDE Table 7 Contents Installed on Start All Programs R20UT2494EG0100 Rev 1 00 AS 16 Jan 21 2013 ENES YRPBRL78L12 Chapter 5 Hardware Installation 5 Hardware Installation Before connecting the YRPBRL78L12 LCD board to the host PC via USB cable ensure all the software 1s correctly installed first see chapter 6 If a multi meter is available remove the jumper shorting CNS and connect the multi meter on CNS as indicated below R20UT2494EG0100 Rev 1 00 Jan 21 2013 TP2 pr RENESAS YRPBRL 8L12 g iF Figure 6 Connecting an ammeter ENESAS gt a aaPONER LEL G Bl AS LED ee LO a i 17 YRPBRL78L12 6 Software Installation Chapter 6 Software Installation The YRPBRL78L12 package comes with several software demonstration packages o estudio IDE including the GNURL78 compiler assembler linker lib
35. he USB host interface enables communication to the YRPBRL78L12 LCD board The uPD78F0730 78KO 8 bit microcontroller with on chip USB interface and the Renesas Electronics virtual UART driver allows application software to access the USB device in the same way as it would access a standard RS232 interface The Renesas Electronics virtual UART driver appears to the windows system as an extra Com Port in addition to any existing hardware Com Ports 2 3 Power Supply via USB interface YRPBRL7SL12 is powered by USB interface therefore no separate power supply is required R20UT2494EG0100 Rev 1 00 AS 10 Jan 21 2013 ENES YRPBRL78L12 3 YRPBRL78L12 Components Chapter 3 YRPBRL78L12 Components The YRPBRL78L12 LCD board is equipped with a USB connector and with several jumpers in order to be connected to host computers El emulator or any external target hardware CER SESE OCDIUART S5Wa LCD SW5 CN5 CNG LED2 LED1 LEDO Power LEDs RV1 SW3 S5W2 Swi Potentiometer Switches Very Low Power Seiko 32KHz Resonator Ma 2 Por e g om D L ec A a e E E Li CEE F Made la Euraga obs compel lant DOL 462 02 f E1 Header a a Holder eS o OO T el RL78 L12 EINEN USB Connector 0000042692 Figure 2 YRPBRL78L12 LCD board Components Some of the YRPBRL78L12 components are available for user application hardware and software Please read the user s manual of the RL78 L12 device carefully to get information about the electrica
36. l specification of the available I O ports before you connect any external signal to the YRPBRL78L12 LCD board R20UT2494EG0100 Rev 1 00 AS 11 Jan 21 2013 ENES YRPBRL78L12 3 YRPBRL78L12 Components 3 1 Configuration Switches SW4 and SWS5 Switches SW4 and SW5 control the different operating modes of the YRPBRL78L12 LCD board 3 1 1 GUI Demonstration Mode Virtual UART Mode The default operation of the board is set for use with the GUI using the virtual UART Jumpers should be set as shown in the table below SW4 SW5 Table 1 Switch configuration for GUI Demonstration Mode 3 1 2 On Board Debug OCD and Flash Programming Modes The YRPBRL78L12 promotional board supports on board debug mode achieved by a dedicated monitor running on the RL78 L12 device By using the e studio IDE flash programming and standard debug functions 1 e code execution single stepping software breakpoints memory manipulation etc are supported Configure switches SW4 and SW5 as following to use the on board debug or Flash programming mode SW4 sws Table 2 Switch Configuration for On Board Debug Flash Programming Mode PPP E a 7 j r p aed 1 A siiip nm 4 fi a ae ele ie RENESAS Mo ie Lae me an YRPARI TAL 1 i ay Pa a y Te a i pi ii Tia nat ts a Figure 3 YRPBRL 78L 12 On chip Debugger Jumper Settings For details on debugging in e studio please refer to Chapter 8 Debugging in estudio of this doc
37. lick Show View and select Memory The memory window will appear docked in the bottom section of e studio Click the plus button to add a new memory view Console Mz Tasks En Problems O Executables fa Realti Enter either a memory address location in hex or the name of a variable Monitor Memory Enter address or expression to monitor OxFE900 O x Gea Click lt OK gt You can scroll the memory view up and down to see adjacent memory locations R20UT2494EG0100 Rev 1 00 AS 33 Jan 21 2013 ENES YRPBRL78L12 8 Debugging in estudio E Console Tasks fe Problems 4 Executables a Real time Memo Re Real time Chart 8 Trace 0 Memory 3 DY ry Monitors gt 9 2 OxFE900 OxFE900 lt Hex gt 3 4h New Renderings OxFE900 Address 0 3 6 B EE 000FE900 E95ECD00 CEF79E72 7D32F806 000FE910 00000000 01000000 00000000 00000000 Note The projects provided with the YRPBRL78L12 were partly created using APIs generated by Applilet a tool used to generate source and headers files containing APIs Source files and APIs generated by Applilet have names starting with r and R_ respectively The version of Applilet used in the projects provide is Applilet3 for RL78L12 V 1 00 00 and can be downloaded from the following website http www2 renesas eu products micro download oc AP3 RL78L12 EE R20UT2494EG0100 Rev 1 00 AS 34 Jan 21 2013 ENES YRPBRL78L12 9 GUI Descriptio
38. line of code in the function i a a a AR RAR ARA i i i i i i i Function Name E Systeminit Description This function initializes Arquments None Return Value None TTT TTT TTT TPT TPP Pe Pa oa oo ow i R20UT2494EG0100 Rev 1 00 Jan 21 2013 void R Systeminit void f Configure port pin assignments FIOR 0x000 Configure the LCD E LCD Create Configure system clocks R CGC Create f Configure ADC E ADC Createl stENESAS 32 YRPBRL78L12 8 Debugging in estudio lt 6 gt Advanced Debug Features The panel in the top left of the screen can be used for debugging Click the Variables tab to view all local variables currently in scope Click Breakpoints to view and edit software breakpoints and click IO Registers to view the device SFR registers ke o Breakpoints ar Expressions oor Registers a Eventpoints El IO Registers To view global variables click Window from the top menu bar and then click Show View and select Expressions This will add the Expressions panel to the list of tabs Click the plus icon and type in the name of the global variable you want to watch p a A m A a m 3 E FI O m Md A ll LI 69 Variables o Breakpoints 42 Expressions 3 gt Expression Add new expression To view memory areas directly click Window from the top menu bar and then c
39. ly Action lt I gt When this product is connected to the personal computer right click the driver marked with or Click when displayed lt 2 gt In Device Manager execute Hardware Modification Scan lt 3 gt Install the driver again with Plug and Play Cause The device may not be recognized in the case of connection with the USB hub Action Try the following Disconnect the USB connector and then insert the USB connector again Connect the USB connector to another port of the USB hub If the same symptom occurs do not use the USB hub but directly connect the connector to the USB port of the personal computer Manually changing the COM port Cause The GUI is not able to establish connection to the YRPBRL78L12 demo board when the board is connected to the host PC via a USB cable and the assigned virtual COM port number is bigger than 9 R20UT2494EG0100 Rev 1 00 AS 46 Jan 21 2013 ENES YRPBRL78L12 10 Troubleshooting Action lt 1 gt Open Device Manager lt 2 gt Locate Renesas Starter Kit Virtual UART under Ports COM amp LPT lt 3 gt Right click on Renesas Starter Kit Virtual UART and select Properties Alternatively double click on Renesas Starter Kit Virtual UART lt 4 gt Select the Port Settings tab lt 5 gt Click on Advanced lt 6 gt Select an available COM port number lower than 10 lt gt Click OK lt 8 gt Click OK on the Properties dialog lt 9 gt
40. n Chapter 9 GUI Description The RL78 L12 demonstration GUI is Windows software application that can be used to demonstrate the key operation of the 16 bit microcontroller RL78 L12 mounted on the YRPBRL78L12 LCD board The demonstrations allow the user to check the on board RTC DMAC CRC the memory contents RAM switch between the different standby modes and to check associated power consumptions and to use the self test functions implemented in the RL78 L12 device Please note that the YRPBRL78L12 needs to be running the program supplied YRPBRL78L12_LCD_Demo_SW mot within the GUI Demo Source Code directory copied to the host PC during installation This is programmed as default in manufacture Before connecting the YRPBRL78L12 LCD board check switches SW4 and SW5 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 9 1 Running the RL78 L12 Demo lt 9 gt Execute application Verify that SW4 and SW5 switches on the YRPBRL78L12 LCD board are set to Virtual UART operation mode with the following settings Table 8 SW4 and SW5 Configurations for Virtual UART Operation Mode S427 50500 E sn See eee es it A e RENESAS F Olle Figure 16 SW4 and SW5 Configurations for Virtual UART Operation Mode R20UT2494EG0100 Rev 1 00 AS 35 Jan 21 2013 ENES YRPBRL78L12 9
41. nd C Windows Security Would you like to install this device software Name Renesas Electronics Corporation Ports a Publisher Renesas Electronics Corporation Always trust software from Renesas Electronics Install Don t Install Corporation You should only install driver software from publishers you trust How can decide which device software is sate to install Figure 36 Installation Confirmation Windows Vista lt 4 gt Click to close the installation wizard R20UT2494EG0100 Rev 1 00 AS Jan 21 2013 ENES 51 YRPBRL78L12 10 Troubleshooting The software for this device has been successfully installed Windows has finished installing the driver software for this device Renesas Starter Kit Virtual UART Figure 37 USB Driver Installation Completion Windows Vista Installation on Windows 7 lt 1 gt When the YRPBRL78L12 LCD 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 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 gt B
42. new software versions will be backward compatible with previous releases of the YRPBRL78L12 LCD board Various input output signals available such as o Virtual UART interface via the uPD78F0730 78KO 8 bit microcontroller with on board USB interface o 3user LEDs are connected to the RL78 L12 ports for visualisation Full documentation is included for all of the released Renesas software tools and the RL78 L12 device YRPBRL78L72 is not intended for code development Renesas does not allow and does not support in any way any attempt to use YRPBRL78 amp L12 in a commercial or technical product R20UT2494EG0100 Rev 1 00 AS 8 Jan 21 2013 ENES YRPBRL78L12 1 Introduction 1 2 System requirements HOST PC A PC supporting Windows XP Windows Vista or 7 1s 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 Display Properties Display with 1024x768 minimum resolution Normal size 96Dp1 Display Dpi settings Host interface USB interface that enables communication based on USB Ver1 1 or later 1 3 Package contents YRPBRL78L12 USB Type A Mini B cable Potentiometer shaft to adjust the potentiometer voltage DVD containing all the software tools
43. ngement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document No license express implied or otherwise is granted hereby under any patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from such alteration modification copy or otherwise misappropriation of Renesas Electronics product Renesas Electronics products are classified according to the following two quality grades Standard and High Quality The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below Standard Computers office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots etc High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems and safety equipment etc Renesas Electronics products are neither intended nor authorized for use in products or systems that may pose a direc
44. nt of weapons of mass destruction When exporting the Renesas Electronics 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 It 1s the responsibility of the buyer or distributor of Renesas Electronics products who distributes disposes of or otherwise places the product with a third party to notify such third party in advance of the contents and conditions set forth in this document Renesas Electronics assumes no responsibility for any losses incurred by you or third parties as a result of unauthorized use of Renesas Electronics products This document may not be reproduced or duplicated in any form in whole or in part without prior written consent of Renesas Electronics Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electronics products or 1f 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 Disclaimer By using this Renesas Promotional Board RPB the user accepts the following terms The RPB is not guaranteed to be error free and the entire risk as to the r
45. nt 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 systems manufactured by you 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 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 You should not use Renesas Electronics products or technology described in this document for any purpose relating to military applications or use by the military including but not limited to the developme
46. nue the installation Hardware Installation The software you are installing for this hardware Renesas Starter Kit Virtual U4RT haz not passed Windows Logo testing to verify its compatibility with Windows lt P Tell me why this testing le 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 31 Installation Confirmation Windows XP lt 4 gt Click to close the installation wizard Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for F Renesas Starter Kit Virtual UART Click Finish to close the wizard Back Cancel Figure 32 USB Driver Installation Completion Windows XP R20UT2494EG0100 Rev 1 00 AS 49 Jan 21 2013 ENES YRPBRL78L12 10 Troubleshooting Installation on Windows Vista lt 1 gt When the YRPBRL78L12 LCD 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 soft
47. o Renesas GDB Hardware Debugging option to reveal the pre configured YRPBRL78L12_e2studio_Debugging Project configuration R20UT2494EG0100 Rev 1 00 AS 27 Jan 21 2013 RENES YRPBRL78L12 e2 Debug Configurations Create manage and run confiqurations 1 B 3 fe C C Application fe C C Attach to Application fe CC Postmortern Debugger c Custom Debug cs Debug only fe GDB Hardware Debugging bih GHS Local C C Launch c HEW Debugging Es Renesas GDB Hardware Attach c Renesas GDB Hardware Debugging E7 Renesas GDB Simulator Debugging 8 Debugging in estudio Click on the YRPBRL78L12_e2studio Debugging Project configuration to view the configurations Debug Configurations Create manage and run configurations SEex ea ye fe C C Application E C C Attach to Application fe C C Postmortern Debugger E Custom Debug E Debug only E GDB Hardware Debugging a a GHS Local C C Launch E HEW Debugging 5 Renesas GDB Hardware Attach 4 67 Renesas GDB Hardware Debugging E7 YRPBRL78L12_e2studio_Debugging_Project E Renesas GDB Simulator Debugging C C Application Project Filter matched 12 of 12 items D s Name YRPBRL 8L12_e2studio_Debugging_Project type filter text E Main Debugger B gt Startup E Common Source HardwareDebug RPBRL78L12_e2studio_Debugging_Project x Search Project Browse J YRPBRL 8L
48. oad the code to the target device and begin debugging e studio may show a security alert dialog select the option that allows e2 server gdb access Another dialog may be shown asking to change to the Renesas Debugging Perspective Select the Remember my decision tick box to prevent this message appearing each time e studio connects to the target device then click Yes K D Gy Oo a R20UT2494EG0100 Rev 1 00 AS 29 Jan 21 2013 ENES YRPBRL78L12 8 Debugging in estudio lt 5 gt Running and Debugging the Sample Code The target device should now be programmed ready for debugging The debug command buttons will appear File Edit Mavigate Search Project Run Window Help EJ gt Slm 2 gt Sr gt 07 Q gt S Renesas Debug 3 aM Os e E DP Open the Show View dialog from the menu bar Window gt Show View gt Other Double click on Debug to expand the folder view Select Disassembly Click OK The program counter s position is indicated by the circled arrow and the instruction is also highlighted as shown below n Outline EG Project Explorer 25 Disassembly 22 Power0OH Reset Joonas moww Oxftffts Oxfeoo 75 mow es 0 OoO0042f9 mow es 0 T sel rhu HOODS 2s sel rp TT row Ww de mdata OOOO042ifd moww de 0x4354 Click on the Project Explorer tab Click on the arrow to the left of the YRPBRL78L12_e2studio_Debugging_ Project folder to expand the folder E Outline
49. ode coconccnccncconconconconconconronrnnnnannnnnnnrnnrnnranrnennranen 12 3 1 2 On Board Debug OCD and Flash Programming MOdes csscssceeceeeeeeeeeeneeeeeeeeneeneeneeneeneens 12 32 Power LED n 13 33 User S CED ncis innana AAAA AAAA AAAA AEEA 13 3 4 External Power Supply CNG cia 13 3 5 Current Measurement ENS ii 13 3 6 E1 Emulator Connector EN 14 3 7 Mini B USB Interface Connector USB ccccceeneeeeeeeeneneneneesenenenenensenenenenenensenes 14 3 8 Seiko Instruments Inc Low Power 32 KHz Resonator c csceceseeeeeeneneeeenenseeenes 15 39 RE7S L12 Memory Mapes nee eee 15 Chapter 4 Getting Started cooncconncccnnccccnccconccconnncnnnnnnnanennnnonannnnnanos 16 AL Installed Contents sisi iba 16 Chapter5 Hardware Installation oooccoocccooncconnnnoncnncncanenannnnnnnos 17 Chapter6 Software InstallatiOn oooocccccnciconnncccnnnonnnnconanenannnnannns 18 6 1 Sample Programs Installation sessionen nnna a aaa Aaaa aE 18 6 1 1 Confirmation of USB Driver Installation ccceceseneneeeeeenenseseeenensesesenensnsesenenenseseeenenensensees 18 Chapter 7 Renesas Flash Programmer cccccesseseeseeeeseseeseeeeeees 20 Chapter 8 Debugging in eSstudio connnnnsnnscnsciscncnasanarananananes 25 Chapter 9 GUI DOSED UN isoce 35 9 1 Running the RL78 L12 Demo 1 csscessenssnesnsenssensensenesensenssnesensenesensensseesensenssens 35 92 GUT DEMO Sections aria ai cd 37
50. or more details on the power saving modes of the RL78 L12 please consult the device user manual When using the low power demonstration the user clicks the appropriate button in the GUI window The RL78 L12 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 Er Renesas Electronics RL78 112 Low Power Demonstrator fr Home Data Logger Real Time Clock Memory Demo Low Power 1 Self Test m Low Power Modes i Snooze Mode Put the RLFS into Low Power Halt mode Set ADC trigger conditions voltage limits Auto Limit Upper 3 9 col Lower 2 9 4 Put the RL78 into Low Power Stop mode Stop Turn off LEO Sample interval one Second Fut che ALF into Snooze mode a RTC Time 20124113 12 18 22 Figure 23 Low Power Mode Selection R20UT2494EG0100 Rev 1 00 AS 41 Jan 21 2013 ENES YRPBRL78L12 9 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 mode for intermittent operation Er Renesas Electronics RL 8 L12 Low Power Demonstrator Cr Home Data Logger Real Time Clock Memory Demo Low Power a Self Test Low Power Modes Snooze Mo
51. ormation about those products please refer to the following URL WWw sil components com quartz renesas R20UT2494EG0100 Rev 1 00 AS 57 Jan 21 2013 ENES YRPBRL78L12 12 Resonator from SEIKO Instruments Inc 12 4 Seiko Instruments Inc 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 R20UT2494EG0100 Rev 1 00 Jan 21 2013 Katsuyuki Masuko Quartz Crystal Sales Electronic Components Business Unit 81 43 211 1207 katsuyuki masuko sii co jp Seiko Instruments Inc 8 Nakase 1 choume Mihama ku CHiba shi Chiba 261 8507 Japan Kensei Nozu 86 775 82462680 307 kensei nozu sii co jp Seiko Instruments H K Ltd Shenzhen Rep office 2212 2215 Diwang commercial building Shunhin square 5002 Shennan Est Rd Shenzhen Guangdong China Jim Schlumpberger 01 310 517 7884 jim 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 s
52. r Demonstrator 9 H Data Logger Real Time Clock Memory Demo 1 Self Test Connection RL 8 The True Low Power MCU Platform Port Renesas Starter Kit Virtual UART COM T Low Power Firmware version 1 0 l Scalable L7 LC Demo Start Efficient RTC Time 2013 01 21 12 19 27 Figure 18 The RL78 L12 Demo GUI lt 1 gt Information Bar The connection status between the YRPBRL78L12 and the GUI is shown on this area When connection 1s established the bar 1s used to display the RTC time and date LCD Demo runs a simulation of an air conditioning system A dialog will appear to indicate operation of the system after clicking Start The potentiometer on the YRPBRL78L12 LCD board is used to vary the temperature between from 0 C to 40 C With the temperature from 10 C and below 30 C the system is in good working condition When the temperature falls below 10 C the heat symbol is turned on indicating the need to increase the temperature The word COLD is also displayed When the temperature reaches 30 C or above the cool symbol 1s turned off indicating the need to decrease the temperature HOT can also be seen on the screen Click Stop on the dialog to exit the simulation lt 2 gt Data Logger 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 L12 The measurements
53. r of the DVD The executable filename is Renesas_Flash_Programmer_Package_W20001_free exe The filename will not appear with the exe extension if file extension displaying is turned off The conditions of the series of operations described in this chapter are as follows Hardware Configuration of YRPBRL78L12 Board YRPBRL78L12 CPU RL78 L12 Target Device R5FIORLC Voltage Level SV A binary file can be generated by compiling the GUI Demo Source Code project in e studio see chapter 8 lt 1 gt Installing the RFP V2 00 01 GUI The following guides assume the Renesas Flash Programmer V2 00 01 GUI software has been installed on the host machine you are using Connect a USB cable between the YRPBRL78L12 and the host PC see figure below MI G N USB Cable YRPBRL78L12 EI A EJE WAV ANN SN IL I IALGI A Aaaa aAA Hil LAULAA VA NUAN NISSAN Host PC Figure 8 YRPBRL78L12 to Host PC Connection Diagram R20UT2494EG0100 Rev 1 00 AS 20 Jan 21 2013 ENES YRPBRL78L12 7 Renesas Flash Programmer Start the Renesas Flash Programmer V2 00 GUI from the start menu Start f All Programs Renesas Electronics Utilities Programming Tools Renesas Flash Programmer V2 00 5 1 Select Create new workspace and click button Next pm Welcome e Create new
54. rary generator Renesas GDB Server and El emulator drivers O Projects built for use with the Renesas GDB Server o GUI to be run with the main demonstration programs o Source code for the demonstration and debugger programs The estudio work environment must be installed on your PC For detailed installation hints refer to the following chapters and to the corresponding e studio documentation 6 1 Sample Programs Installation The DVD installer will automatically install the sample debugger programs and the demonstration source The debugging project and demo source code project can be found in the following location C Workspace RPB RL78L12 Sample Projects 6 1 1 Confirmation of USB Driver Installation After installing the USB driver check that the driver has been installed correctly according to the procedure below For Windows 7 and Vista Open Device Manager by clicking Start Control Panel Hardware and Sound Device Manager For Windows XP Control Panel Classic View Start Control Panel Performance and Maintenance System Hardware Device Manager When the YRPBRL78L12 LCD 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 R20UT2494EG0100 Rev 1 00 AS 18 Jan 21 2013 ENES YRPBRL78L12 6 Software Installation The screen below shows that the COM port number is COM09
55. results in the Memory Demo tab R20UT2494EG0100 Rev 1 00 AS 44 Jan 21 2013 ENES YRPBRL78L12 9 GUI Description CRC Test Guard Test Switch Test E Renesas Electronics RL 8 UL2 Low Power Demonstrator OOO Bjk x Caoa Home Data Lhgger Real Time Clock Memory Demo P Low Power a self Test CRC Test Switch Test inher al unnamed OMe SW3 SW2 SW1 SFR Guard ee Enable RTC Time 2013 01 21 12 36 03 C4 gt Figure 27 Self Test Functions R20UT2494EG0100 Rev 1 00 AS 45 Jan 21 2013 ENES YRPBRL78L12 10 Troubleshooting Chapter 10 Troubleshooting In driver installation recognition based on Plug and Play is disabled Cause The USB connector may not be inserted normally into the USB port of the personal computer Action Check that the USB connector 1s inserted fully into the USB port of the personal computer Alternatively disconnect the USB connector and then insert the USB connector again after a while In checking by Device Manager USB Serial Port or USB High Speed Serial Converter is not displayed Alternatively the or 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 have installed correct
56. ription of how to set up the RL78 L12 Promotional board debugging using e2studio and Promotional Board R20UT2494EG Board connecting to the GUI User s Manual User T RL78 Series mee S manual Ior Description of CPU instruction set User s Manual for RO1US0015EJ Oiwar Software Provides simple instructions to setup Quick Start Guide the RPB and run the sample code Quick Start Guide R20UT2495EG 2 List of Abbreviations and Acronyms Abbreviation FullForm Direct Memory Access Controller Non Connect Renesas Flash Programmer Real Time Clock Serial Array Unit Special Function Register Timer Array Unit UART Universal Asynchronous Receiver Transmitter All trademarks and registered trademarks are the property of their respective owners Table of Contents Chapter a Introduction 8 1 1 Main features of YRPBRL78L12 0 coococccocconcconconconnconnonncnncnanonnronronncnnrnannnnrnnnon 8 1 2 System requirements ctas 9 Ao E E E E a E A E T TA 9 Chapter 2 YRPBRL78L12 System Configuration c ccssseseesee 10 DA YRPBRE SLI socana a a a a aaa 10 22 A 10 2 3 Power Supply via USB interface c scsscsscssnscnscnscennsensenscesessnsensensceansensensessaesnees 10 Chapter 3 YRPBRL78L12 Components ccccssseseeseeesseseeseseenees 11 3 1 Configuration Switches SW4 and SW cccccseeseeseeseeseeseeeeeeeesensensensensensensensenennes 12 3 1 1 GUI Demonstration Mode Virtual UART M
57. rowse my computer for driver software Locate and install driver software manually Figure 38 Update Driver Software Windows 7 R20UT2494EG0100 Rev 1 00 AS 52 Jan 21 2013 ENES YRPBRL78L12 10 Troubleshooting lt 2 gt Select the folder where the installer has copied the USB drivers from the DVD For 32 bit Operating Systems select the following location C Program Files Renesas RPB RL78L12 USB Drivers Win2k For 64 bit Operating Systems select this location C Program Files Renesas RPB RL78L12 USB Drivers wlh_amd64 Click Next gt Q Update Driver Software Renesas Starter Kit Virtual UART COMB8 Browse for driver software on your computer Search for driver software in this location C Program Files Renesas RPBY RL 8G14 USB Drivers win2k Vi Include subfolders gt 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 39 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 Marne Renesas Electronics Corporation Ports E oes Publisher Renesas Electronics Corporation aF F EO Always trust software from Renesas Electronics Don t Install Corporation F You should only install driver software from publishers you t
58. rust How can I decide which device software is safe to install Figure 40 Installation Confirmation Windows 7 R20UT2494EG0100 Rev 1 00 AS Jan 21 2013 ENES 53 YRPBRL78L12 10 Troubleshooting lt 4 gt Click to close the installation wizard Ww Update Driver Software Renesas Starter Kit Virtual UART COMS5 Windows has successfully updated your driver software Windows has finished installing the driver software for this device Renesas Starter Kit Virtual UART Figure 41 USB Driver Installation Completion Windows 7 After the manual installation please go to Chapter 6 1 1 Confirmation of USB Driver Installation Communication with the YRPBRL78L12 is disabled Cause The driver may not be installed correctly Action Check if the USB driver is installed correctly by referring to Chapter 6 Software Installation Cause The COM port selected via the Port list box within device setup menu of Renesas Flash programmer may not be set correctly Action Set the port checked using Device Manager Cause The YRPBRL78L12 LCD board is operating in GUI Demo Virtual UART mode Action Set the board to the On Board Debugging Flash Programming mode R20UT2494EG0100 Rev 1 00 AS 54 Jan 21 2013 ENES YRPBRL78L12 10 Troubleshooting 2 e e e Known e studio Limitations Start e2studio From the menu bar click Help gt Welcome Select the What s New icon as highlighted below
59. s 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 until the next RTC trigger event For example for an upper limit voltage set to 2 9V and a lower limit voltage set to 2 5V the device will only wake up if you adjust the potentiometer voltage to a voltage below 2 5V between OV and
60. t File Tool Microcontroller Help Microcontroller Power supply from the emulator _ Power target from the emulator Supply voltage 3 3V Additional Settings Wide Voltage Mode Input Voltage 5 00 Figure 12 Information Settings Dialog Box 5 5 The following information settings window will appear with all the default parameters already set by the GUI Click button R20UT2494EG0100 Rev 1 00 RENESAS Jan 21 2013 7 Renesas Flash Programmer 22 YRPBRL78L12 7 Renesas Flash Programmer S Renesas Flash Programmer Unsupported Freeware Version File Tool Microcontroller Help Project Settings Basic Settines Other Settings O 00 amp Device Information File File name R5F10RLC prb File version v1 00 E Target Interface UART ch0 Communication transter rate 115 200bps supply oscillator Target Frequency MHz Internal OSC Multiply rate 1 00 Supply power 5 00V O Using Tool Tool name COM9 Tool name The tool name of flash programmer is indicated Clear Output Panel Figure 13 Information Settings Dialog Box lt 6 gt Selecting a user program In the RFP main window click Browse Select a program file to be written to the target device In this case the YRPBRL78L12 LCD Demo_SW mot file is used however RFP supports hex mot s and rec binary file types This can be found in the following project folder C Workspace
61. t Set RTC Time Alarm Function Interval Interrupt Synchronize the ALFA RTC registers Set and use the alarm Function of the RL78 l with the Host system clock Select interwal one Second Alarm time Syne q Minutes Enable Minutes 0 n Day of week Every Day Set Alarm RTC Time 201301721 12 00 11 Figure 21 On Board RTC Operation 9 5 Memory Demonstration This section of the GUI demonstrates the Data Transfer Controller operation and the RAM data retention in the lowest power mode Note the RAM window can also be used for the RAM write protection function in the Self Test tab as this is part of the user write protection RAM area In the Memory Content box using the drop down button to select DMAC to RAM the RL78 L12 enables transfers of the external voltage 2 bytes and internal temperature s hexadecimal values starts writing 4 bytes of data into the RAM memory for every ADC measurement The 4 bytes of data written are o The external voltage 2 bytes o The temperature value 2 bytes The first byte represents the integer part and the second byte the fractional part of the value The active window shows the current 64 bytes of the RAM memory block being written into The current 4 bytes written in the RAM memory appear in red colour RAM memory content is not retained after the power is removed from the device so that if you stop the GUI demonstration unplug the YRPBRL78L12 LCD
62. t threat to human life or bodily injury artificial life support devices or systems surgical implantations etc or may cause serious property damages nuclear reactor control systems military equipment etc You must check the quality grade of each Renesas Electronics product before using 1t in a particular application You may not use any Renesas Electronics product for any application for which it is not intended 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 which the product is not intended by Renesas Electronics 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 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 use conditions Further Renesas Electronics products are not subject to radiation resistance design Please be sure to impleme
63. ternal boosting voltage For this reason before entering the low power modes the voltage generation method is changed from internal voltage boost to capacitor split mode Results are shown on the table below Power Mode CPU 24 32 UART Timer ADC RTC LYD Flash RAM LCD Power MHz KHz Consumption RUN On On On On On On On Off Off On On 3500 uA HALT Off On On On On On On Off Off On On 800uA STOP Off Off On Off Off Off On Off Off On On Off LCD LCD On Off 2 0uA 0 5uA SNOOZE Off Off On Off Off On On Off Off On On 2 0uA 4 0uA periodically R20UT2494EG0100 Rev 1 00 2CENESAS 56 Jan 21 2013 YRPBRL78L12 12 Resonator from SEIKO Instruments Inc Chapter 12 Resonator from Seiko Instruments Inc 12 1 Features of the 32 KHz Resonator The SSP T7 FL is a tuning fork 32 KHz low CL crystal resonator from Seiko Instruments Inc designed for the new low power RL78 MCU family Microcontrollers from the RL78 family using this 32 KHz low CL resonator achieves ultra low power oscillation circuit 0 2 uA max with fast start up time within 1 sec high accuracy 10 sec per month and high efficiency oscillation allowance up to 20 12 2 Product Name and Specifications The different product names offered by Seiko Instruments Inc for the RL78 microcontrollers are SSP T7 FL SMD type low CL resonator VT 200 FL Cylinder type Low CL resonator The main specifications are as follows 32 768 KHz 20ppm CL 4 4pF 12 3 Web URL Fore more inf
64. ument R20UT2494EG0100 Rev 1 00 AS 12 Jan 21 2013 ENES YRPBRL78L12 3 YRPBRL78L12 Components 3 2 Power LED The Power LED is activated 1f power 1s supplied to the YRPBRL78L12 LCD board 3 3 User s LEDs The user LEDs connected and controlled by the RL78 L12 Table 3 LEDs Available for User s Control 3 4 External Power Supply CN6 External power can be supplied by connecting a regulated 5V DC to the connector CN6 not assembled The operation of the board is as follows USB power only Or External supply only Board can only be operated as stand alone only no USB power connection When external power supply EXT_5V 1s used make sure that you follow these guidelines EXT_5V can only be used if the board is not connected to the PC USB connection is not permitted if both USB and external power supplies are used then 1t can damage the board Please refer to the schematic and the assembly drawing of the board to locate the above components Table 4 External Power Supply Connector CN6 Note Pin number 1 is marked with a square on the assembly drawing 3 5 Current Measurement CN5 CNS connects the power supply from the USB external battery to the Vpp and EV pp pins of the RL78 L12 microcontroller The jumper can be replaced by the two leads of a multi meter to measure the current consumed by the RL78 device Connect a multi meter on CNS To use this function please make sure that the multi meter is connect
65. ware recommended Windows will guide 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 Don t show this message again for this device Your device will not function until you install driver software Figure 33 Found New Hardware Wizard Windows Vista Then select Browse my computer for driver software advanced on the next window e pi Found Ne Sees Windows couldn t find driver software for your device Check for a solution Windows will check to see if there are steps you can take to get your device working Browse my computer for driver software advanced Locate and install driver software manually Figure 34 Install from a Specific Location Windows Vista R20UT2494EG0100 Rev 1 00 AS 50 Jan 21 2013 ENES YRPBRL78L12 10 Troubleshooting lt 2 gt Select the folder where the installer has copied the USB drivers from the DVD For 32 bit Operating Systems select the following location C Program Files Renesas RPB RL78L12 USB Drivers win2k For 64 bit Operating Systems select this location C Program Files Renesas RPB RL78L12 USB Drivers wlh_amd64 Click Browse for driver software on your computer Search for driver software in this location Include subfolders Figure 35 Search Location Specification Windows Vista lt 3 gt Click Install when the driver has been fou
66. when in Halt mode until the Halt release button 1s clicked to set the RL78 L12 to the active mode In Stop mode a switch press on the YRPBRL78L12 LCD board is required The Snooze mode requires the user to adjust the external potentiometer to exit the standby mode Detailed explanations about each of the low power modes are provided in the section 9 6 Low Power Demonstration please refer to it lt 5 gt Self Test Function This section demonstrates the different self test functions provided within the RL78 L12 The self test functions are switch test RAM and SFR guard and system clock measurement The ELC test is also included within this tab The interrupt from one timer is used as the clock count source for another timer It is important to note that tooltips are present on every buttons to guide the user through the experience of the RL78 L12 GUI Demo and provide useful information for a good and quick understanding of the different features and peripherals demonstrated Place the mouse cursor over a button to view the tooltip Connection Port Renesas Starter Kit Virtual UART COM19 Connect Click to conmect disconmect the RL7S torfror the PL Figure 19 Tooltip Example R20UT2494EG0100 Rev 1 00 AS 38 Jan 21 2013 ENES YRPBRL78L12 9 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 L12 internal temperature
Download Pdf Manuals
Related Search
Related Contents
NAD M51 audio converter Manuale - Optoma Hardware User Manual シャープランス・スターカッテンド 取扱説明書 ,0 背中にカイロを貼り、 ホットカーペ Craftsman Folding Framer Instruction Manual 取扱説明書 - 岡村製作所 Dairy.com Transportation User Manual ASSEMBLY INSTRUCTIONS Copyright © All rights reserved.
Failed to retrieve file