Summary of Contents for Renesas G1X RL78G13 Series
Page 1
Re- nesas Electronics Corporation without notice. Please review the latest information published by Renesas Electronics Corporation through various means, including the Renesas Electronics Corporation website (http://www.renesas.com).
Page 2
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”...
Page 3
RSK. Renesas expressly disclaims all such warranties. Renesas or its affiliates shall in no event be liable for any loss of profit, loss of data, loss of contract,...
Page 4
The following documents apply to the RL78G13 Group. 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. Document Type...
Page 5
List of Abbreviations and Acronyms Abbreviation Full Form Analogue to Digital Converter Application Programming Interface Compact Disk Central Processing Unit E1 Emulator Liquid Crystal Display Light Emitting Diode Read-Only Memory Renesas Starter Kit Universal Serial Bus...
RENESAS STARTER KIT Jun 21, 2011 1. Overview Purpose This RSK is an evaluation tool for Renesas microcontrollers. This manual describes how to get the RSK tutorial started, and basic debugging operations. Features This RSK provides an evaluation of the following features: Renesas microcontroller programming •...
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? •...
RSKRL78G13 3. Introduction to Applilet 3. Introduction to Applilet What is Applilet Applilet is a software which enables you to output the source code (device driver programs, C source files and header files) necessary to control the peripheral hardware functions provided by the microcontroller device (clock generator, port functions, etc.) by configuring various information using the GUI.
RSKRL78G13 3. Introduction to Applilet Project Creation The integrated project wizard guides the user through the creation of a new project. Launch Applilet3 for RL78G_13 V1.01.00 from the Windows Start Menu Start > All Programs > Applilet > Appli- let3 for RL78_G13 > V1.0.01.00. The steps required to create a new project and generate files are highlighted below: From Applilet3’s menu bar select File >...
Page 11
RSKRL78G13 3. Introduction to Applilet Click on the < Fix settings > button. • The ‘Clock setting’ tab contains options for config- • uring the clocks. The ‘On-chip debug setting’ tab contains an option • to enable/disable debugging and the use of a secu- rity ID.
RSKRL78G13 4. Tutorial Project Workspace 4. Tutorial Project Workspace The workspace includes all the projects and files required to get started. The tutorial code is designed to show how code can be written, debugged and then downloaded. Contents of common C files are controlled with defines set up in the build configuration options and state- #ifdef ments within the source files.
IAR Embedded Workbench is an integrated development tool that allows the user to write, compile, program and debug a software project on the 78K, RL and V850 family of Renesas Microcontrollers. IAR will have been in- stalled during the installation of the software support for the Renesas Starter Kit product. This manual will describe the stages required to create and debug the supplied tutorial code.
Page 14
RSKRL78G13 5. Project Workspace • Click the ‘link’ under ‘Open project’. • When prompted to choose a destination folder: • Click the ‘New Folder’ icon, highlighted by the circle. • Name the new folder ‘RSKRL78G13’. • Open the RSKRL78G13 folder. •...
Page 15
RSKRL78G13 5. Project Workspace The workspace as seen in IAR with all available • projects. The active project’s name is shown on the “active • project selection” drop-down list as circled in red. The bold letters within the Files tree gives an indi- cation of which project is currently active.
RSKRL78G13 5. Project Workspace Build Configuration The build configurations are selected from the build tool’s Property panel. The options available are Debug and Release. The Debug build is configured for use with the debugger. The Release build is configured for the final ROM-programmable code.
RSKRL78G13 6. Building the Tutorial Program 6. Building the Tutorial Program The tutorial project build settings have been pre-configured in the node options. To view the node options select the ‘Project’ menu item and click ‘Options’. The Category pane on the left hand side will exist on all project node options. It is important when changing any setting to be aware of the current configuration that is being modified.
Refer to the RSKRL78G13 User Manual for further details. The Quick Start Guide provided with the Renesas Starter Kit board gives detailed instructions on how to connect the E1 to the host computer. The following assumes that the steps in the Quick Start Guide have been followed and the E1 drivers have been installed.
Page 19
RSKRL78G13 6. Building the Tutorial Program Open the hardware setup settings from the menu • bar [Emulator > Hardware Setup…] Alternatively, click the ‘Hardware setup’ icon from the menu bar. On the E1 Hardware Setup (R5F100LE) dialog, • verify that the main clock and sub clock values are set as;...
RSKRL78G13 7. Running the Tutorial 7. Running the Tutorial Downloading the Program Code Now that the code has been built and downloaded to the RSK IAR, the code needs to be executed. On completion of program • download, the debugger and code are ready to be executed.
RSKRL78G13 8. Reviewing the Tutorial Program 8. Reviewing the Tutorial Program This section will look at each section of the tutorial code, how it works, and how it could be altered to be imple- mented into more complex code. Program Initialisation Before the main program can run, the microcontroller must be configured.
The function ‘Ini- tialiseDisplay()’ call initialises the debug LCD and the ‘Dis- playString()’ function calls will write the strings “Renesas “ and “RL78G13 ” on line 1 and 2, re- spectively. Set a break-point on the ‘Time- •...
Page 23
RSKRL78G13 8. Reviewing the Tutorial Program The program counter should • come to a halt at the TimerADC function. Step over the function by click- • ing the ‘Step Over’ button. Alter- natively, press F10. The TimerADC function starts a continuous A/D conversion and a periodic timer whose period is up- dated with the ADC result.
Page 24
RSKRL78G13 8. Reviewing the Tutorial Program The program will halt at the • breakpoint due to the timer’s pe- riod elapsing. The cursor should automatically • be set on the instruction. Remove the breakpoint by click- • ing on the ‘Toggle Breakpoint’ button once.
Page 26
REVISION HISTORY RSKRL78G13 Tutorial Manual Rev. Date Description Page Summary ⎯ 1.00 Jun 21, 2011 First Edition issued...
Page 27
Renesas Starter Kit Tutorial Manual Publication Date: Rev.1.00 Jun 21, 2011 Published by: Renesas Electronics Corporation...
Page 28
SALES OFFICES Refer to "http://www.renesas.com/" for the latest and detailed information. Renesas Electronics America Inc. 2880 Scott Boulevard Santa Clara, CA 95050-2554, U.S.A. Tel: +1-408-588-6000, Fax: +1-408-588-6130 Renesas Electronics Canada Limited 1101 Nicholson Road, Newmarket, Ontario L3Y 9C3, Canada...
Page 30
X-ON Electronics Largest Supplier of Electrical and Electronic Components Click to view similar products for manufacturer: Renesas Other Similar products are found below : EL4511CUZ-T7 PYB15-Q24-S5-H-U PQA30-D24-S24-DH PQA30-D48-S12-TH PYB30-Q24-T312-H-U PYB15-Q24-S5-H-T PYB15- Q24-S12-H-T V7815-500-SMT PYB20-Q48-S12-H-T PQZ6-Q24-S15-D PYB20-Q48-S5-H-T PYB20-Q24-S12-H-T VLED15-120-350 VGS-75-12 PYB15-Q24-S12-H-U R5F100GFAFB#V0 VGS-50-15 VGS-50-24 VGS-25-24 VGS-50-5 VGS-100-12 M30620FCAFP#U3...
Need help?
Do you have a question about the G1X RL78G13 Series and is the answer not in the manual?
Questions and answers