Справочник Пользователя для Renesas R0E530640MCU00

Скачать
Страница из 229
R0E530640MCU00 User’s Manual 
3. Tutorial 
REJ10J1733-0100  Rev.1.00  Apr. 01, 2008 
Page 36 of 229 
 
 
 
3. Tutorial 
 
3.1 Introduction 
 
The E100 emulator has a tutorial program available. This program is provided as a means for presenting to you the main 
features of the emulator, as will be explained in this document. 
 
This tutorial program is written in C language, and is created to sort 10 pieces of random data in ascending/descending orders. 
The following outlines the processing performed by the tutorial program. 
 
The main function calls the tutorial function repeatedly in order to execute a sort process repeatedly. 
The tutorial function generates the random data to be sorted and calls the sort and the change functions in that order. 
The sort function accepts as its input an array that contains the random data generated by the tutorial function and sorts the 
input data in ascending order. 
The change function accepts as its input an array that was sorted in ascending order by the sort function and sorts the input data 
in descending order. 
 
The tutorial program is a program designed to help user to understand how to use the functions of the emulator and the 
emulator debugger. When developing user systems and user programs, refer to the user’s manuals of the target MCUs. 
 
CAUTION 
If the tutorial program is recompiled, the addresses in a recompiled program may not be the same as those described in this 
chapter.