Renesas RX111 User Manual Download 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). 
 
 
 

 

 
 
 
 
 
 
 
 
 
 

 
 
 
 

RX111 Group 

 

Renesas Starter Kit Tutorial Manual 

For Cu 

 

Rev. 1.00 Jul 2013 

 

32 

RENESAS MCU 
RX Family / RX100 Series 

32 

U

ser

’s

 M

anual

 

Summary of Contents for RX111

Page 1: ...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 RX111 Group Renesas Starter Kit Tutorial Manual For CubeSuite Rev 1 00 Jul 2013 32 RENESAS MCU RX Family RX100 Series 32 User s Manual ...

Page 2: ... 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 products semiconductor products have specific characteristics such as th...

Page 3: ...e 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 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 ...

Page 4: ...age 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 versions of the documents listed may be obtained from the Renesas Electronics Web site Document Type Description ...

Page 5: ...ic Compatibility ESD Electrostatic Discharge LCD Liquid Crystal Display LED Light Emitting Diode MCU Micro controller Unit Pmod TM This is a Digilent Pmod Compatible connector Pmod TM is registered to Digilent Inc Digilent Pmod_Interface_Specification Link valid at 26Jun2013 RSK Renesas Starter Kit LIN Local Interconnect Network ...

Page 6: ...er 9 3 3 Configuring the Debug Tool E1 12 3 4 Build Configuration 13 4 Building the Tutorial Program 15 4 1 Building the Code 15 4 2 Connecting the Debugger 16 4 3 Saving Project Settings 17 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 In...

Page 7: ...al 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 op...

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

Page 9: ... 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 TM Start Menu The first time CubeSuite is started the One Point Advice dialog box will be shown The One Point Advice dialog box provides some useful tips when using CubeSuite Press OK to skip the advice and close the One Point Adv...

Page 10: ...t showing the Project Tree as seen in the screenshot opposite RSKRX111_Tutorial Project is the master project and includes the tools to modify build and debug the code The File folder seen in the screenshot belongs to the master project RSKRX111_Tutorial This folder contains and lists all project source and header files including text files arranged in separate folder structures Folders containing...

Page 11: ...s 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 Project Tree These files are prefixed with r_ to indicate that they were generated by Applilet All other user generated or user included source files are listed separately from files output by the Applilet For an introduction to the Application L...

Page 12: ...ft hand pane of CubeSuite This can also be invoked from the menu bar View Project Tree The opposite screen shot indicates that the selected Debug Tool is the E1 Right click on RX E1 Serial DebugTool Click on Property View the Connect Settings tab Verify that the settings match the opposite screen shot In particular for the RSK the Main Clock Source should be EXTAL the Main Clock Frequency should b...

Page 13: ...rupt 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 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...

Page 14: ...7 Jul 3 2013 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 Ensure the Optimisation entry is set to 0 optimize 0 ...

Page 15: ... corner of the Property window 4 1 Building the Code There is a choice of three shortcuts available for building the project 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 Downlo...

Page 16: ...iable 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 an...

Page 17: ...ings 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 Select File Save All You can also save files by clicking the Save or Save All buttons from the CubeSuite toolbar In addition files can be saved using the keyboard shortcut Ctrl S S Ctrl ...

Page 18: ... Download On completion of program download the debugger and code are ready to be executed The program counter 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 Once the program has been downloaded onto the RSK device the program can be executed Click the Go button or press F5 to begin the pr...

Page 19: ...n name if viewing of hardware initialisation is desired 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 From the Menu bar sele...

Page 20: ...ftware breakpoint on the timer_adc function call by clicking on the On Chip Breakpoint column to the left of the number column Click the Step In button to step into the Flash_LED function Alternatively press F11 F11 The Flash_LED function toggles the LEDs through the Toggle_LED function at regular intervals The while statement checks the g_switch_flag variable for switch press detections and the v...

Page 21: ...timer whose period is up dated with the ADC result This timer is used to flash the LEDs at a variable rate Open the r_cg_cmt_user c file Set a hardware breakpoint on the first line of code inside the r_cmt_cmi1_interrupt interrupt handler by right clicking on the first instruction line Break Settings Set Hardware Break Continue to execute the program by pressing the button The program will halt at...

Page 22: ... 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 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 o...

Page 23: ... RX assembly language refer to the RX Family Software Manual Technical Contact Details Please refer to the contact details 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 names used in this manual are trademarks or registered trademarks of their respective compan...

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: ... 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 Te...

Page 27: ...R20UT2194EG0100 RX111 Group ...

Reviews: