Renesas REJ10J1330-0200 Tutorial
Renesas REJ10J1330-0200 Tutorial

Renesas REJ10J1330-0200 Tutorial

Starter kit single-chip 8-bit cmos microcomputer 740 family

Advertisement

Quick Links

REJ10J1330-0200
Renesas Starter Kit for 7542
Tutorial Manual (for M3T-SRA74)
RENESAS SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
740 FAMILY
Rev.2.00
Renesas Solutions Corp.
Revision date:
www.renesas.com
Aug.10,2007

Advertisement

Table of Contents
loading

Summary of Contents for Renesas REJ10J1330-0200

  • Page 1 REJ10J1330-0200 Renesas Starter Kit for 7542 Tutorial Manual (for M3T-SRA74) RENESAS SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER 740 FAMILY Rev.2.00 Renesas Solutions Corp. Revision date: www.renesas.com Aug.10,2007...
  • Page 2: Table Of Contents

    Table of Contents Chapter 1. Preface ... 1 Chapter 2. Introduction... 2 Chapter 3. Tutorial Project Workspace ... 3 Chapter 4. Project Workspace ... 4 4.1. Introduction... 4 4.2. Creating a new Project Workspace ... 4 4.3. Build Configurations and Debug Sessions ... 5 4.3.1.
  • Page 3: Chapter 1. Preface

    Cautions 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 prohibited without the written permission of Renesas Solutions Corporation. Trademarks All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organisations.
  • Page 4: Chapter 2. Introduction

    This manual is designed to answer, in tutorial form, the most common questions asked about using the Renesas Starter Kit: The tutorials help explain the following: • How do I compile, link, download, and run a simple program on the Renesas Starter Kit? •...
  • Page 5: Chapter 3. Tutorial Project Workspace

    Chapter 3. Tutorial Project Workspace The workspace includes all of the files for two build configurations. The tutorial code is common to both the Debug and the Release build configurations. The tutorial is designed to show how code can be written, debugged then downloaded in a ‘Debug’ situation. The build configuration menu in High-performance Embedded Workshop allows the project to be configured such that certain files may be excluded from each of the build configurations.
  • Page 6: Chapter 4. Project Workspace

    Renesas Microcontrollers. High-performance Embedded Workshop will have been installed 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 7: Build Configurations And Debug Sessions

    4.3.2. Debug Session The debug sessions are selected from the right hand drop down list on the toolbar. The options vary between Renesas Starter Kit types however one will always start Debug and include the type of debug interface, the alternate selection is the ‘DefaultSession’. The purpose of the debug sessions is to allow the use of different debugger tools or different debugger settings on the same project.
  • Page 8: Chapter 5. Building The Tutorial Project

    Chapter 5. Building the Tutorial Project The tutorial project build settings have been pre-configured in the tool-chain options. To view the tool chain options select the ‘Build’ menu item and the relevant tool-chain. This should be the first option on the drop down menu. The dialog that is displayed will be specific to the tool-chain selected.
  • Page 9: Connecting The Debugger

    The following assumes that the steps in the Quick Start Guide have been followed and the E8a drivers have been installed. • Fit the LCD module to J8 on the Renesas Starter Kit ensuring that pin 1 on the module corresponds to the indication on the Renesas Starter Kit PCB.
  • Page 10 • The Flash Memory write program will be downloaded to the target. • The Output window in High-performance Embedded Workshop will show ‘Connected’ Note: The connection to the target will activate the debugger buttons on the High-performance Embedded Workshop toolbar. Now is a good time to save the High-performance Embedded Workshop session.
  • Page 11: Chapter 6. Downloading And Running The Tutorial

    Chapter 6. Downloading and Running the Tutorial Once the code has been built in High-performance Embedded Workshop it needs to be downloaded to the Renesas Starter Kit itself. There will now be an additional category in the workspace view for ‘Download Modules’...
  • Page 12 • Place a breakpoint at the call to InitialiseDisplay subroutine. Breakpoints can only be set when the E8a is connected to the target and the module is downloaded. Breakpoints can be set by double-clicking in the grey column containing the PC arrow next to the line to break at; or selecting the line and pressing F9;...
  • Page 13 • To stop the LEDs flashing press the SW1 button on the Renesas Starter Kit to exit the FlashLEDs subroutine. The code will run to the breakpoint we previously set on the TimerADC subroutine, note that the yellow PC arrow will now be superimposed on the breakpoint indicator, this confirms the breakpoint has been reached.
  • Page 14 The Statics_test is used to demonstrate that the initialisation has successfully copied all initialised variables from storage in flash to RAM. • Press <Reset Go> on the debug toolbar. The code will stop at the breakpoint. (Press one of the Renesas Starter Kit buttons to bypass the flashing LED test.) • Press <Step In> on the debug toolbar.
  • Page 15 The dialog will close and a new pane will open in the workspace containing the variable. • Press <Go To Memory> In the ASCII column on a Memory Window, it is possible to see that the string has been successfully initialised to ‘ STATIC ‘. •...
  • Page 16: Chapter 7. Project Files

    The display initialisation and string display functions operate on the LCD display module. Check compatibility with ks0066u controller and pin connection on the schematic before connecting an LCD module not supplied by Renesas.
  • Page 17: Board Initialisation Code (Hwsetup.a74)

    7.1.2. Board initialisation code (hwsetup.a74) There are two stages to the configuration of the microcontroller device. The code to demonstrate this is therefore split into two functions. Each function is written specifically for the device supported. The function calls are shown below.
  • Page 18: Chapter 8. Additional Information

    For details on how to use High-performance Embedded Workshop, refer to the High-performance Embedded Workshop manual available on the CD or from the web site. Further information available for this product can be found on the Renesas website at: http://www.renesas.com/renesas_starter_kits General information on Renesas Microcontrollers can be found at the following websites.
  • Page 19 Renesas Starter Kit for 7542 Tutorial Manual (for M3T-SRA74) Publication Date Rev.2.00 Aug.10,2007 Published by: Renesas Solutions Corp. 4-1-6, Miyahara, Yodogawa-ku, Osaka City, 532-0003, Japan ©2007 Renesas Solutions Corp., Renesas Technology Europe Ltd. and Renesas Technology Corp., All Rights Reserved.
  • Page 20 Renesas Starter Kit for 7542 Tutorial Manual (for M3T-SRA74) Renesas Solutions Corp. 4-1-6, Miyahara, Yodogawa-ku, Osaka City, 532-0003, Japan...

This manual is also suitable for:

M3t-sra74

Table of Contents