Renesas Single-Chip Microcomputer H8/36079 Tutorial
Renesas Single-Chip Microcomputer H8/36079 Tutorial

Renesas Single-Chip Microcomputer H8/36079 Tutorial

Renesas starter kit for h8/36079

Advertisement

Quick Links

To our customers,
st
On April 1
, 2010, NEC Electronics Corporation merged with Renesas Technology
Corporation, and Renesas Electronics Corporation took over all the business of both
companies. Therefore, although the old company name remains in this document, it is a valid
Renesas Electronics document. We appreciate your understanding.
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
Send any inquiries to http://www.renesas.com/inquiry.
Old Company Name in Catalogs and Other Documents
Renesas Electronics website:
http://www.renesas.com
st
April 1
, 2010
Renesas Electronics Corporation

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Single-Chip Microcomputer H8/36079 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Renesas Single-Chip Microcomputer H8/36079

  • Page 1 On April 1 , 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the old company name remains in this document, it is a valid Renesas Electronics document. We appreciate your understanding.
  • 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 application categorized as “Specific”...
  • Page 3 Renesas Starter Kit for H8/36079 Tutorial Manual RENESAS SINGLE-CHIP MICROCOMPUTER   2007.10 Rev.1.00...
  • Page 4: 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. Build Configuration ...5 4.3.2.
  • Page 5: 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 Technology Europe Limited. Trademarks All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organisations.
  • Page 6: Chapter 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? •...
  • Page 7: 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 ‘Release’ situation. The build configuration menu in High-performance Embedded Workshop (HEW) allows the project to be configured such that certain files may be excluded from each of the build configurations.
  • Page 8: Chapter 4. Project Workspace

    4.1. Introduction HEW is an integrated development tool that allows the user to write, compile, program and debug a software project on any of the Renesas Microcontrollers. HEW will have been installed during the installation of the software support for the RSK product. This manual will describe the stages required to create and debug the supplied tutorial code.
  • Page 9: Build Configurations And Debug Sessions

    • Click <OK> to start the RSK Project Generator wizard. The next dialog presents the example projects available. Choose the Tutorial code which will be explained later in this manual. There is also an option for Sample code which provides examples for using various peripherals. This will open a new dialog allowing the selection of many code examples for the peripheral modules of the device.
  • Page 10: 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(s) on the drop down menu. The dialog that is displayed will be specific to the tool-chain selected.
  • Page 11: Connecting The Debugger

    5.2. Connecting the debugger For this tutorial it is not necessary to provide an external power supply to the board. The power will be obtained from the USB port. Please be aware that if you have too many devices connected to your USB port it may be shut down by windows. If this happens remove some devices and try again.
  • Page 12 • Enter ID code as ‘0E8A’. • Flash Memory write downloaded. • The Output window in HEW will state ‘Connected’ Now is a good time to save the HEW session. • Select ‘File’ | ‘Save Session’. If you have changed any workspace settings now is a good time to save the workspace. •...
  • Page 13: Chapter 6. Downloading And Running The Tutorial

    Chapter 6. Downloading and Running the Tutorial Once the code has been built in HEW it needs to be downloaded to the RSK. There will now be an additional category in the workspace view for ‘Download Modules’ • Right click on the download module listed and select ‘Download’.
  • Page 14 • Place a breakpoint at the call to main(); Breakpoints can be set by double clicking in the column containing the PC arrow next to the line to break at; or selecting the line and pressing F9; or right click on the line and select ‘Toggle breakpoint’. Alternatively set a eventpoint, by clicking in the column to the left of the breakpoint column.
  • Page 15 • Right click on the ‘FlashLEDs(); function and select ‘Go to cursor’. The code will execute to the selected line and stop. An automatic breakpoint was inserted in the code and then removed after calling the break. • Press ‘Step Over’ on the Debug Tool Bar. The code will run and flash the LEDs 200 times.
  • Page 16 • Press <Stop> on the debug tool bar. • Press ‘CTRL-B’ to open the breakpoint window. • Select ‘Remove All’ • Press <OK>. • Open the file ‘main.c’ • Insert a breakpoint on ‘Statics_Test();’. The statics test is used to demonstrate that the initialisation has successfully copied all initialised variables from storage in flash to RAM. •...
  • Page 17 replacement string. • Remove the breakpoint • Right click on the ‘DisplayString();’ function call after the loop and select ‘Go to cursor’. This shows that the variable was initialised at program start up and can be overwritten with ‘TESTTEST’. You have now run the tutorial code and used many of the common features of the debugger. We suggest that you review the rest of the tutorial code as many functions have important information on the operation of the code, the compiler directives and comments on when they should or must be used.
  • Page 18: Chapter 7. Project Files

    7.1. Standard Project Files The RSK tutorials are configured so that it is possible to provide the same tutorial code on multiple RSK products. This allows the evaluation of the different processor cores using equivalent code. To achieve this, the following files are common between all device cores and Tool-chains.
  • Page 19: Main Tutorial Code (Main_Tut_Tutorial.c / Main_Tut_Tutorial.h)

    The main tutorial code is common to all tutorial projects. 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 a LCD module not supplied by Renesas.
  • Page 20: Chapter 8. Additional Information

    For details on how to use High-performance Embedded Workshop (HEW), refer to the HEW 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 website.
  • Page 21 Renesas Starter Kit for H8/36079 Tutorial Manual Publication Date Rev.01.00 17.OCT.2007 Renesas Technology Europe Ltd. Published by: Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK ©2007 Renesas Technology Europe and Renesas Solutions Corp., All Rights Reserved.
  • Page 22 Renesas Starter Kit for H8/36079 Tutorial Manual 1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 Japan REG10J0077-0100...

Table of Contents