All information contained in thes e m aterials, includi ng produc ts and prod uct s pecif ications, r eprese nts
information on the prod uct at the tim e of p ublicat ion a nd is su bjec t to c hange b y Renesas E lectron ics
Corporation without notice. Please review the latest information published by Renesas Electronics
Corporation through various means, including the Renesas Electronics Corporation website
Page 2
(2012.4)
Notice
1. 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 ass um es no responsibility for
any losses incurred by you or third parties arising from the use of these circuits, software, or information.
2. Renesas Electronics has used reasonable c are 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.
3. Renesas Electronics does not assume any liability for infringement of patents, copyrights, or other intellectual property
rights of third parties by or arising from the use of Renesas Electronics products or technical information described in
this document. No license, express, implied or otherwise, is granted hereby under any patents, copyrights or other
intellectual property rights of Renesas Electronics or others.
4. You should not alter, modify, copy, or otherwise misappropriate any Renesas Electronics product, whether in whole or
in part. Renesas Electronics assumes no responsibi li ty for any losses incurred by you or third parties arising from such
alteration, modification, copy or otherwise misappropriation of Renesas Electronics product.
5. 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 qual ity 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; anticrime systems; and safety equipment etc.
Renesas Electronics products are neither intended nor authorized for use in products or systems that may pose a
direct 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 produc t before using it in a particular application. You may not use any Renesas
Electronics product for any application f or 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 an y Renesas Electronics product for
which the product is not intended by Renesas Electronics.
6. 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.
7. Although Renesas Electronics endeavors to improve the quality and reliability of its produ c ts, semiconductor products
have specific characteristics such as the oc currence of failure at a certain rate and m al functions under certain use
conditions. Further, Renesas Electronics products are not subject to radiation resistance design. Please be sure to
implement safety measures to guard them against the possibility of physical injury, and injury or damage caused by fire
in the event of the failure of a Renesas Electronics product, such as safety design for hardware and software including
but not limited to redundancy, fire control and malfunction prevention, appropriate treatment for aging degradation or
any other appropriate measures. Because the evaluation of microcomputer software alone is very difficult, please
evaluate the safety of the final products or systems manufactured by you.
8. 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 as s umes no liability for damages or losses occurring as a result of your
noncompliance with applicable laws and regulations.
9. Renesas Electronics products and technology ma y n ot 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 desc ribed in this document for any purpos e relating to military
applications or use by the military, including but not limited to the development of weapons of mass destruction. When
exporting the Renesas Electronics products or technology described in this document, y ou should comply with the
applicable export control laws and regulations and follow the procedures required by such laws and regulations.
10. It is 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 c ontents and c ondi tions 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.
11. This document may not be reproduced or duplicated in any form, in whole or in part, witho ut prior written consent of
Renesas Electronics.
12. Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this
document or Renesas Electronics products, or if you have any other inquiries.
(Note 1) “Renesas Electronics” as used i n 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.
Page 3
The RSK is not guaranteed to be error free, and the entire risk as to the results and performance of the RSK is
conditions. A safe separation distance should be used between this and any sensitive equipment. Its use outside the
equipment causes harmful interference to radio or television reception, which can be determined by turning the
Disclaimer
By using this Renesas Starter Kit (RSK), the user accepts the following terms:
assumed by the User. The RSK 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 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
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 RSK, ev en
if Renesas or its affiliates have been advised of the possibility of such damages.
Precautions
The following precautions should be observed when operating any RSK product:
This Renesas Starter Kit is only intended for use in a laboratory environment under ambient temperature and humidity
laboratory, classroom, study area or similar such area invalidates conformity with the protection requirements of the
Electromagnetic Compatib ili t y Directive and cou ld lead to prosec utio n.
The product 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 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 equipm ent
• 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 Starter Kit does not represent an ideal reference design for an end product and does not fulfil the
regulatory standards for an end product.
Page 4
Particular attention should be paid to the precautionary notes when using the manual. These notes occur within the body
How to Use This Manual
1. Purpose and Target Readers
This manual is designed to prov ide the user with an u nderstanding of how to use the e
and debug software for the R SK pl atform. It is intended f or us er s des ign ing sample code on the RSK pl atform,
using the many different incorporated peripheral devices.
The manual comprises of step-by-step instructions to load and debug a project in e
intend to be a complete guide to software development on the RSK platform. Further details regarding
operating the RX111 microcontroller m ay be found in the Hardware Ma nual and within the provided sam ple
code.
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 RX111 Group. Make sure to refer to the latest versions of these
documents. The newest vers ions of the doc um ents listed m a y be obtained from the Renesas Electronic s Web
site.
Document Type Description Document Title Document No.
User’s Manual Describes the technical details of the RSK hardware. RSKRX111 User’s
Manual
Tutorial Provides a guide to setting up RSK environment,
running sample code and debugging programs.
Quick Start Guide Provides simple instructions to setup the RSK and
run the first sample, on a single A4 sheet.
Schematics Full detail circuit schematics of the RSK. RSKRX111
Hardware Manual Provides technical details of the RX111
microcontroller.
RSKRX111 Tutorial
Manual
RSKRX111 Quick
Start Guide
Schematics
RX111 Group
Hardware Manual
2
studio I DE to de velop
2
studio, but does not
R20UT2193EG
R20UT2194EG
R20UT2195EG
R20UT2192EG
R01UH0365EJ
Page 5
Abbreviation
Full Form
ADC
Analog-to-Digital Converter
E1
On-chip Debugger
EMC
Electromagnetic Compatibility
ESD
Electrostatic Discharge
LCD
Liquid Crystal Display
LED
Light Emitting Diode
MCU
Micro-controller Unit
PmodTM
This is a Digilent Pmod™ Compatible connector. PmodTM is registered to Digilent Inc.
RSK
Renesas Starter Kit
LIN
Local Interconnect Network
2. List of Abbreviations and Acronyms
Digilent-Pmod_Interface_Specification (Link valid at 26Jun2013)
1.2 Features ..................................................................................................................................................... 7
4. Building the Tutorial Program .......................................................................................... 15
4.1 Building the Code ..................................................................................................................................... 15
4.2 Connecting the Debugger ........................................................................................................................ 16
5. Downloading and Running the Tutorial ............................................................................ 18
5.1 Downloading the Program Code .............................................................................................................. 18
5.2 Running the Tutorial ................................................................................................................................. 18
6. Reviewing the Tutorial Program ....................................................................................... 19
6.1 Program Initialisation ............................................................................................................................... 19
6.2 Main Functions ......................................................................................................................................... 20
7. Additional Information ...................................................................................................... 23
Page 7
RSKRX111R20UT2194EG0100
Rev. 1.00
RENESAS STARTER KIT
Jul 3, 2013
1. Overview
1.1 Purpose
This RSK is an evaluation tool for Renesas microcontrollers. This manual describes how to get the RSK
tutorial started, and basic debugging operations.
1.2 Features
This RSK provides an evaluation of the following features:
• Renesas microcontroller programming
• User code debugging
• User circuitry such as switches, LEDs and a potentiometer
• Sample application
• Sample peripheral device initialisation code
The RSK board contains all the circuitry required for microcontroller operation.
R20UT2194EG0100 Rev. 1.00 Page 7 of 27
Jul 3, 2013
Page 8
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?
• How do I build an embedded application?
• How do I use Renesas’ tools?
The project generator will create a tutorial project with three selectable build configurations:
• ‘DefaultBuild’ is a project with debug support and optimisation level set to two.
• ‘Debug’ is a project built with the debugger support included. Optimisation is set to zero.
• ‘Release’ is a project with optimised compile options, producing code suitable for release in a product.
Files referred to in this manual are installed using the project generator as you work through the tutorials. The
tutorial examples in this manual assume that installation procedures described in the RSK Quick Start Guide
have been completed. Please refer to the Quick Start Guide for details of preparing the configuration.
Some of the illustrative screenshots in this document will show text in the form RXxxx. These are general
screenshots and are applicable across the whole RX family. In this case, simply substitute for RXxxx RX111.
These tutorials are designed to show you how to use the RSK and are not intended as a comprehensive introduction to
the CubeSuite+ debugger, compiler toolchains or the E1 emulator. Please refer to the relevant user manuals for more indepth information.
2.1 Note Regarding Source Code
It is possible that line numbers for source code illustrated in this document do not match exactly with that in
the actual source files. It is also possible that the source address of instructions illustrated in this manual differ
from those in user code compiled from the same source. These differences are minor, and do not affect the
functionality of the sample code nor the validity of this manual.
R20UT2194EG0100 Rev. 1.00 Page 8 of 27
Jul 3, 2013
Page 9
RSKRX111 3. Tutorial Project Workspace
3. Tutorial Project Workspace
3.1 Introduction
CubeSuite+ is an integrated development tool that allows the user to write, c ompile, program and debu g a
software project on the RX, 78K, RL and V850 fam il y of Renesas microcontrollers. Cube Suite + will hav e been
installed during the installation of the software support for the Renesas Starter Kit product. This manual wil l
describe the stages required to create and debug the supplied tutorial code.
3.2 Starting CubeSuite+ and Connecting the E1 Debugger
To use the program, start CubeSuite+ from the Windows
The first time CubeSuite+ is started, the One Point Advice dialog box will be shown:
TM
Start Menu.
The One Point Advice dialog box provides s ome useful tips when using CubeSuite+. Pres s ‘OK’ to skip the
advice and close the One Point Advice dialog. The user will then be presented with the Start panel.
Under the ‘Open Sample RSK Project’, open a new Tutorial project by selecting the RSKRX111_Tutorial
project template and click on ‘Go’ as shown below. This will save a copy of the RSKRX111_Tutorial project.
R20UT2194EG0100 Rev. 1.00 Page 9 of 27
Jul 3, 2013
Page 10
RSKRX111 3. Tutorial Project Workspace
•CubeSuite+ will presen t a ‘Create Project’
splayed under the ‘Subproject
•CubeSuite+ will create and open the
_Tutorial (Project) is the
belongs to the master project,
Folders containing the subprojects,
dialog box.
•Select all sub-projects b y click ing on each
checkbox and observe the information
di
information’ heading as you select each
project.
•Specify a name and location f or the new
project and click on ‘Create’
•A dialog box will appear if the location
specified does not exist; asking to creat e
the folder specified. Click ‘OK’.
project showin g the Project Tree as seen
in the screenshot opposite.
•RSKRX111
master project and includes the tools to
modify, build and debug the code.
•The File folder seen in the screenshot
RSKRX111_Tutorial.
•This folder contains and lists all project
source and header files incl udi ng text f iles
arranged in separate folder structures.
•
indicated by “(Subproject)”, are listed
below the File folder.
•Each subproject folder, when expanded,
reveals an identical tools and folder
structure to that of the master project,
RSKRX111_Tutorial.
•By default the RSKRX111_Tutorial project
is set as the active project, indicated by
the line under the project name.
R20UT2194EG0100 Rev. 1.00 Page 10 of 27
Jul 3, 2013
Page 11
RSKRX111 3. Tutorial Project Workspace
• To change the active project, right-click
• The File folder contains four subfolders.
double-click on the file.
on the project/subproj ec t n ame and select
“Set x as Active Project” (x represents the
project name).
This structure is common to all projects.
•Some of the source files were generated
by the Application Leading Tool (Applilet)
which are grouped under the Applilet
folder which itself is listed under the File
folder in the Proj ect Tree. These files are
prefixed with ‘r_’ to indicate that they were
generated by Applilet. All other usergenerated or user-included source files
are listed separately from files output by
the Applilet. For an introduction to the
Application Leading Tool (Applilet), see
§7.
•To open a file for viewing, right-click on
the file and select ‘Open’. Alternatively,
R20UT2194EG0100 Rev. 1.00 Page 11 of 27
Jul 3, 2013
Page 12
RSKRX111 3. Tutorial Project Workspace
• T he Project Tree will be displayed on the
• The opposite screen-shot indicates that
• Right click on RX E1(Serial) (DebugTool).
3.3 Configuring the Debug Tool (E1)
Note: The Tutorial sample project’s settin gs are pre-configured. This sec tion is intend ed t o fam iliarise the us er
with the debug tool settings for when they create their own project.
left-hand pane of CubeSuite+.
• T his can also be invoked from the menu
bar [View > Project Tree].
the selected Debug Tool is the E1.
• Click on Property.
• View the Connect Settings tab.
• Verify that the setti ngs match the opposite
screen-shot. In part icular for the RSK the
Main Clock Source sh ould be EX TAL, the
Main Clock Frequenc y should be 16MHz
and supply voltage should be 3.3V
Note: To supply external power to the target
board, set the ‘Power target from emulator.
(MAX 200mA)’ entry to ‘No’.
R20UT2194EG0100 Rev. 1.00 Page 12 of 27
Jul 3, 2013
Page 13
RSKRX111 3. Tutorial Project Workspace
The project is configured to halt code
•Right-click on CC-RX (Build Tool) from
execution on the first instruction of the main
function after programming the microcontroller. To specify another function as the
entry point:
• View the Download File Settings of the
RX111 E1’s property.
• C hange the ‘specified symbol’ to another
available function.
• Ensure to prefix the function name with
an underscore (“_”).
Note: Do not spec ify an interrupt handler
as the entry point.
3.4 Build Configuration
The build configurations are selected from the build tool’s Property panel. The options available are
DefaultBuild, Debug a nd Releas e. DefaultB uild and D ebug are conf igured f or use with the d ebugger. Release
is configured for the final ROM programmable code.
A common difference between the two builds is the op tim isation sett ing an d the a dditio n of deb ug inf orm ation.
With optimisation turn ed on, the debugger may seem to execute code in an unexpected order. To assist in
debugging it is often helpful to turn optimisation off on the code being debugged.
the Project Tree.
•Select ‘Property’.
R20UT2194EG0100 Rev. 1.00 Page 13 of 27
Jul 3, 2013
Page 14
RSKRX111 3. Tutorial Project Workspace
• The Common Options sheet will open by
• Click on the Compile Options sheet to
• Ensure the ‘Outputs debug information’
default.
•Verify that the Build Mode is set to
Debug.
view compiler options.
entry is set to ‘Yes(-debug)’.
•Ensure the ‘Optimisation’ entry is set to
‘0(-optimize=0).
R20UT2194EG0100 Rev. 1.00 Page 14 of 27
Jul 3, 2013
Page 15
RSKRX220 4. Building the Tutorial Program
•Review the options on e ach of the tabs to
corner of the Property window.
• Selecting the ‘Build Project’ toolbar button will build all projects listed in the project tree.
• Pressing [F7]. This is equivalent to pressing the ‘Build Project’ toolbar button.
F7
• Selecting the ‘Rebuild Project’ toolbar button will rebuild all project files.
• Selecting the ‘Build & Download’ toolbar button will only build the active project and
• Pressing [F6]. This is equivalent to pressing the ‘Build & Download’ toolbar button.
F6
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 im portant
when changing settings to be aware of the current configuration before modifying the settings.
be aware of the opt ions available. F or the
purposes of the tutor ial, leave all options
at default.
•When complete, the Property panel can
be closed by click ing [x] on the right -hand
4.1 Building the Code
There is a choice of three shortcuts available for building the project:
download the code to the target device after a successful build.
Build the project no w by pressing [F7] or pressing one of the build icons as sho wn above. During the build
each stage will be reported in the Out put W indow. The build will complete with an indication of any errors and
warnings encountered during the build.
R20UT2194EG0100 Rev. 1.00 Page 15 of 27
Jul 3, 2013
Page 16
RSKRX220 4. Building the Tutorial Program
4.2 Connecting the Debugger
For this tutorial it is not necessary to provide an external power supply to the board. The power will be
obtained from the USB port . Pl ease be aware that if you ha ve t oo many devices connect ed to your USB port it
may be shut down by W indows. If this happens rem ove some devices a nd try again. Alternatively provide an
external power source taking care to ensure the correct polarity and voltage.
Other sample code supplied with this RSK will require a variable power supply; in which case an external 0-5V
variable power supply should be used. 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.
•Fit the LCD display to the RSK board on the right angled PMOD connector. Ensure all the pins of the
connector are correctly inserted in the socket.
• Connect the E1 Debugger to a free USB port on your computer.
• Connect the E1 Debugger to the target hardware ensuring that it is plugged into t he connector marked
‘E1’.
•If supplying external power to the board please refer to Section 3.3 to turn off the option of supplying
power from the E1 before turning on the external power supply.
R20UT2194EG0100 Rev. 1.00 Page 16 of 27
Jul 3, 2013
Page 17
RSKRX220 4. Building the Tutorial Program
If you have changed any project settings
If you make any c ha nges to files in C ube Su ite + and w ant
You can also save files by click ing the ‘Save’ or ‘Save All’
S
Ctrl
+
4.3 Saving Project Settings
this is a good time to save the project.
•Select ‘File’ | ‘Save Project’.
to preserve these change, you can save them by:
•Select ‘File’ | ‘Save All’.
buttons from the CubeSuite+ toolbar.
In addition files can be saved using the keyboard
shortcut [Ctrl + S]:
R20UT2194EG0100 Rev. 1.00 Page 17 of 27
Jul 3, 2013
Page 18
RSKRX111 5. Downloading and Running the Tutorial
• Click on the program download button.
• On completion of program download,
executed. The program counter
Once the program has been downloaded onto the RS K device, the program can be exec uted.
the review section.
5.Downloading and Running the Tutorial
5.1 Downloading the Program Code
Now that the code has been built in CubeSuite+ it needs to be downloaded to the RSK.
Alternatively, select Debug from the
Menu bar and click on Download.
the debugger and code are read y to be
indicator will point to first line of code
inside the main function; this is the
program’s entry point and is located in
r_cg_main.c
5.2 Running the Tutorial
Click the ‘Go’ button or press F5 to begin the program from the current program counter
position. It is recomm ended that you run through the program once first, and then cont inue to
R20UT2194EG0100 Rev. 1.00 Page 18 of 27
Jul 3, 2013
Page 19
RSKRX111 6. Reviewing the Tutorial Program
Ensuring the Tutorial program has been download ed onto the RX111; press t he ‘CPU Reset’ button
• From the Menu bar select
View > Disassemble >
Disassemble1. Alternatively,
To make the Display
6.Reviewing the Tutorial Program
This section will look at each section of the tutorial code and basic debugging functionality in CubeSuite+.
6.1 Program Initialisation
Before the main program can run, the micr ocontroller must be conf igured. Due to the de bugger configurati on
used for the Tutorial project and t he rest of the sample proj ects, the user will not be a ble to step thr ough the
hardware initialisation code. Please refer to Section 3.3 to change the entry point after programming the
microcontroller. Specify ‘_R_Systeminit’ as the function nam e if viewing of hardware initialisat ion is desired.
The initialis ation code is ex ecuted every tim e the device is r eset via the reset s witch or from a power reboot.
The user is advised not to use the ‘step’ feature of the debugger to exit the R_Systeminit function.
on the Debug Toolbar.
use the Display Disassemble
button to open and view the
‘source and disassembly’.
•
Disassemble button available
on the toolbar, right-click on
the toolbar and select ‘View
Panels’.
Revert back to the source by clicking
on the file containing the function
pointed to by the program counter
indicator. Alternatively, right click in
the Disassemble1 window and click
"Jump to Source"
R20UT2194EG0100 Rev. 1.00 Page 19 of 27
Jul 3, 2013
Page 20
RSKRX111 6. Reviewing the Tutorial Program
• Right click the ‘Flash_LED()’
• Set a software breakpoint on the
‘timer_adc()’ function call by
LED()’ function.
F11
the LEDs, through the
Toggle_LED function at regular
6.2 Main Functions
This section will look at the program code called from with the main() function, and how it works.
function call and select ‘Go to
Here’ to execute the program up to
this line. The ‘Display_LCD()’
function is used t o write “ Renesas ”
onto the top line and “
the bottom line.
RX111” onto
clicking on the On-Ch ip Break point
column to the left of the number
column.
•Click the ‘Step In’ button to step
into the ‘Flash_
Alternatively, press [F11].
•The Flash_LED function toggles
intervals.
•The ‘while’ statement checks the
g_switch_flag variable for switch
press detections and the value of
the flash_count variable, which
counts down with every LED f lash.
Once a switch has been pressed
or the count variable reaches zero,
the function exits the ‘while’ loop.
•Press the
program execution.
button to resume
R20UT2194EG0100 Rev. 1.00 Page 20 of 27
Jul 3, 2013
Page 21
RSKRX111 6. Reviewing the Tutorial Program
• The program counter should
come to a halt at the
Step over the function by
F10
• Open the ‘r_cg_cmt_user.c’
Continue to execute the
• The program will halt at the
Remove the hardware
timer_adc function.
•
clicking the ‘Step Over’ button.
Alternatively, press F10.
The timer_adc function starts a
continuous A/D conversion and a
periodic timer whose p eriod is updated with the ADC result.
This timer is used to flash the
LEDs at a variable rate.
file.
• Set a hardware breakpoint on
the first line of code inside the
r_cmt_cmi1_interrupt()’
‘
interrupt handler by rightclicking on the first instruction
line > Break Settings > Set
Hardware Break.
•
program by pressing the
button.
hardware breakpoint due to
the timer’s period elapsing.
•
breakpoint by clicking on the
icon once.
R20UT2194EG0100 Rev. 1.00 Page 21 of 27
Jul 3, 2013
Page 22
RSKRX111 6. Reviewing the Tutorial Program
• Press [F5] to resume program
as the ‘static_test’ function is
After all characters have been
• Press the ‘Stop’ button to halt
execution.
• O bs erve t he s tri ng o n th e bottom line
of the LCD change one ch aracter at
a time from ‘STATIC’ to ‘TESTTEST’
executed.
•
changed, the LCD panel’s second
line will return to displaying ‘
RX111’.
program execution.
• This is the extent of the tutorial code.
For further details regarding hardware configuration, please refer to the RX Family Software Manual and the RX111
Hardware Manual.
The E1 emulator features advanced logic-based event point trigger system, and full instruction on its use is outside the
scope of this tutorial. For further details, please refer to the E1 Emulator User’s Manual
R20UT2194EG0100 Rev. 1.00 Page 22 of 27
Jul 3, 2013
Page 23
RSKRX111 7. Additional Information
7. Additional Information
Te chnical Support
For details on how to use CubeSuite+, refer to the manual available on the DVD or from the web site.
Parts of the sample code pr ov ided wit h th e R SKRX111 can be reproduce d us ing the ‘Application Leading Tool’
(Applilet) code generator tool. Applilet can be downloaded from the Renesas website.
Source files and functions generated by Applilet are prefixed with ‘r_’ and ‘R_’, respectively.
For information about the RX111 series microcontrollers refer to the RX111 G roup Hardware Manual.
For information about the RX assembly language, refer to the RX Family Software Manual.
Technical Contact Details
Please refer to the contact detail s listed in section 8 of the “Quick Start Guide”
General information on Renesas microcontrollers can be found on the Renesas website at:
http://www.renesas.com/
Trademarks
All brand or product nam es used in this manual are t rademarks or registered tradem arks of their respective
companies or organisations.
Copyright
This document m ay be, wh olly or partia lly, subject to change without notice. All rights reserved. Duplica tion of
this document, either in whole or part is prohibited without the written permission of Renesas Electronics
Europe Limited.
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.
Unit 906, Block B, Menara Amcorp, Amcorp Trade Centre, No. 18, Jln 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