Renesas H8/36079 manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of Renesas H8/36079, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of Renesas H8/36079 one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of Renesas H8/36079. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of Renesas H8/36079 should contain:
- informations concerning technical data of Renesas H8/36079
- name of the manufacturer and a year of construction of the Renesas H8/36079 item
- rules of operation, control and maintenance of the Renesas H8/36079 item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of Renesas H8/36079 alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of Renesas H8/36079, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the Renesas service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of Renesas H8/36079.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the Renesas H8/36079 item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    REG10J0077-0100 Renesas Starter Kit for H8/36079 Tutorial Manual RENESAS SINGLE-CHIP MICROCOMPUTER Rev .01.00 Renesas T echnology Europe Ltd. Revision date: 17 .OCT .2007 www .renes as.com[...]

  • Page 2

    Table of Contents Chapter 1. Preface .................................................................................................................................................. 1 Chapter 2. Introduction ............................................................................................................................................[...]

  • 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 w hole or part is prohibited without the written permission of Rene sas Technology Europe Limited. Trademarks All brand or product names used in this manual are trademarks or registere[...]

  • Page 4

    Chapter 2. Introduction This manual is designed to answer , in tutorial form, the most common questions asked about using a Renesas Starter Kit (RSK): T he 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? Th[...]

  • Page 5

    Chapter 3. T utorial Project Wo rksp ace The workspace includes all of the files for two build configurat ion s. The tutorial code is common to both the Debug and the Rel ease 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-pe[...]

  • Page 6

    Chapter 4. Project W orkspace 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 th e Renesas Microcontrollers. HEW will have been installed during the insta llation of the software support for the RSK product. This manual will describe the stages required t[...]

  • Page 7

    • Click <OK> to start the R SK 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 us ing various peripherals. This will ope n a new dialog allowing the selectio n of many [...]

  • Page 8

    Chapter 5. Building the T utorial Project The tutorial project build settings have been pre-configured in the tool-chain options. To view the tool chain options select t he ‘Build’ Menu item and the relevant tool-chain. This shoul d be the first option(s) on the drop down menu. The dialog that is displayed will be specific to the tool-chain sel[...]

  • Page 9

    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 b e shut down by windows. If this happens remove so me devices and try again. Alternatively provi de an[...]

  • Page 10

    • Enter ID code as ‘0E8A’. • The Flash Memory write program is 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. • Select ‘File’ | ‘Save Worksp[...]

  • Page 11

    Chapter 6. Downloading and Running the T utorial 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’. On completion the debugger and code are ready to be executed. To[...]

  • Page 12

    • 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 ‘Toggl e breakpoint’. Alternatively set a event point, by clicking in the column to the left of the breakpoint co[...]

  • Page 13

    • Right click on the ‘FlashLEDs(); function and select ‘Go to cursor’. The code will execute to the selected line and stop. An automat ic breakpoint was inserted in the code and then removed after ca lling the break. • Press ‘Step Over’ on the Debug Tool Bar. The code will run and flash the LEDs 200 times. The debugger will n o t exit[...]

  • Page 14

    • 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 initialisati on has successfully copied all init ialised variables fro[...]

  • Page 15

    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 f eatures of the debugger.[...]

  • Page 16

    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 c ode. To achieve this, the following f iles are common between all device cores and Tool-chains. Each o[...]

  • Page 17

    7.1.3. Main tutorial code (main.c / main.h) The main tutorial code is common to all tutorial projects. T he display initialisation and string display functions operate on the LCD display module. Check compatibility with ks0066u controller and pin c onnection on the schematic before connecting a LCD module not supp lied b y Renesas. 15[...]

  • Page 18

    Chapter 8. Additional Information For details on how to use High-performance Embedded Workshop (HEW), refer to the HEW man ual availab le on the CD or from the web site. Further information available for this pr oduct can be found on the Renesas website at: http://www.renesas.com/renesas_starter_kits General information on Renesas Microcontrollers [...]

  • Page 19

    Renesas S ta r ter Kit for H8/3607 9 T utorial Manual Publication Date Rev .01.00 17.OCT .2007 Renesas T echnology Europe Ltd. Published by: Dukes Meadow , Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK ©2007 Renesas T echn ology Euro pe and Renes as Solutions C orp., All Rights Reserved.[...]

  • Page 20

    Renesas S tarter Kit for H8/36079 T utorial Manual Renesas T echnology Europe Ltd. Dukes Meadow , Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, UK[...]