Renesas L1X Series User Manual

Renesas L1X Series User Manual

Renesas starter kit

Advertisement

Quick Links

RL78/L13 Group
32
16
RENESAS MCU
RL78 Family / L1X 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
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).
Renesas Starter Kit Tutorial Manual
For CubeSuite+
Rev. 1.01 Mar 2014

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the L1X Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Renesas L1X Series

  • 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...
  • Page 6: Table Of Contents

    Table of Contents 1. Overview ..........................7 Purpose ..............................7 Features ..............................7 2. Introduction ........................8 Application Leading Tool (Applilet) ......................8 3. Tutorial Project Workspace ....................9 Introduction ..............................9 Starting CubeSuite+ and Connecting the E1 Debugger ................9 Configuring the Debug Tool (E1) ......................
  • Page 7: Overview

    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: •...
  • Page 8: Introduction

    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? •...
  • Page 9: Tutorial Project Workspace

    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. •...
  • Page 12: Configuring The Debug Tool (E1)

    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.
  • Page 14: Build Configuration

    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.
  • Page 15: Building The Tutorial Program

    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.
  • Page 16: Connecting The Debugger

    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.
  • Page 18: Downloading And Running The Tutorial

    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.
  • Page 19: Reviewing The Tutorial Program

    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.
  • Page 20: Main Functions

    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 23: Additional Information

    Copyright This document may be, wholly or partially, subject to change without notice. All rights reserved. Duplication of this document, either in whole or part is prohibited without the written permission of Renesas Electronics Europe Limited. © 2013 (2014) Renesas Electronics Europe Limited. All rights reserved.
  • 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...
  • Page 27 RL78/L13 Group R20UT2126EG0101...

Table of Contents