background image

 

To our customers, 

 

Old Company Name in Catalogs and Other Documents 

 

On April 1

st

, 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. 

 

Renesas Electronics website: 

http://www.renesas.com

 

 
 
 
 

April 1

st

, 2010 

Renesas Electronics Corporation 

 

 
 
 
 

Issued by: 

Renesas Electronics Corporation

 (

http://www.renesas.com

Send any inquiries to 

http://www.renesas.com/inquiry

 

Содержание Single-Chip Microcomputer H8/36079

Страница 1: ...ook 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 Renesas Electronics website http www renesas com April 1st 2010 Renesas Electronics Corporation Issued by Renesas Electronics Corporation http www renesas com Send any inquiries to http www renesas com inquiry ...

Страница 2: ...ct for an application categorized as Specific or for which the product is not intended where you have failed to obtain the prior written consent 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 office equipment communications equipment test and meas...

Страница 3: ...Renesas Starter Kit for H8 36079 Tutorial Manual User s Manual Rev 1 00 2007 10 RENESAS SINGLE CHIP MICROCOMPUTER ...

Страница 4: ... Debug Session 5 Chapter 5 Building the Tutorial Project 6 5 1 Building Code 6 5 2 Connecting the debugger 7 5 3 Connecting to the target with the E8A 7 Chapter 6 Downloading and Running the Tutorial 9 Chapter 7 Project Files 14 7 1 Standard Project Files 14 7 1 1 Initialisation code resetprg c resetprg h 14 7 1 2 Board initialisation code hwsetup c hwsetup h 14 7 1 3 Main tutorial code main_tut_t...

Страница 5: ...r registered trademarks of their respective companies or organisations Copyright Renesas Technology Europe Ltd 2007 All rights reserved Renesas Technology Corporation 2007 All rights reserved Renesas Solutions Corporation 2007 All rights reserved Website http www eu renesas com Glossary CPU Central Processing Unit HEW High performance Embedded Workshop LED Light Emitting Diode PC Program Counter R...

Страница 6: ...ease build demonstrating code suitable for release in a product Files referred to in this manual are installed using the project generator as you work through the tutorials The tutorial 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 NOTE These tut...

Страница 7: ...nfiguration 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 This allows the inclusion of the debug monitor within the Debug build and its exclusion in the Release build Contents of common C files are controlled with defines set up in the build configuration options and ifdef statements ...

Страница 8: ...a new tutorial workspace from the File New Workspace menu or select Create a new project workspace when presented with the Welcome dialog The example above shows the New Project Workspace dialog with the RSKH836079 selected Select the H8S H8 300 CPU family and Tool chain for the RSK Select the RSKH836079 Project type for the RSK from the project list Enter a name for the workspace all your files w...

Страница 9: ...as been created contains two build configurations and two debug sessions The Build Configuration allows the same project to be built but with different compiler options The options available to the user are described fully in the HEW Users Manual 4 3 1 Build Configuration The build configurations are selected from the left hand drop down list on the tool bar The options available are Debug and Rel...

Страница 10: ... the options on each of the tabs and Category drop down lists to be aware of the options available When complete close the dialog box by clicking OK 5 1 Building Code There are three short cuts available for building the project 1 Select the Build All tool bar button This will build everything in the project that has not been excluded from the build This includes the standard library 2 Select the ...

Страница 11: ... the LCD module to LCD on the RSK so it lies above J1 Insure all the pins of the connector are correctly inserted in the socket Connect the E8A debugger to the USB port on your computer Connect the E8A Debugger to the target hardware ensuring that it is plugged into the connector marked E8A which is nearest the power connector If supplying external power to the board this can be turned on now 5 3 ...

Страница 12: ...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 Workspace 8 ...

Страница 13: ...d module listed and select Download On completion the debugger and code are ready to be executed To start debugging we need to reset the debugger and target Press Reset CPU on the Debug Tool Bar The File window should open the Tutorial code at the entry point An arrow marks the current position of the program counter We will now skip over the initialisation code and proceed to the main tutorial Op...

Страница 14: ...in the column to the left of the breakpoint column Only one eventpoint can be set Eventpoints do not require programming the flash memory and thus are faster to use Press Reset Go on the Debug Tool Bar The code will execute to the breakpoint At this point all the device initialisation will have been completed Press Step In on the Debug Tool Bar The code window will open main c and show the new pos...

Страница 15: ...onversion for the external potentiometer and uses the result to set the next compare match value The ADC conversion is then re started The interrupt initialisation is completed as part of the hardware setup This is contained in the file interrupts c Open the file interrupts c by double clicking on the file in the workspace view Review this file and find the interrupt function that changes the LED ...

Страница 16: ...nt context a tool tip will be displayed with the current value of the variable Hover the mouse over the ucStr variable to see the tooltip value Then Right click on the variable name and select Instant Watch A dialog will open showing the variable and allowing further details to be explored Press Add The dialog will close and a new pane will open in the workspace containing the variable It is possi...

Страница 17: ... 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 Please refer to Chapter 7 for more information on the project files 13 ...

Страница 18: ...ic details 7 1 1 Initialisation code resetprg c resetprg h This is the entry point of the main tutorial code Initialisation of the variables used in the C compilers and initialisation of stack pointers are completed in the _INITSCT function for the H8 and SH compilers The call to hardwaresetup will initialise the device hardware and peripherals ready for the tutorial software The call to main will...

Страница 19: ... 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 15 ...

Страница 20: ... 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 Global http www renesas com 16 ...

Страница 21: ...orial 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 ...

Страница 22: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan Renesas Starter Kit for H8 36079 REG10J0077 0100 Tutorial Manual ...

Отзывы: