Page 1
All information contained in these materials, including products and product specifications, represents information on the product at the time of publication and is subject to change by Renesas Electronics Corporation without notice. Please review the latest information published by Renesas Electronics Corporation through various means, including the Renesas Electronics Corporation website (http://www.renesas.com).
Page 2
Renesas Electronics 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.
Page 3
RSK. 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...
Page 4
The following documents apply to the RL78/L13 Group. Make sure to refer to the latest versions of these documents. The newest versions of the documents listed may be obtained from the Renesas Electronics Web site. Document Type...
Page 5
Event Link Controller Electromagnetic Compatibility Electrostatic Discharge Philips™ Inter-Integrated Circuit Connection Bus Interrupt Request Liquid Crystal Display Light Emitting Diode Micro-controller Unit Pulse Width Modulation Renesas Starter Kit Serial Array Unit Special Function Register UART Universal Asynchronous Receiver/Transmitter Universal Serial Bus...
RENESAS STARTER KIT Mar 10, 2014 1. Overview Purpose This RSK is an evaluation tool for Renesas microcontrollers. This manual describes how to get the RSK tutorial started, and basic debugging operations. Features This RSK provides an evaluation of the following features: •...
RSKRL78L13 2. Introduction 2. Introduction This manual is designed to answer, in tutorial form, the most common questions asked about using a Renesas Starter Kit (RSK). The tutorials help explain the following: • How do I compile, link, download and run a simple program on the RSK? •...
CubeSuite+ is an integrated development tool that allows the user to write, compile, program and debug a software project on the RX, 78K, RL and V850 family of Renesas microcontrollers. CubeSuite+ will have been installed during the installation of the software support for the Renesas Starter Kit product. This manual will describe the stages required to create and debug the supplied tutorial code.
Page 10
RSKRL78L13 Tutorial Project Workspace • CubeSuite+ will present a ‘Create Project’ dialog box. • Select all sub-projects by clicking on each checkbox and observe the information displayed under ‘Subproject information’ heading as you select each project. • Specify a name and location for the new project and click on ‘Create’...
Page 11
RSKRL78L13 Tutorial Project Workspace • To change the active project, right- click on the project/subproject name and select “Set x as Active Project” (x represents the project name). • File folder contains three subfolders. This structure is common to all projects. •...
RSKRL78L13 Tutorial Project Workspace Configuring the Debug Tool (E1) Note: The Tutorial sample project’s settings are pre-configured. This section is intended to familiarise the user with the debug tool settings for when they create their own project. • The Project Tree will be displayed on the left-hand pane of CubeSuite+.
Page 13
RSKRL78L13 Tutorial Project Workspace • The opposite screen-shot indicates that the selected Debug Tool is E1. • Right click RL78 E1(Serial) (DebugTool). • Click on Property. • View the Connect Settings. • Verify that the settings match the opposite screen-shot. Note: To supply external power to the target board, set the ‘Power target from emulator.
RSKRL78L13 Tutorial Project Workspace Build Configuration The build configurations are selected from the build tool’s Property panel. The options available are DefaultBuild, Debug and Release. DefaultBuild and Debug are configured for use with the debugger. Release is configured for the final ROM programmable code. A common difference between the two builds is the optimisation setting and the addition of debug information.
RSKRL78L13 4. Building the Tutorial Program 4. Building the Tutorial Program The tutorial project build settings have been pre-configured in the toolchain options. To view the toolchain options double-click on CA78K0R (Build Tool) from the Project Tree and select the available tabs. It is important when changing settings to be aware of the current configuration before modifying the settings.
Refer to the RSKRL78L13 User Manual for further details. The Quick Start Guide provided with the Renesas Starter Kit board gives detailed instructions on how to connect the E1 to the host computer. The following assumes that the steps in the Quick Start Guide have been followed and the E1 drivers have been installed.
Page 17
RSKRL78L13 4. Building the Tutorial Program If you make any changes to files in CubeSuite+ and want to preserve these change, you can save them by: • Select ‘File’ | ‘Save All’. You can also save files by clicking the ‘Save’ or ‘Save All’ buttons from the CubeSuite+ toolbar.
RSKRL78L13 5. Downloading and Running the Tutorial 5. Downloading and Running the Tutorial Downloading the Program Code Now that the code has been built in CubeSuite+ it needs to be downloaded to the RSK. • Click on the program download button. Alternatively, select Debug from the Menu bar and click on Download.
RSKRL78L13 6. Reviewing the Tutorial Program 6. Reviewing the Tutorial Program This section will look at each section of the tutorial code and basic debugging functionality in CubeSuite+. Program Initialisation Before the main program can run, the microcontroller must be configured. Due to the debugger configuration used for the Tutorial project and the rest of the sample projects, the user will not be able to step through the hardware initialisation code.
RSKRL78L13 6. Reviewing the Tutorial Program Main Functions This section will look at the program code called from with the main() function, and how it works. • Right click the ‘flash_lcd()’ function call and select ‘Go to Here’ to execute the program up to this line. The ‘Init_Display_Panel()’...
Page 21
RSKRL78L13 6. Reviewing the Tutorial Program • The program counter should come to a halt at the ‘Timer_ADC()’ function. • Step over the function by clicking the ‘Step Over’ button. Alternatively, press F10. The Timer_ADC() function starts a continuous A/D conversion and a periodic timer whose period is up-dated with the ADC result.
Page 22
RSKRL78L13 6. Reviewing the Tutorial Program • Press [F5] resume program execution. • Observe the string on the bottom line of the LCD panel change one character at a time from ‘RL78’ to ‘L13’ as the ‘static_test’ function is executed. •...
Page 24
REVISION HISTORY RSK RL78L13 Tutorial Manual Rev. Date Description Page Summary 1.00 Oct 07, 2013 First Edition issued 1.01 Mar 10, 2014 Applilet exe file location and Applilet web site information were added. Explanation of LCD connection was fixed.
Page 25
Renesas Starter Kit Manual: Tutorial Manual Publication Date: Rev. 1.01 Mar 10, 2014 Published by: Renesas Electronics Corporation...
Page 26
SALES OFFICES Refer to "http://www.renesas.com/" for the latest and detailed information. Renesas Electronics America Inc. 2801 Scott Boulevard Santa Clara, CA 95050-2549, U.S.A. Tel: +1-408-588-6000, Fax: +1-408-588-6130 Renesas Electronics Canada Limited 1101 Nicholson Road, Newmarket, Ontario L3Y 9C3, Canada...
Need help?
Do you have a question about the L1X Series and is the answer not in the manual?
Questions and answers