EVBQE128 Freescale, EVBQE128 Datasheet - Page 21

no-image

EVBQE128

Manufacturer Part Number
EVBQE128
Description
Manufacturer
Freescale
Datasheet

Specifications of EVBQE128

Lead Free Status / RoHS Status
Compliant
6 Application Tutorial
6.1 Overview
MC9S08QE128 and MCF51QE128 devices share the same peripherals and registers.
Software written for one device can be easily recompiled for the other.
This section will provide a step-by-step guide on how to launch a MC9S08QE128-based
project and get started with the CodeWarrior user interface. Later, the same project will be
converted for the MCF51QE128 device.
6.2 MC9S08QE128 Step-by-Step Tutorial
The sample application is the same as the one described in the “Standalone Mode” section
above.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
Congratulations! You have successfully completed this tutorial! You can continue to
experiment with the CodeWarrior user interface and discover by yourself its potentialities. For
Make sure that the MC9S08QE128 device is present in the socket.
Set up the board so that it works in host mode (see “Host Mode” above).
Ensure that the Evaluation Board is connected to the PC (via the USB cable) and that
the board is powered on.
Start CodeWarrior by selecting it in the Windows Start menu.
From the CodeWarrior main menu, choose “File > Open” and choose the “\Program
Files\Freescale\[CodeWarrior Folder]\(CodeWarrior Examples)\HCS08\Evaluation
Board Examples\EVBQE128\C\Demo\Demo.mcp”.
Click “Open”. The Project window will open.
The code of this example is contained in the “main.c” file. Double click on it to open.
From the main menu, choose “Project > Debug”. This will compile the source code,
generate an executable file and download it to the evaluation board.
A new debugger environment will open. From the main menu, choose “Run >
Start/Continue”. The program will be executed in real-time.
From the main menu, choose “Run > Halt”. The program execution will stop. The next
instruction to be executed is highlighted in the Source window.
From the main menu, choose “Run > Single Step”. The instruction highlighted in the
Source window will be executed, and the program execution will be stopped immediately
after.
From the main menu, choose “Run > Start/Continue”. The application will restart from
where it was previously stopped.
Page 19