6 Tutorial
61
6. Tutorial
6.1 Introduction
This section describes the main functions of this debugger by using a tutorial program. The tutorial
programs are installed to the directory ¥WorkSpace¥Tutorial of the drive you installed
High-performance Embedded Workshop. There are workspaces for each targets and each MCUs.
Please select the corresponding one to your system, and open the workspace file (*.hws) from the
menu [Open Workspace...].
The tutorial program is based on the C program that sorts ten random data items in ascending or
descending order.
The tutorial program performs the following actions:
•
The tutorial function generates random data to be sorted.
•
The sort function sorts the generated random data in ascending order.
•
The change function then sorts the data in descending order.
Note
After recompilation, the addresses may differ from those given in this section.
When using the assembler package for 740 family
The tutorial program for the assembler package for 740 family is prepared. If you use the assembler
package for 740 family, please use it.
•
Please read this tutorial with replacing function names with subroutine name. (e.g. replace
"function sort()" with "subroutine sort")
•
About the source file name, also please replace it with the corresponding one.
•
The diagrams in this tutorial are for C program. The displayed diagram for the assembler
program may different from them.
•
Step9 and Step12 are descriptions of C program.
Summary of Contents for Emulator Debugger M16C PC4701
Page 13: ...Setup of Debugger 1...
Page 14: ...Blank Page 2...
Page 73: ...Tutorial 59...
Page 74: ...Blank Page 60...
Page 95: ...Reference 81...
Page 96: ...Blank Page 82...
Page 128: ...Example Writing byte length data 32h to even address 400h 114...
Page 130: ...16 bits bus width 116...
Page 132: ...2nd point 118...
Page 133: ...7 Windows Dialogs 16 bits bus width 119...
Page 134: ...Example Writing data 10h 3Fh to even address 400h 120...
Page 138: ...Example Writing byte length data 32h to even address 400h 124...
Page 140: ...16 bits bus width 126...
Page 141: ...7 Windows Dialogs Example Writing word length data 1234h to even address 400h 127...
Page 142: ...Example Writing data 10h 3Fh to even address 400h 128...
Page 146: ...Example Writing byte length data 32h to even address 400h 132...
Page 147: ...7 Windows Dialogs Example Writing data 10h 3Fh to even address 400h 133...
Page 153: ...7 Windows Dialogs 7 7 8 2 Interrupt Termination Set as below 139...
Page 172: ...For condition 7 choose the Mode shown below and set the Start event 158...
Page 294: ...MEMO 280...