Home
Renesas Starter Kit+ for RX63N Tutorial Manual
Contents
1. T D 0 lt o o RX63N Group Renesas Starter Kit Tutorial Manual For estudio 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 Jul 2012 Notice 1 All information included in this document is current as of the date this document is issued Such information however is sub ject to change without any prior notice Before purchasing or using any Renesas Electronics products listed herein please con firm the latest product information with a Renesas Electronics sales office Also please pay regular and careful attention to ad ditional and different information to be disclosed by Renesas Electronics such as that disclosed through our website Ze 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 1s granted hereby under any
2. 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 lts 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 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
3. function In the for loop the contents of the string gReplac eStr are replaced with the con tents gConstStr one element at a time Gl I While this happens the code is regularly interrupted by the Timer ADC code allowing both to ap pear to run simultaneously R20UT2044EG0100 Rev 1 00 Jul 20 2012 Lc resetprg c Lc main c Return value dee e e e e E void Flash LED void f d LR RRR RRR RRR RRR RRR RRR RRR RRR RRR RRR RRR RRR RRR RRR RRR RRR RRR RRR RR RRR RRR RRR RRR RRR RRR RH 4 Basic Debugging of the Tutorial Program c E ore none Le hwsetup c Declare a delay count variable uint32 t ulLed Delay 0 Flash the LEDs for 200 times or until a user switch is pressed while qSwitchFlag 0 amp amp gFlashCount gt 0 for ulLed Delay 0 ulLed Delay lt 4000000 ulLed Delay Toggles the LEDs after a specific delay Toggle LED Reset the gSwitchFlag flag variable gSwitchFlag 0 End of function Flash LED dede e e e E TE resetprg c cr inc ES Eloi EJ hwsetup c 6 flashLED c 8 timeradec none i portis FATA Return value ate de e i eee e e e e e e ee ee de ee e ee oe e e a e ee e e e ee ee de e de de ede dek e ef woid main void Initialise the debug LCD
4. Init LCD Displays the Renesas splash screen E Display LCD LCD LINE1 Renesas Display LCD LCD LINE2 NICKNAME Begins the initial LED flash sequence Flash LED ft Begins the ADC varying flash Sequence Timer ADC Begins the static variable test Static Test Infinite while loop while 1 E E Ree PRES REE EE RE ee ee ee OR kok ee ee ee ee ee ee eee ee ee ee ee ee eee ee i CRISIS void Static Test void Declare loop count variable uints t count Ou f Write ucStr variable STATIC to LCD Display LCDILCD LINES gReplacestr f Begin for loop which writes one letter of gConstStr to the LCD at a time The nested while loops generate the delay between each letter change for count Of count 6 Ccount 1 Create delay between replacing characters Delay s 1u trom uCunskZtr Replace letter number count of gReplaceStr grheplacestr count gqConstStr count f Update the debug LCD with the contents of gReplaceStr Display LCDILCD LINES gReplacestr Add a delay before overwriting the string Delay Zu to Write MCU nickname to LCD again Display LCD LCD LINEZ NICKNAME LENESAS Page 17 of 23 RSKRX63N 4 Basic Debugging of the Tutorial Program Click the resume button to run the code through LI gt You can observe the user LED flash rate vary as you adjust the pot
5. TTETTTTTTTT TTTTETTOJ 7 1 1 A utes O TET RS RS SIR CORRS PR CR RT NOR PRE RO RT cadeosoameneens 7 KZ BONNO e o E CORRS A OM o o SVE RR nsec OR E NNE RE CEAR DR cate 7 2 IITO UCION EK dis 8 2 Note Regarding Source Code ss a A OA 8 o IOJECCMOKSpACC sx ASEN ad 9 3 1 SS AAA I TETTE TTETT TTT 9 3 2 Starting estudio and Importing Sample Code eee aaa 9 3 3 Buld Conticurations and Debuo DESSIONS sas A AA CRS KASA 12 3 3 1 l UTICA OMI onran kojo POE AECA sk E DO RR EE TETTE 12 3 3 2 Depus Conn arino Nia uo mee aK ka KA odia 13 ee AJ asa AAA O TE TT TRE RR a a OGU TT SEGA RAS RAE aa ds 14 4 Basic Debusgine of the Tutorial Program noo o KAO KAO VS 15 4 1 Prostam Initial ato ita 15 do Man PUNCO NS emo mako Saba Renan er Pe Ee oer Cher EET Pee een ti ee o er o cre eee ere o et Far ken cree CRB See are ree FASONAS 16 Additional Informa NON 3 5 aio ka ep ka as a oE kmp da Sb Ea Dua Mb me ke alda baa IS Eu apia ana 19 ENESAS RSKRX63N RENESAS STARTER KIT R20UT2044EG0100 Rev 1 00 Jul 20 2012 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 devic
6. document or Renesas Electronics products or if you 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 Disclaimer By using this Renesas Starter Kit RSK the user accepts the following terms The RSK is not guaranteed 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
7. office equipment communications equipment test and measurement equipment audio and visual equipment home electronic appliances machine tools personal electronic equipment and industrial robots High Quality Transportation equipment automobiles trains ships etc traffic control systems anti disaster systems anti crime systems safety equipment and medical equipment not specifically designed for life support Specific Aircraft aerospace equipment submersible repeaters nuclear reactor control systems medical equipment or systems for life support e g artificial life support devices or systems surgical implantations or healthcare intervention e g excision etc and any other applications or purposes that pose a direct threat to human life 8 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 9 Although Renesas Electronics endeavors to improve the quality and reliability of its products semiconductor products have spe cific characteristics such as the occurrence of failure at a certain rate and malfun
8. will appear Click the Go to Mec gt the gt the workbench arrow button on the far right 2 e studio b Gs AL e RAIN TAS R20UT2044EG0100 Rev 1 00 LENESAS Page 9 of 23 Jul 20 2012 RSKRX63N 3 Project Workspace Once the estudio environment has C C e2Studio initialised right click in the project arena explorer window and click Si Oo EJ mes Gr o amp 8 Ore Import The Import dialog will now appear Expand the General folder icon Select an d S ele ct Exi stin g Proj ects into Create new projects from an archive file or directory Workspace then click Next Select an import source type filter text 4 2 General E Archive File 15 Existing Projects into Workspace OI File System El Preferences gt E C C as gt 5 Run Debug gt amp Team R20UT2044EG0100 Rev 1 00 LENESAS Page 10 of 23 Jul 20 2012 RSKRX63N 3 Project Workspace The import dialog will now allow Do ao ATER lt you to specify the project to import maine es Cm Click the Browse button and Select a directory to search for existing Eclipse projects locate the following directory 9 Select root directory Browse Select archive file Browse C Workspace RS K RSKRX63N J Projects Ensure that the Copy projects into Jr workspace option is ticked and S
9. The while loop iterates through i and toggles the user LEDs This i one Toggles the LEDs after a specific delay loop will continue until it has Toggle LED flashed the LEDs 200 times or a user switch is pressed Reset the gSwitchFlag flag variable aSwitchFlag 0 Breakpoint Types Left click the line gSwitchFlag 0 and right click in the blue section to the Go to Annotation Ctrl 1 e Toggle Before PC Eventpoint Edit Before PC Eventpoint ke mafi a kaco e ee ii right and select Toggle Before EDS SO A ZS un PC Eventpoint PRA Delay 4000000 ulLed Delay This will insert a hardware event Add Task point at this code line R20UT2044EG0100 Rev 1 00 ENESAS Page 16 of 23 Jul 20 2012 RSKRX63N 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 Y The Timer_ADC function 1n1 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 step the program counter onto the next function Static Test Click Step Into to enter the Static Test
10. anghai Co 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 7F No 363 Fu Shing North Road Taipei Taiwan Tel 886 2 8175 9600 Fax 886 2 8175 9670 Renesas Electronics Singapore Pte Ltd 1 harbourFront Avenue 06 10 keppel Bay Tower Singapore 098632 Tel 65 6213 0200 Fax 65 6278 8001 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 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 2010 Renesas Electronics Corporation All rights reserved Colophon 1 0 RX63N Group LENESAS Renesas Electronics Corporation R20UT2044EG0100
11. ctions 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 system manufactured by you 10 Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibil ity 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 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 you have any questions regarding the information contained in this
12. d without the written permission of Renesas Electronics Europe Lim ited 2012 Renesas Electronics Europe Limited All rights reserved 2012 Renesas Electronics Corporation All rights reserved 2012 Renesas Solutions Corp All rights reserved R20UT2044EG0100 Rev 1 00 LENESAS Page 19 of 23 Jul 20 2012 REVISION HISTORY RSK RX63N Tutorial Manual Rev Description Summary e uai few E E a Renesas Starter Kit Tutorial Manual Publication Date Rev 1 00 Jul 20 2012 Published by Renesas Electronics Corporation LENESAS SALES OFFICES Renesas Electronics Corporation Refer to http www renesas com for the latest and detailed information http www renesas com 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 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 65030 Fax 49 211 6503 1327 Renesas Electronics China Co Ltd 7th Floor Quantum Plaza No 27 ZhiChunLu Haidian District Beijing 100083 P R China Tel 86 10 8235 1155 Fax 86 10 8235 7679 Renesas Electronics Sh
13. e differences are minor and do not effect the functionality of the sample code or the validity of this accompanying manual R20UT2044EG0100 Rev 1 00 s CENESAS Page 8 of 23 Jul 20 2012 RSKRX63N 3 Project Workspace 3 Project Workspace 3 1 Introduction e studio is a 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 oe mesa i Start e studio by selecting it from Workspace Launcher Start Menu The first dialog to ap Select a workspace pear will be the Workspace e2Studio stores your projects in a folder called a workspace Choose a workspace folder to use for this session Launcher Click Browse and select a suitable ee location to store your workspace using the Make New Folder op tion as necessary Click OR F Use this as the default and do not ask again Click Yes when presented with BEY Administrator Privilege the Administrator Privilege dia E a A log O Administratrse privileges are required for correct operation of edstudio on Windows 7 Please ensure you have appropriate privileges Le Right click renesas eclipse exe and choose Run as Administrator Do you want to continue The e2studio welcome Sp lash Refactor Navigate Search Run Project Window Help screen
14. e initialisation code The RSK board contains all the circuitry required for microcontroller operation R20UT2044EG0100 Rev 1 00 LENESAS Page 7 of 23 Jul 20 2012 RSKRX63N 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 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 Files referred to in this manual are installed using 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 estudio 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 Thes
15. een included in the tutorial code We Display LCD LCD LINE1 Renesas do not need to be concerned Display LCD LCD LINE2 NICKNAME about the details of the LCD in Begins the initial LED flash sequence Flash LED terface except that the interface ta Begins the ADC varying flash Sequence is write only and so is not o a affected if the LCD display is at Begins the static variable test tached or not Static Test Infinite while loop while 1 k SOL RRR RR RR RRR e Left click line with the function iu dei Declarations u Ref call Flash LED to select it Flash L gt Search Text gt then right click it and select the Begi s n ake Targ option Run to Line Run to Line Ctrl R This will cause the target to exe Degi 3 Move To Line cute all code before this line This Resume At Line can be observed by the text dis played on the debug LCD Click the Step Into button to Le resetprg c 9 main c Oxffffffff hwsetup c step into the Flash_LED function EA RRR RRR RRR RRR RRR RRR RRR RRR RRR RRR RRR RRR RRR RRR d void Flash LED void Declare a delay count variable uint32 t ulLed Delay 0 Flash the LEDs for 200 times or until a user switch is pressed move to the Flash LED function for ulLed Delay 0 ulLed Delay lt 4000000 ulLed Delay A
16. elect All then click Finish Deselect All Refresh Add project to working sets From the list of projects in the a Tutorial Project Explorer on the left hand P Binaries side select the Tutorial project gt Rj Includes and click the arrow next to it to ex a GE src pand the folder contents and click bp e dbsct c the arrow next to the src folder to gt flashLED c show the source files gt R flashLED h ej hwsetup c gt a hwsetup h Le id codec b Le intprg c p h iodefine h gt Le led e b a lcd h gt e main Le resetprg c R20UT2044EG0100 Rev 1 00 LENESAS Page 11 of 23 Jul 20 2012 RSKRX63N 3 Project Workspace 3 3 Build Configurations and Debug Sessions 3 3 1 Build Configuration The e studio workspace will be created with several build configurations the two we will address in this manual is 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 is the best configuration to use whilst developing code C code instruction execution wi
17. entiometer at the same time as the debug LCD string change character by char acter from STATIC to TESTTEST This is the extent of the tutorial code R20UT2044EG0100 Rev 1 00 LENESAS Page 18 of 23 Jul 20 2012 RSKRX63N 5 Additional Information 5 Additional Information Technical Support For details on how to use estudo refero RR the help file by opening estudio and click ing Help and selecting Help Contents O a ce Welcorne UU 7 Help Contents A Search Dynamic Help Key Assist Ctrl 5hift L Tips and Tricks For information about the RX63N series microcontrollers refer to the RX63N Group hardware manual For information about the RX63N assembly language refer to the RX600 Series Software Manual Online technical support and information is available at http www renesas com rskrx63n Technical Contact Details America techsupport america Crenesas com Europe software support eu O m renesas com Japan csc renesas com 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 is prohibite
18. esas Electronics does not warrant that such information is error free Renesas Electronics assumes no liability whatsoever for any damages in curred by you resulting from errors in or omissions from the information included herein 7 Renesas Electronics products are classified according to the following three quality grades Standard High Quality and Specific The recommended applications for each Renesas Electronics product depends on the product s quality grade as indicated below You must check the quality grade of each Renesas Electronics product before using it in a particular applica tion You may not use any Renesas Electronics product for any application categorized as Specific without the prior written consent of Renesas Electronics Further you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics 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 an applica tion categorized as Specific or for which the product is not intended where you have failed to obtain the prior written con sent of Renesas Electronics The quality grade of each Renesas Electronics product is Standard unless otherwise expressly specified in a Renesas Electronics data sheets or data books etc Standard Computers
19. ll be linear Click the top level tutorial project Ar Br y O Q fr folder again and then the arrow 1 CustomDebug Debug using custom debugger next to the build button hammer 2 Debug Debug using GDB simulator icon and select the ET en HardwareDebug op E ardwareDebug Debug on hardware tion 4 HewDebug Debug using HEW 5 Release Release No Debug estudio will now build the code R20UT2044EG0100 Rev 1 00 LENESAS Page 12 of 23 Jul 20 2012 RSKRX63N 3 Project Workspace 3 3 2 Debug Configuration Click the arrow next to the debug button bug icon Select Debug Configurations The Debug Configuration dialog will appear Click the small arrow next to Renesas GDB Hardware Debugging option The build configurations for each project will appear Select the entry for the tutorial project Ensure J8 and J9 are open Failure to do so will result in damage to the RSK Connect the 12V power supply 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 Project Window Help By Gy Ar Sr rO rQ SS no launch history Debug As Debug Configurations Organize Favorites e2 Debug Configurations Create manage a
20. nd run configurations E de Configure launch settings from this dialog type filter text 7 Press the New button to create a configuri fe C C Application fe C C Attach to Appli e C C Postmortem Di c Custom Debug c Debug only E GDB Hardware Debuge bih GHS Local C C Laur cx HEW Debugging Configure launch perspective settings from the P Es Renesas GDB Hardware Press the Duplicate button to copy the seli d Press the Delete button to remove the sele gt Press the Filter button to configure filterin Edit or view an existing configuration by sel Main ea Debugger e startup Es Source E Common Debug hardware Target Device R5F563ME GDB Settings Connection Settings Debug Tool Settings 4 Clock Select Clack Type lTag JTag Clock Frequency MHz 16 5 Fine Baud Rate Mbps 0 00 4 Connection with Target Board Power Target From The Ernulator M123 Mo supply voltage ER a TO Use Default TO Filename Yes IO Filename EnRenesaste2studiolinternalloFIles PEOR 4 Communication Mode Mode Debug Made j tions Execute The User Program After Endine Mo Note e studio will display a warning a dialog if you attempted to connect with e Ti an incorrect power supply setting R20UT2044EG0100 Rev 1 00 CENESAS Page 13 of 23 Jul 20 2012 RSKRX63N 3 Project Workspace Click the debug button to continue e studio will now connect to the debugger and d
21. ownload the code to the target 2 A A A r estudio may display a dialog ask BS Confirm Perspective Switch ing if you would like to switch to e a ye This kind of launch is configured to open the Renesas Debug perspective when it the Renesas Debug perspective EO suspende Click Yes This Renesas Debug perspective is designed to support application debugging It The new estudio perspective lay incorporates views for displaying the debug stack variables and breakpoint e 3 management out is optimised for debugging Do you want to open this perspective now C Remember my decision 3 4 Running the Tutorial Once the code has been downloaded the program counter will stop at the entry vector usually the Power On function Click the Resume but ton to let the code run It LE will keep running up to the main function Execute the main code function It is recommended that you execute the entire tutorial demo first before continuing to debug it R20UT2044EG0100 Rev 1 00 LENESAS Page 14 of 23 Jul 20 2012 RSKRX63N 4 Basic Debugging of the Tutorial Program 4 Basic Debugging of the Tutorial Program This section will look at basic debugging functionality in estudio 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 de
22. patents copyrights or other intellectual property rights of Renesas Electronics or others You should not alter modify copy or otherwise misappropriate any Renesas Electronics product whether in whole or in part 4 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 5 When exporting the 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 You should not use Renesas Electron ics products or the technology described in this document for any purpose relating to military applications or use by the mili tary including but not limited to the development of weapons of mass destruction Renesas Electronics products and technol ogy 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 6 Renesas Electronics has used reasonable care in preparing the information included in this document but Ren
23. 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 regula tory standards for an end product How to Use This Manual 1 Purpose and Target 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 setting up the RSK and development envi ronment can found in the tutorial manual 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 2 List of Abbreviations and Acronyms Abbreviation J OOO O OOOO oO Table of Contents oe T E RR
24. vice 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 After downloading the code The Lc resetprg c 53 Le main c TE Oxtfffffff i i Description Inis program is the MUU s entry point from a power on reset File window will open the Tutorial The function configures the MCU stack then calls the 1 HardwareSetup function and main function sequentially code at the entry point The program li kea ron counter position will be highlighted Double click the blue section to the PowerON Reset PC void Initialise the MCU processor word set intb sectop C VECT set fpsw FPSW init left of the code 1n line with the HardwareSetup line This will add a software breakpoint indicated by a blue tick and a dot Click the Resume button to run the code up to this breakpoint la Initialise the MCU stack area _INITSCT Configure the MCU and RSK hardware HardwareSetup Execute a NOP instruction nop Set Ubit and Ibit for PSW Click the Step Into but Lc resetprg c Le main c e Oxfffttftt Lc hwsetup c 3 ton Or press F5 to step AL x Outline HardwareSetup h H d S 9 Description Contains all the setup functions called at device restart into the Hardwaresetup s Renee e kisis function Return value none
25. void HardwareSetup void The HardwareSetup function calls several initialisation functions which configure the MCU for normal oper ConfigureOperatingFrequency ConfigureOutputPorts ConfigureInterrupts EnablePeripheralModules ation This includes input output Pe de e de de e DD e e le e e e e e le e e le e e le e e le le le e e e le le e e de de e sle e e de de de de de dk dk dk ports and system clocks End of function HardwareSetup oe eee eee eee eee ee eee eee eee eee eee EEE EEE EE ED CELL LEE eee 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 it Click the Resume but ton to run the code up to Jl the main function For further details regarding hardware configuration please refer to the RSK RX63N User s Manual and the RX63N Hardware Manual R20UT2044EG0100 Rev 1 00 LENESAS Page 15 of 23 Jul 20 2012 RSKRX63N 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 The main function first initialises tA resetproc 8 mainc 2 gt el Offfff_ LE hwsetup c the debug LCD and then displays Renesas and the RSK name on the screen Initialise the debug LCD Init LCD Support for the LCD display is E Displays the Renesas splash scr
Download Pdf Manuals
Related Search
Related Contents
Divar - Control Center Equipo de medición de espesor DMS Go CNG Gen 1 BOC FSM Maintenance Manual 1 Lab+Hwk 3: Introduction to the miniature Ata de Realização do Pregão Eletrônico SH / SHR 5500 - Crown Equipment Corporation 取扱説明書 Land Rover 2007 Range Rover Sport User's Manual Copyright © All rights reserved.
Failed to retrieve file