Renesas RX111 User Manual

Renesas RX111 User Manual

Rx family / rx100 series starter kit
Hide thumbs Also See for RX111:

Advertisement

Quick Links

RX111 Group
32
32
RENESAS MCU
RX Family / RX100 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.00 Jul 2013

Advertisement

Table of Contents
loading

Summary of Contents for Renesas RX111

  • 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 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.
  • 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 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 RX111 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.
  • Page 5 Analog-to-Digital Converter On-chip Debugger Electromagnetic Compatibility Electrostatic Discharge Liquid Crystal Display Light Emitting Diode Micro-controller Unit Pmod This is a Digilent Pmod™ Compatible connector. Pmod is registered to Digilent Inc. Digilent-Pmod_Interface_Specification (Link valid at 26Jun2013) Renesas Starter Kit Local Interconnect Network...
  • Page 6: Table Of Contents

    Table of Contents 1. Overview ..........................7 Purpose ..............................7 Features ..............................7 2. Introduction ........................8 Note Regarding Source Code ........................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 Jul 3, 2013 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

    RSKRX111 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 RSKRX111 3. 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 RSKRX111 3. 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). • The File folder contains four subfolders. This structure is common to all projects. •...
  • Page 12: Configuring The Debug Tool (E1)

    RSKRX111 3. 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: Build Configuration

    To specify another function as the entry point: • View the Download File Settings of the RX111 E1’s property. • Change the ‘specified symbol’ to another available function. • Ensure to prefix the function name with an underscore (“_”).
  • Page 14 RSKRX111 3. Tutorial Project Workspace • The Common Options sheet will open by default. • Verify that the Build Mode is set to Debug. • Click on the Compile Options sheet to view compiler options. • Ensure the ‘Outputs debug information’ entry is set to ‘Yes(-debug)’.
  • Page 15: Building The Tutorial Program

    RSKRX220 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 CC-RX (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 RSKRX111 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: Saving Project Settings

    RSKRX220 4. Building the Tutorial Program Saving Project Settings If you have changed any project settings this is a good time to save the project. • Select ‘File’ | ‘Save Project’. If you make any changes to files in CubeSuite+ and want to preserve these change, you can save them by: •...
  • Page 18: Downloading And Running The Tutorial

    RSKRX111 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

    The initialisation code is executed every time the device is reset via the reset switch or from a power reboot. The user is advised not to use the ‘step’ feature of the debugger to exit the R_Systeminit function. Ensuring the Tutorial program has been downloaded onto the RX111; press the ‘CPU Reset’ button on the Debug Toolbar.
  • Page 20: Main Functions

    ‘Go to Here’ to execute the program up to this line. ‘Display_LCD()’ function is used to write “Renesas” onto the top line and “RX111” onto the bottom line. • Set a software breakpoint on the ‘timer_adc()’ function...
  • Page 21 RSKRX111 6. Reviewing the Tutorial Program • The program counter should come halt 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 • After characters have been changed, the LCD panel’s second line will return to displaying ‘RX111’. • Press the ‘Stop’ button to halt program execution. • This is the extent of the tutorial code. RX111 For further details regarding hardware configuration, please refer to the RX Family Software Manual and the Hardware Manual.
  • 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 Renesas Electronics Europe Limited. All rights reserved.
  • Page 24 REVISION HISTORY RSK RX111 Tutorial Manual Rev. Date Description Page Summary  1.00 Jul 3, 2013 First Edition issued...
  • Page 25 Renesas Starter Kit Manual: Tutorial Manual Publication Date: Rev. 1.00 Jul 3, 2013 Published by: Renesas Electronics Corporation...
  • Page 26 SALES OFFICES http://www.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...
  • Page 27 RX111 Group R20UT2194EG0100...

Table of Contents