background image

 

7.1.3. Main Tutorial Code (main.c / main.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 a ks0066u controller and pin connection on the schematic before connecting an LCD module not supplied 

by Renesas. 

 

 

 

 

23 

Summary of Contents for RSK H8S2215R

Page 1: ...ok 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 Electron...

Page 2: ...t 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...

Page 3: ...Renesas Starter Kit RSK H8S2215R Tutorial Manual User s Manual Rev 1 00 2007 01 RENESAS SINGLE CHIP MICROCOMPUTER...

Page 4: ...Session 7 Chapter 5 Building the Tutorial Project 8 5 1 Building Code 8 5 2 Connecting the debugger 9 5 3 Connecting to the target with E8Direct HMon 9 5 3 1 Connecting To HMon 13 Chapter 6 Downloadi...

Page 5: ...arks of their respective companies or organisations Copyright Renesas Technology Europe Ltd 2006 All rights reserved Renesas Technology Corporation 2006 All rights reserved Website http www renesas co...

Page 6: ...uded Release 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 exampl...

Page 7: ...sion 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 state...

Page 8: ...rmance Embedded Workshop or from its icon Open 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 abo...

Page 9: ...that has 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...

Page 10: ...lists to be aware of the options available When complete close the dialog box by clicking Cancel Please note that if you have modified any of the options and want to save it you need to click OK 5 1...

Page 11: ...to the target with E8Direct HMon This section will take you through the process of connecting to the device programming the Flash and executing the code The E8 provides an interface called E8DIRECT to...

Page 12: ...erent crystal frequency the device will not be listed in the sub pane In this case Press Other and navigate to your modified kernel Select E8DIRECT as the communication Port Press Next The default set...

Page 13: ...ill be displayed Press OK To communicate with the RSK FDT and HMon need to be able to change the operating mode of the microcontroller To do this there are settings to control the state of the Mode pi...

Page 14: ...wing warning dialog will be displayed Press OK Damage to the microcontroller can be sustained with incorrect settings Confirm the mode pin settings Press Finish The Flash configuration has now been co...

Page 15: ...ed to confirm if it acceptable to assume only one E8 device will be connected to the host computer while using this project This is the preferred operating mode While it is possible to use more than o...

Page 16: ...he connection still fails then a Boot Mode download will be required Press Abort In the Connection Error dialog box select Download HMon using Boot Mode Press OK Click OK to any warning dialogs Click...

Page 17: ...Ensure 0x000D 1 Closed is selected and click OK On completion of the download HMon will automatically re connect to the monitor and revert back to User programming mode 15...

Page 18: ...review the settings in each tab HMon includes a cache of the current device program This allows the number of reprogramming cycles to be reduced by not programming areas of the device that have not c...

Page 19: ...le breakpoint 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...

Page 20: ...rupt on an available internal timer On a compare match in the timer module an interrupt is generated In the TimerADC code version the interrupt reads the last ADC conversion for the external potentiom...

Page 21: ...a button to bypass the flashing LED test Press Step In on the Debug Tool Bar It is possible to monitor variables during debugging of the code To set up a watch on a variable place the mouse over the...

Page 22: ...g 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 The modified string is also displayed on th...

Page 23: ...for greater detail on the purpose and operation of the compiler specific details 7 1 1 Initialisation code Resetprg c resetprg h This is the entry point of the main tutorial code Depending upon the c...

Page 24: ...h There are four common stages to the configuration of the microcontroller device The code to demonstrate this is therefore split into four functions Each function is written specifically for the devi...

Page 25: ...common to all tutorial projects The display initialisation and string display functions operate on the LCD display module Check compatibility with a ks0066u controller and pin connection on the schem...

Page 26: ...lled with this product For more information on the configuration and use of HMon please refer to the HMon User Manual installed from the CD Further information available for this product can be found...

Page 27: ...Manual Publication Date Rev 1 00 12 01 2007 Published by Renesas Technology Europe Ltd Dukes Meadow Millboard Road Bourne End Buckinghamshire SL8 5FH United Kingdom 2006 Renesas Technology Europe and...

Page 28: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan Renesas Starter Kit for H8S2215R REG10J0023 0100 Tutorial Manual...

Reviews: