Home
Renesas Starter Kit+ for RX63N
Contents
1. LENESAS RX63N Group Renesas Starter Kit Tutorial Manual For e studio 32 RENESAS MCU RX Family RX600 Series All information contained in these materials including products and product specifications rep resents 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 Electronics WWW renesas com Rev 1 00 Aug 2014 Notice 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 assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits software or information to Renesas Electronics has used reasonable care 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
2. 87 count 1 Create delay between replacing characters Delay s luj Replace letter number count of gBeplaceStr from gConstStr gReplaceStr count gConst tr count Update the debug LCD with the contents of gReplaceStr Display LCDiLCD LINES gReplacestr i Add a delay before overwriting the string Delay _s 2u Write MCU nickname to LCD again Display LCD LCD LINE2 NICKNAME R20UT3077EG0100 Rev 1 00 Aug 14 2014 RENESAS Page 17 of 23 RSK RX63N 256K 4 Basic Debugging of the Tutorial Program e Click the resume button to run the code through e You can observe the user LED flash rate vary as you adjust the potentiometer at the same time as the debug LCD string change character by character from STATIC to TESTTEST e This is the extent of the tutorial code R20UT3077EG0100 Rev 1 00 Page 18 of 23 Aug 14 2014 LENESAS RSK RX63N 256K 5 Additional Information 5 Additional Information Technical Support For details on how to use e studio refer to the help file by opening e studio and click Project Run Window ing Help and selecting Help Contents PET Q9 Welcome 2 Help Contents TP Search Dynamic Help Running Key Assist Ctrl Shitt L Tips and Tricks i Report Bug or Enhancement For information about the RX63N series microcontrollers refer to the RX63N Group RX631 Group User s Manual Hardware Fo
3. Malaysia Tel 60 3 7955 9390 Fax 60 3 7955 9510 Renesas Electronics Korea Co Ltd 12F 234 Teheran ro Gangnam Ku Seoul 135 920 Korea Tel 82 2 558 3737 Fax 82 2 558 5141 O 2014 Renesas Electronics Corporation All rights reserved Colophon 3 0 RX63N Group LENESAS Renesas Electronics Corporation R20UT3077EG0100
4. EEE EE EEE EE E EE REE EE E EE E REE RE E EE REE EEE E EEE EEE RE RE EEE EE EEE EEE REE 2C 2C 2C C OC C OE OE E OE X c resetprg c Le hwsetup c Le main c 23 c flashLED c 111 x onto the LCD display then calls the flashLED and TimerADC 112 functions The function then calls the statics test routine 113 before waiting in an infinite while loop 114 Argument none 115 Return value none TR aic oie ce cie cie e ode oic oe e oc oie e oc oc oe oe oc ofc oe oe oc oe oe oc oe oe oe ofc oe oe oie oic oe oe oe oe oe oe oc oe oe oe oe oe oe oc oe oe oe oe oe oe oe oe oe oC oe oe oe oc oe oe oe oe oe E oC E 0E 9L 116 1 ffe0087a ffe0087e 7 ffe00897 30 ffe0089b ffeoosof gt void main void Initialise the debug LCD Init LCD Displays the Renesas splash screen Display LCD LCD LINE1 Renesas Display LCD LCD LINE2 NICKNAME Begins the initial LED flash sequence Flash LED Begins the ADC varying flash Sequence Timer ADC Begins the static variable test Static Test Infinite while loop while 1 E RR RR h hoch chon void Static Test roid Declare loop count variable uinta t count Du Write ucStr variable STATIC to LCD Display LCDILCD LINES gReplacedtr Begin for loop which writes one letter of gqConstStr to the LCD at a time The nested while loops generate the delay between each letter change for count Of count
5. access e A user account control dialog may be displayed Enter the administra tor password and click Yes e e studio may display a dialog ask ing if you would like to switch to the Renesas Debug perspective Chick Yes e The new e studio perspective lay out 1s optimised for debugging 3 4 Running the Tutorial e Once the code has been downloaded the program counter will stop at the entry vector usually the PowerON Reset PC function e Click the Resume button to let the code run It will keep running up to the main function Execute the main code function e tis recommended that you execute the entire tutorial demo first before continuing to debug it R20UT3077EG0100 Rev 1 00 Aug 14 2014 3 Project Workspace Windows Security Alert e Windows Firewall has blocked some features of this program Windows Firewall has blocked some features of e2studio on all public and private networks e Name fe 2studio Publisher Unknown Path C enesasle2_studioledipsele2studio exe Allow e2studio to communicate on these networks Y Private networks such as my home or work network Public networks such as those in airports and coffee shops not recommended because these networks often have little or no security What are the risks of allowing a program through a firewall LENESAS Ai This kind of launch is configured to open the Debu
6. any liability for infringement of patents copyrights or other intellectual property rights of third parties by or arising from the use of Renesas Electronics producis 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 responsibility 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 quality 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 anti crime systems and safety equipment etc Renesas Electronics products are neither intended nor authorized for use in products or syst
7. from this dialog type filter text laj Press the New button to create a configura EX Debug only c GDE Hardware Debuggi cx GDB Simulator Debuggi ii GHS Local C C Launc Press the Filter button to configure filterinc Press the Duplicate button to copy the sele J amp Press the Delete button to remove the sele i or view an existing configuration by seli Configure launch perspective settings from the P Mame Tutorial Main Debugger gt B Startup Es Source E Common Debug hardware Target Device RBF563MF GDB Settings Connection Settings Debug Tool Settings 4 Clock Main Clock Source EXTAL Extal Frequency MHz 12 0000 Permit Clock Source Change On Writin Yes 4 Connection with Target Board Emulator Auto Connection Type JTaq JTag Clock Frequency MHz 16 5 Fine Baud Rate Mbps 0 00 Hot Plug Mo 4 Power Power Target From The Emulator MA No Supply Voltage 3 3V 4 CPU Operating Mode Register Setting Single Chip Mode pin Single chip mode 4 Communication Mode Mode Debug Mode Execute The User Program After Endinc Mo R20UT3077EG0100 Rev 1 00 Aug 14 2014 RENESAS Page 13 of 23 RSK RX63N 256K e Click the debug button to continue e studio will now connect to the debugger and download the code to the target e A firewall warning may be dis played for e2 server gdb exe Check the Private networks such as my home or work network box and click Allow
8. the project generator as you work through the tutorials The tuto rial 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 These tutorials are designed to show you how to use the RSK and are not intended as a comprehensive introduction to e studio compiler toolchains or the E1 emulator Please refer to the relevant user manuals for more in depth infor mation 2 1 Note Regarding Source Code Due to the project generator it is possible that the line numbers for source code illustrated in this document does not match exactly with that in the actual source files It is also possible that the source address of instructions illus trated in this manual differs from a user s code compiled from the same source These differences are minor and do not effect the functionality of the sample code or the validity of this accompanying manual R20UT3077EG0100 Rev 1 00 Page 8 of 23 Aug 14 2014 LENESAS RSK RX63N 256K 3 Project Workspace 3 Project Workspace 3 1 Introduction e studio is an open source integrated development tool that allows the user to write compile program and debug a software project on many of the Renesas Microcontrollers 3 2 Starting e studio and Importing Sample Code 2 l e Start e studio by selecting it from Start Workspace Launcher
9. to setup the RSK and RSK RX63N 256K R20UT3078EG run the first sample on a single A4 sheet Quick Start Guide USB Function Provides sample instructions to configure the RSK RSK RX63N USB R20UT0442EG Manual and Host PC for running the USB function sample Function Manual code Schematics Full detail circuit schematics of the RSK RSK RX63N 256K R20UT0437EG Schematics Hardware Manual Provides technical details of the RX63N microcon RX63N Group RO1UH0041EJ troller RX631 Group User s Manual Hardware 2 List of Abbreviations and Acronyms Abbreviation Mm O All trademarks and registered trademarks are the property of their respective owners Table of Contents TE SR CN to ut ru D UU UTER 7 et A one ceteesus eT Tm T 7 MZ viN ko Eelementum nanan M MEE EM RR ML TT REAR AR HA 7 1 3 NCOP MM e 7 O E T REY 8 2 1 Note Regards Soure Oe ML n 8 DS BrOIGCt W OLKS PICS id 9 3 1 A P 9 3 2 Starting e studio and Importing Sample Code tette te terrere tette treni 9 3 3 Build Configurations and Debug SESSIONS pr A A A AAA 12 3 3 1 Build CO odio 12 3 32 De bie Conti9UuraltOfi A A SIE NU SA lo 13 od Runtime tre MONA slo dad 14 4 Basic Debussins of he Totoral Proa UA a KAV 15 4 1 Prostam INIAN AMON dietas 15 do Man PUDSHOEHS casa asi garra A A SOGRO tSp DILE II MD DI LT ID DM IE ee 16 5 Additional Informat
10. CS Menu The first dialog to appear will be e2 studio stores your projects in a folder called a workspace the Wor ksp ace Launcher Choose a workspace folder to use for this session Workspace CAWorkspace e Click Browse and select a suitable loca tion to store your workspace using the Make New Folder option as necessary Click OR Use this as the default and do not ask again e Click Yes when presented with the Ad ig Administrator Privilege ministrator Privilege dialog Administrative privileges are required for correct operation of ez Studio on Windows 7 Please ensure you have appropriate privileges e Right click renesas eclipse exe and choose Run as Administrator Do you want to continue e The e2 studio welcome splash screen will EE appear Click the Go to the workbench 3 _ arrow button on the far right is Welcome RENESAS R20UT3077EG0100 Rev 1 00 Page 9 of 23 Aug 14 2014 LENESAS RSK RX63N 256K 3 Project Workspace 2 ds tas lt e Once the e studio environment has initial ef C C e2 studio ised right click in the project explorer File Edit Source Refactor Navigate Search Project window and click mol A ACA Er NER ENIM A Import a A ee ja Fy Project Explorer 53 l e The Import dialog will now appear Ex pand the General folder icon and select Existing Projects i
11. FPSW init add a software breakpoint indicated la Fukkislins the cU stack urea by a blue tick and a dot 7 Click the Resume button to run the Configure the MCU and RSK hardware HardwareSetup code up to this breakpoint Execute a NOP instruction nop Ls Set Ubit and Ibit for PSW set psw PSW init e Click the Step Into button e resetprg c hwsetup c 52 57 Outline HardwareSetup or press F5 to step into AL 58 Description Contains all the setup functions called at device restart 59 Argument none the HardwareSetup func ejm SS LE Tage 61 a i tion 2 void HardwareSetup void 1 e The HardwareSetup function calls 64 ffe00602 ConfigureOperatingFrequency e e 2 ffe00605 ConfigureOutputPorts several initialisation functions which 66 ffeV0608 ConfigureInterrupts ffe0060b EnablePeripheralModules configure the MCU for normal oper 58 ation This includes input output i E End of function HardwareSetup 71 aic oke cie e e cie e e oe dic ac c ic ako cic o ks ke cde oke cde oko cde cde oko cie ako cie cic ako ko ko ke ae oke oko oko cde cie cde ako ako oko ako ako cie kc ke cie ke kc cde cie cfe ke ke dc ke ke ke ke kc I ports and system clocks e The user can step through all the initialisation code by clicking the Step Into icon and reading the code and comments For this guide we will skip past 1t e Click the Resu
12. Ion s s s s s es svcsssvcsssvascuvavcusevcssevassavancasarcusevenstevascavasceaveses 19 ENESAS RSK RX63N 256K RENESAS STARTER KIT 1 1 1 Overview Purpose R20UT3077EG0100 Rev 1 00 Aug 14 2014 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 1 3 Scope This manual covers the RSK RX63N 256K which is fitted a R5F563NFDDFC microcontroller For the RSK RX63N please refer to Tutorial Manual R20UT2044EG which can be found at http www renesas com rskrx63n R20UT3077EG0100 Rev 1 00 Apa Lo RENESAS Page 7 of 23 RSK RX63N 256K 2 Introduction 2 Introduction This manual is designed to answer in tutorial form the most common questions asked about using a Renesas Start er Kit RSK The tutorials help explain the following e How do I compile link download and run a simple program on the RSK e How do I build an embedded application e How do I use Renesas tools Files referred to in this manual are installed using
13. K RSK RX63N 256K A CAN C Renesas Workspace RSK RSK RX63N 256K CAN CDC C Renesas Workspace RSK RSK RX63N 256K CDC CRC C Renesas Workspace RSK RSK RX63N 256K CRC A Y s S S S Y S DAC C Renesas Workspace RSK RSK RX63N 256K DAC 4 nm Options Search for nested projects Copy projects into workspace Working sets Add project to working sets Br LENESAS b 15 Timer Event gt LS Timer Mode b E Tutorial HardwareDebug t l ulP Demo Page 11 of 23 RSK RX63N 256K 3 Project Workspace 3 3 Build Configurations and Debug Sessions 3 3 1 Build Configuration The e studio project will be created with two build configurations these will be HardwareDebug and Release Release This build mode has optimisation turned on and provides little debug information The C code instruction execu tion may appear to be out of order due to the way compiler optimises the code This build configuration is intended for final ROM programmable code HardwareDebug This build mode has all optimisation turned off and provides full debug information This 1s the best configuration to use whilst developing code C code instruction execution will be linear e Click the top level tutorial project A m fe x i E folder again and then the arrow next to the build v lHardwareDebug Debug on hardware button hammer e 2 Release Release No Debug icon
14. Tel 1 408 588 6000 Fax 1 408 588 6130 Renesas Electronics Canada Limited 1101 Nicholson Road Newmarket Ontario L3Y 9C3 Canada Tel 1 905 898 5441 Fax 1 905 898 3220 Renesas Electronics Europe Limited Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH U K Tel 44 1628 585 100 Fax 44 1628 585 900 Renesas Electronics Europe GmbH Arcadiastrasse 10 40472 D sseldorf Germany Tel 49 211 6503 0 Fax 49 211 6503 1327 Renesas Electronics China Co Ltd Room 1709 Quantum Plaza No 27 ZhiChunLu Haidian District Beijing 100191 P R China Tel 86 10 8235 1155 Fax 86 10 8235 7679 Renesas Electronics Shanghai Co Ltd Unit 301 Tower A Central Towers 555 Langao Road Putuo District Shanghai P R China 200333 Tel 86 21 2226 0888 Fax 86 21 2226 0999 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 2265 6688 Fax 852 2886 9022 9044 Renesas Electronics Taiwan Co Ltd 13F No 363 Fu Shing North Road Taipei 10543 Taiwan Tel 886 2 8175 9600 Fax 886 2 8175 9670 Renesas Electronics Singapore Pte Ltd 80 Bendemeer Road Unit 406 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 Jin Persiaran Barat 46050 Petaling Jaya Selangor Darul Ehsan
15. and select the HardwareDebug option e e studio will now build the code R20UT3077EG0100 Rev 1 00 Page 12 of 23 Aug 14 2014 CENESAS RSK RX63N 256K 3 Project Workspace 3 3 2 Debug Configuration e Click the arrow next to the debug button bug icon Select Debug Configurations e The Debug Configuration dialog will appear Click the small arrow next to Renesas GDB Hardware Debugging option e The build configurations for each project will appear Select the entry for the tutorial project e Ensure J8 and J9 are open Failure to do so will result in damage to the RSK e Connect the 12V power supply e The debug configurations control page will then show for the tutorial project Change the main tab to Debugger and then secondary tab to Connection Settings Check through the debugger settings Re fer to the RSK s User Manual for details of power supply configura tions Note e studio will display a warning dialog if you attempted to connect with an incorrect power supply setting Note f you wish to use breakpoints in the debugging session you will need to set permit clock source change on writing internal flash memory yes no launch history Debug As Debug Configurations Organize Favorites Debug Configurations Create manage and run configurations E Se Configure launch settings
16. d to be error free and the entire risk as to the results and performance of the RSK is 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 dis claims 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 di rect or indirect special incidental or consequential damages arising out of or in relation to the use of this RSK even 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 conditions A safe separation distance should be used between this and any sensitive equipment Its use outside the laboratory classroom study area or similar such area invalidates conformity with the protection requirements of the Electromagnetic Compatibility D
17. ding but not limited to the development of weapons of mass destruction When exporting the Renesas Electronics products or technology described in this document you 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 contents and conditions 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 without prior written consent of Renesas Electronics 12 Please contact a Renesas Electronics sales office if vou have any questions regarding the information contained in this document or Renesas Electronics products or if vou have any other inquiries Note 1 Renesas Electronics as used in 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 2012 4 Disclaimer By using this Renesas Starter Kit RSK the user accepts the following terms The RSK is not guarantee
18. ems 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 product before using it in a particular application You may not use any Renesas 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 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 products semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions Further Renesas Electronics products are not subject to radiation resistance de
19. g perspective when it suspends This Debug perspective is designed to support application debugging It incorporates views for displaying the debug stack variables and breakpoint management Do you want to open this perspective now Remember my decision Page 14 of 23 RSK RX63N 256K 4 Basic Debugging of the Tutorial Program 4 Basic Debugging of the Tutorial Program This section will look at basic debugging functionality in e studio 4 1 Program Initialisation Before the main program can run the microcontroller must be configured The following parts of the tutorial pro gram are used exclusively for initialising the RSK device so that the main function can execute correctly The ini tialisation code is run every time the device is reset via the reset switch or from a power reboot e After downloading the code The resetprg c 3 e mainc c Oxffffffff Description This program is the MCU S entry point from a power on reset File window will open the Tutorial The function configures the MCU stack then calls the HardwareSetup function and main function sequentially code at the entry point The program mo kalba eros Return value none counter position will be highlighted e Double click the blue section to the left of the code in line with the Initialise the MCU processor word i o set intb sectop C VECT HardwareSetup line This will set fpsw
20. ight click in the blue section to the right and select Toggle Before PC Eventpoint e This will insert a hardware event point at this code line e Delete Relocated Breakpoint Go to Disassembly Toggle Timer Start Eventpoint Toggle Timer Stop Eventpoint Le resetprg c Le hwsetup c Le main c 23 116 vuv EE EE EEE IEEE iii 117 gt void main void 118 119 Initialise the debug LCD gt 120 ffe0087a Init LCD 121 122 Displays the Renesas splash screen 123 ffe0087e Display LCD LCD LINE1 Renesas 124 ffe0088a Display LCD LCD LINE2 NICKNAME 125 126 Begins the initial LED flash sequence 127 ffe00897 Flash LED 129 Begins the ADC varying flash Sequence 30 ffe0089b Timer ADC 131 132 Begins the static variable test 133 ffe0089f Static Test 134 35 Infinite while loop 136 while 1 137 138 SSESSESSESESESSSSESSS EEE EEE AECE EEE EEE EEE gt gt 7 139 End of function main 140 gt gt gt gt gt EE EE EE EE REE EEE EEE EEE EE REE OC 2C 2C 2C 2C 3C 3C 3C C C 2C 3C C OC OC 2C OC 2C 2C 2C 2C 2C 2C 3C SS 2C C 2C 2C C OC 2C 2C C OC OC OC OC OE OE OE OE OE OE OC 126 Begins the initil Declarations 127 ffe00897 Flash LED 128 References 129 Begins the ADC v Search Text gt 130 ffe0089b Timer_ADC 131 Step Into Selection Ctrl F5 132 Begins the stati 133 ffeeesof Static Test Make Targets gt 134 135 Infinite whi
21. irective 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 occur in a particular installation If this equipment causes harmful interference to radio or television reception which can be determined by turning the equip ment 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 equipment 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 is 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 e The user is advised that mobile phones should not be used within 10m of the product when in use e 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 regula tory standards for an end product How to Use This Manual 1 Purpose and la
22. le 1 Resource Configurations 136 while 1 137 y Run to Line Ctrl R 139 End of function main c resetprg c e hwsetup c Le main c Le flashLED c 53 68 ffe88588 void Flash LED void 69 n 78 Declare a delay count variable 71 72 Flash the LEDs for 268 times or until a user switch is pressed 73 ffe00582 while gswitchFlag 8 amp amp gFlashCount gt 74 75 Add delay to make LED toggle visible 76 ffe8a05a5 Delay us 58888u Fi 78 Toggles the LEDs after a specific delay 79 ffe885ab Toggle LED so y el 82 Reset the gswitchFlag flag variable 83 ffee85be ESwitchFlag 6 84 H cific delay ble e Toggle Before PC Eventpoint i Edit Eventpoint EE EE ERE E REE E RRE E E EEE E EE R20UT3077EG0100 Rev 1 00 Aug 14 2014 LENESAS Page 16 of 23 RSK RX63N 256K 4 Basic Debugging of the Tutorial Program Click the resume button and the RSK will run through the itera tion loop Press one of the user switches to proceed past the loop The program counter will stop at the hardware eventpoint Click the Step Return button to exit the Flash LED function and return to main a The Timer ADC function ini tialises the ADC and timer unit so that a periodic interrupt tog gles the user LEDs The period of the periodic interrupt is varied by the value of the potentiometer Click the Step Over button or press F6 to
23. me button to run the TIE code up to the main function For further details regarding hardware configuration please refer to the RSK RX63N 256K User s Manual and the RX63N Group RX631 Group User s Manual Hardware R20UT3077EG0100 Rev 1 00 Page 15 of 23 Aug 14 2014 LENESAS RSK RX63N 256K 4 Basic Debugging of the Tutorial Program 4 2 Main Functions This section will look at the program code called from with the main function and how it works e The main function first initialises the debug LCD and then displays Renesas and the RSK name on the screen e Support for the LCD display is included in the tutorial code We do not need to be concerned about the details of the LCD in terface except that the interface is write only and so is not affected if the LCD display is at tached or not e Left click line with the function call Flash LED to select it then right click it and select the option Run to Line e This will cause the target to exe cute all code before this line This can be observed by the text dis played on the debug LCD e Click the Step Into button to step into the Flash_LED function F e The program counter will now move to the Flash_LED function The while loop iterates through and toggles the user LEDs This loop will continue until it has flashed the LEDs 200 times or a user switch is pressed e Left click the line eSwitchFlag 0 and r
24. nto Workspace then Create new projects from an archive file or directory Run Window Help A E i click Next Select an import source type filter text 4 gt General E Archive File la Convert CCRX to GNURX Project File System HEW Project E Preferences la Renesas Common Project File gt E C C gt 2 Code Generator gt E CVS gt amp Git gt gt IAR Embedded Workbench gt Install n m Run Dehun lt Back omes Finish R20UT3077EG0100 Rev 1 00 Aug 14 2014 ENESAS Page 10 of 23 RSK RX63N 256K 3 Project Workspace e The import dialog will now allow you to specify the project to import Click the Browse button and locate the following directory C Renesas Workspace RSK RSK RX63N 256K e Ensure that the Copy projects into work space option is ticked and then click Finish e Click on Tutorial from the list of projects in the Project Explorer on the left hand side R20UT3077EG0100 Rev 1 00 Aug 14 2014 Import Projects Select a directory to search for existing Eclipse projects 9 Select root directory C Renesas Workspace RSK RSK RX63N 25 Select archive file a 3 ADC12 Oneshot CARenesas Workspace RSKARSK RX63N 256 ADC12 Repeat C Renesas Workspace RSK RSK RX63N 256K Application C Renesas Workspace RSK RSK RX63N 256K Ay Async Serial C Renesas Workspace RS
25. r information about the RX assembly language refer to the RX Series Software Manual Technical Contact Details Please refer to the Quick Start Guide for Renesas Technical contact details 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 com panies or organisations 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 1s prohibited without the written permission of Renesas Electronics Europe Lim ited O 2014 Renesas Electronics Europe Limited All rights reserved O 2014 Renesas Electronics Corporation All rights reserved O 2014 Renesas Solutions Corp All rights reserved R20UT3077EG0100 Rev 1 00 Page 19 of 23 Aug 14 2014 LENESAS REVISION HISTORY RSK RX63N 256K Tutorial Manual Rev Description Summary e Agra o eona O DT tio D DJ O O Renesas Starter Kit Tutorial Manual Publication Date Rev 1 00 Aug 14 2014 Published by Renesas Electronics Corporation LENESAS SALES OFFICES Renesas Electronics Corporation http Avww renesas com 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
26. rget Readers This manual is designed to provide the user with an understanding of the RSK hardware functionality and electri cal characteristics It is intended for users designing sample code on the RSK platform using the many different incorporated peripheral devices The manual comprises of an overview of the capabilities of the RSK product but does not intend to be a guide to embedded programming or hardware design Further details regarding operating the RX63N microcontroller may be found in the RX63N Group RX631 Group User s Manual Hardware and within the provided sample code Particular attention should be paid to the precautionary notes when using the manual These notes occur within the body 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 RSK RX63N 256K Make sure to refer to the latest versions of these docu ments The newest versions of the documents listed may be obtained from the Renesas Electronics Web site User s Manual Describes the technical details of the RSK hard RSK RX63N 256K R20UT3076EG ware User Manual Tutorial Manual Provides a guide to setting up RSK environment RSK RX63N 256K R20UT3077EG running sample code and debugging programs Tutorial Manual Quick Start Guide Provides simple instructions
27. sign 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 assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations 9 Renesas Electronics products and technology may not 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 described in this document for any purpose relating to military applications or use by the military inclu
28. step the program coun ter onto the next func tion Static Test Click Step Into to enter the Static_ Test KS function In the for loop the contents of the string gReplaceStr are replaced with the contents gConstStr one element at a time ny While this happens the code is regularly interrupted by the Timer ADC code allowing both to ap pear to run simultaneously Le resetprg c Le hwsetup c Le main c Le flashLED c 52 64 Description The LED flash function used at the beginning of the program 65 Argument none Return value none TR RR RR RR RR A e e e e e e e e e e e e e e e e e A e e e e A e e e e e e RRA RR RA AA RR 58 ffe00580 void Flash LED void 1 Declare a delay count variable 72 Flash the LEDs for 200 times or until a user switch is pressed 73 ffe00582 while gSwitchFlag amp amp gFlashCount gt 7 Add delay to make LED toggle visible 16 ffeeesa5 Delay_us 5 u 8 Toggles the LEDs after a specific delay 79 ffeeesab Toggle LED Reset the gSwitchFlag flag variable 33 ffe005bo 9 gSwitchFlag 6 k a EE ako oko oko oko oko oko oko ce oko oe oko ako oko e oko oe ko oe oe oko oe oko oe ako ako ko oe oie oko oe oe oe oko ode oko xe oko oko ko oko ko oko oe oko oe oc oe oko oko oe oe oie oko oe oko oe oko oe oko oko ke ok oe o oe oe oe de xe dc xe de ke de ox ox o 86 End of function Flash LED 87 3k KE KC KC 2C EEE EEE
Download Pdf Manuals
Related Search
Related Contents
Fiche technique Bedienungsanleitung Teichpumpen ARTIKEL 51000 PRODUCTO Nº Reusable code. A lot ot a MT100L to >> Luxor_Admin_Guide Altra 9358096 User's Manual INDEX (INHALTVERZEICHNIS) SPT SF-1522 Use and Care Manual Copyright © All rights reserved.
Failed to retrieve file