P&E Microcomputer Systems, Inc. reserves the right to make changes without further notice to any
products herein to improve reliability, function, or design. P&E Microcomputer Systems, Inc. does not
assume any liability arising out of the application or use of any product or circuit described herein.
This software and accompanying documentation are protected by United States Copyright law and
also by International Treaty provisions. Any use of this software in violation of copyright law or the
terms of this agreement will be prosecuted.
All the software described in this document is copyrighted by P&E Microcomputer Systems, Inc.
Copyright notices have been included in the software.
P&E Microcomputer Systems authorizes you to make archival copies of the software and
documentation for the sole purpose of back-up and protecting your investment from loss. Under no
circumstances may you copy this software or documentation for the purpose of distribution to others.
Under no conditions may you remove the copyright notices from this software or documentation.
This software may be used by one person on as many computers as that person uses, provided that
the software is never used on two computers at the same time. P&E expects that group programming
projects making use of this software will purchase a copy of the software and documentation for each
user in the group. Contact P&E for volume discounts and site licensing agreements.
P&E Microcomputer Systems does not assume any liability for the use of this software beyond the
original purchase price of the software. In no event will P&E Microcomputer Systems be liable for
additional damages, including any lost profits, lost savings or other incidental or consequential
damages arising out of the use or inability to use these programs, even if P&E Microcomputer Systems
has been advised of the possibility of such damage.
By using this software, you accept the terms of this agreement.
The DEMOQE128 is a low-cost development system designed for
demonstrating, evaluating, and debugging the Freescale MC9S08QE128 and
MCF51QE128 microcontrollers. P&E’s Embedded Multilink circuitry on the
DEMOQE128 board allows the processor on the DEMOQE128 to be
debugged and programmed via USB from the PC. In addition, the demo
board can be powered using the USB bus.
1.2Package Contents
The DEMOQE128 package includes the following items:
•DEMOQE Base Board with a MC9S08QE128 Daughter Card
installed
•MCF51QE128 Daughter Card
•DVD Breaking Bit Boundaries - Getting Started With QE128
•2-cell AAA battery package
•USB Cable
•Quick Start Guide
•Freescale Warranty Card
1.3Supported Devices
The DEMOQE128 supports the following devices:
•MC9S08QE128CLH
•MCF51QE128CLH
DEMOQE128 User Manual1
1.4Recommended Materials On Breaking Bit Boundaries DVD-ROM
•Freescale MC9S08QE128 reference manual and datasheet
•Freescale MCF51QE128 reference manual and datasheet
•DEMOQE Base Board Schematic
•DEMOQE128 Daughter Card Schematic
•DEMOQE Toolkit Applications
•P&E Embedded Multilink driver installation guide and resources
1.5Handling Precautions
Take care to handle the package contents, including the DEMOQE base
board, MC9S08QE128 daughter card, and MCF51QE128 daughter card, in a
manner such as to prevent electrostatic discharge.
2HARDWARE FEATURES
The DEMOQE128 is a demonstration and development system for
Freescale’s MC9S08QE128 and MCF51QE128 microcontrollers. Application
development is quick and easy using P&E’s Embedded Multilink circuitry and
the included software tools and examples. An optional BDM port is provided
to allow use of an external BDM interface such as P&E’s Cyclone PRO
automated programmer or USB Multilink. The USB Multilink is functionally
comparable to the DEMOQE128’s Embedded Multilink circuitry.
Note:The DEMO board’s onboard Embedded Multilink circuitry is intended to
function with the onbaord processor and any daughter cards that may be
included. It cannot be used to communicate with other devices.
2.1DEMOQE Base Board Features
•On-board Logic Analyzer
•On-board Virtual Serial Port
•Asymmetrically positioned 4 8x2 male connectors for interchangeable
daughter cards
•P&E’s Embedded Multilink circuitry populated on the bottom
•RS-232 Serial Port w/ DB9-F Connector
2DEMOQE128 User Manual
•SCI signals connected to P&E’s Embedded Multilink through jumpers
•ON/OFF Power Switch w/ LED indicator
•A 5VDC to 8VDC power supply input barrel connector
Note:The DEMOQE board power connector is incorrectly labelled as 5-12VDC.
The maximum voltage is 8VDC.
•Power Input Selection Jumpers for selecting the input voltage source:
•Power Input from Embedded Multilink to LDO regulator
•INPUT_EN for two input channels to Embedded Multilink
•Specifications:
•Board Size 3.5 x 4.0
DEMOQE128 User Manual3
•Power Input:
•USB Cable: 5VDC, 500mA max
•DC Power Jack: 2.5/5.5mm barrel connector, 5VDC to 8VDC
Center Positive
Note:The DEMOQE board power connector is incorrectly labelled as 5-12VDC.
The maximum voltage is 8VDC.
•Two AAA Battery Cells
Figure 2-1: DEMOQE128 Top Component Placement
2.2On-Board Logic Analyzer
The DEMOQE board has a built-in 2-channel logic analyzer which may be
used to display captured data in real-time on a host PC. The logic analyzer
channels (IN0/IN1) are connected to the PTC0 and PTC1 signals on the
DEMOQE board by default via the J11 jumpers. The channels may be
connected to any of the processor pins by wire jumpers (not included).
The DEMOQE Logic Analyzer Utility, included in the DEMOQE Toolkit on the
accompanying DVD-ROM, displays the logic analyzer signals on a PC.
2.3On-Board Virtual Serial Port
The DEMOQE board has a built-in virtual serial port which may be connected
4DEMOQE128 User Manual
to the QE processor’s SCI RXD/TXD. This allows certain PC applications to
be able to connect in a serial fashion to the microcontroller without the actual
use of serial port hardware.
The DEMOQE Terminal Window Utility, included in the DEMOQE Toolkit on
the accompanying DVD-ROM, is a generic serial port utility which works with
the DEMOQE virtual serial port or actual serial port hardware.
2.4DEMOQE Daughter Card Features
•Four bottom-mounted asymmetrically positioned 8x2 female
connectors to mate with the DEMOQE Base Board
•A top-mounted MC9S08QE128CLH or MCF51QE128CLH chip
2.5DEMOQE128 JUMPER/CONNECTOR QUICK REFERENCE
Default Jumper Settings
The following is a list of default jumper settings for DEMOQE board. The
settings listed indicated the “on” (or installed) position.
Figure 2-2: Default Jumper Settings
DEMOQE128 User Manual5
MCU Port Connector Pinout
The following is the pinout for the MCU Port connector on the DEMOQE
board.
Figure 2-3: MCU Port Connector Pinout
3GETTING STARTED WITH THE DEMOQE128
The DEMOQE128 is a low-cost board targeting quick microcontroller
evaluation. The board includes two plug-in daughter cards to demonstrate the
ease of migration between the Flexis QE128, 8-bit S08 and 32-bit ColdFire V1
microcontrollers. The board also includes a power terminal to measure the
ultra-low power consumption of the Flexis QE128 devices.
This getting started chapter serves two purposes. The first is to install all
necessary software and demonstrate some basic DEMOQE128 features. The
second is to demonstrate with a few simple labs the key benefits of the
QE128 microcontroller.
6DEMOQE128 User Manual
3.1Quick Start Guide
The quick start guide walks you through the initial software installation and
board test.
STEP 1: INSTALL CODEWARRIOR FOR MICROCONTROLLERS
CodeWarrior installation is a one-time required step before connecting the
board to your computer.
1.Insert the provided Breaking Bit Boundaries DVD into your computer
and a menu page will appear on your default browser.
2.Click on the following image to download the CodeWarrior installer to
your computer. Follow the prompts to save file CW_MCUs_V6_0.exe
to your computer.
3.Once the download is complete, double-click on the
CW_MCUs_V6_0.exe executable file to run the installation.
4. Follow the on-screen instructions until the installation is complete.
STEP 2: INSTALL DEMOQE TOOLKIT
DEMOQE Toolkit install is a one-time required step. The DEMOQE Toolkit
includes graphical utilities that run on your computer and help speed up your
development. These utilities take development beyond the hardware. They
interact with the target microcontroller over the same USB Multilink reference
design on the board that allows you to debug using CodeWarrior. Additionally,
you can debug your microcontroller in CodeWarrior while simultaneously
using one of the following utilities: Logic Analyzer, Serial Grapher, Terminal
Window, and Accelerometer Demo Grapher.
1. Insert the provided Breaking Bit Boundaries DVD into your computer
and a menu page will appear on your default browser.
2. Click on “DEMOQE128” and then on “Other DEMOQE128
Resources” in the navigation panel on the left side of the DVD menu.
DEMOQE128 User Manual7
This will launch the P&E DEMOQE Resources menu.
3. From this new menu, click on “Drivers & DEMOQE Toolkit” to launch
the appropriate menu for downloading the toolkit.
4. From this new menu, click on “DEMOQE Toolkit.” Follow the prompt
to save file “DEMOQE_Toolkit.zip” to your computer.
5. Extract the zip file to the desired location on your computer, creating a
DEMOQE_Toolkit folder that includes all the graphical utilities.
Some of the toolkit applications capture and display data from the
DEMOQE128 board. The faster the PC is, the more rapid and smooth the
data display in these utilities will be.
For more information on the DEMOQE Toolkit, see the board user manual
(DEMOQE128UM.pdf) included in the DVD under “DEMOQE128 >
DEMOQE128 User Manual” in the navigation panel on the left side of the
DVD menu. For new and upgraded utilities to the DEMOQE Toolkit visit http://
www.pemicro.com/fixedlinks/demoQEtoolkit.html.
STEP 3: CONNECT DEMOQE128 BOARD TO COMPUTER
USB driver installation is a one-time required step that requires CodeWarrior
installation first.
1. Remove the board from the anti-static pouch. The green 8-bit
MC9S08QE128 daughter card will be mounted on the base board.
2. Connect the provided USB cable from a free USB port on your computer to the USB connector on the board. If a HUB is used, it must be
self-powered.
3. The operating system will recognize your board as new hardware and
will prompt you to install the USB drivers. Choose the recommended
option to install the software automatically. (USB drivers for your
board were pre-loaded in CodeWarrior installation.)
4. Follow the on-screen instructions until all USB driver installations are
complete. The green USB LED on the board should illuminate.
8DEMOQE128 User Manual
STEP 4: TEST BOARD BY RUNNING QUICK START APPLICATION
Now that you have successfully completed the software and hardware setup,
test your board by interacting with the Quick Start Application that is preloaded in the microcontroller’s on-chip flash memory.
The programmed application samples the microcontroller’s general purpose
input pins. These pins are connected to push buttons and perform two
actions. The first action is to illuminate the respective LED with either a
general purpose output pin or a pulse-width modulated signal pin. The second
action is to play a different tone per push button on the speaker, using a
pulse-width modulated signal programmed at different frequencies. The
application samples the potentiometer using the microcontroller’s analog-todigital converter and uses the result to vary the light intensity of two LEDs by
changing their pulse-width modulated signal’s duty cycle.
1. Turn the SYSTEM POWER switch to the ON position. The red
POWER LED will illuminate and the application will start automatically.
2. Press push buttons labeled PTA2, PTA3, PTD2, and PTD3. A differ-
ent tone will be emitted from speaker when each push button is
pressed, and the corresponding LEDs labeled PTC1, PTC2, PTC3,
and PTC4 will illuminate.
3. Rotate the potentiometer (W1) to vary the light intensity of the LEDs
labeled PTC0 and PTC5.
4. Now that your board is functional, try out the provided labs in
DEMOQE128 Labs section to learn more about the Flexis QE128
microcontrollers and other features included with your board.
3.2LAB 1: Learn How to use DEMOQE Toolkit Utilities
This lab will show you how to use one of several graphical utilities in
DEMOQE Toolkit included with your board. Instructions to download these
utilities to your computer are provided in Step 2 of the Section 3.1 - Quick Start Guide. Make sure to use only one utility at a time, as the utilities all
share the same USB resource. The toolkit utilities may be used at the same
DEMOQE128 User Manual9
time that an application is being debugged and programmed on the
DEMOQE128 board from within CodeWarrior.
With the Quick Start Application (which comes pre-loaded in the
microcontroller’s on-chip flash memory) running we will use the DEMOQE
Logic Analyzer utility. This PC-based utility graphs the IN0 and IN1 signals on
the board. For convenience, if both J11 jumpers are installed, IN0 graphs
PTC0 activity and IN1 graphs PTC1 activity. If you would like to graph other
microcontroller signals, you can use wire jumpers from IN0 and IN1 to the
respective signals on the board’s MCU PORT.
1. Make sure the board is powered ON and that the Quick Start Application is running.
2. Open the DEMOQE Logic Analyzer utility from within the
DEMOQE_Toolkit folder by double-clicking on the LogicAnalyzer.exe
file.
3. In the utility, click on the “Open DEMOQE and Graph Pins” button to
begin graphing IN0 and IN1. These signals will be continually
graphed at a sampling rate of 10Khz.
Figure 3-4: DEMOQE Logic Analyzer
10DEMOQE128 User Manual
4. Press the push button labeled PTA2. This will cause a fixed duty cycle
pulse-width modulation signal to be output on the PTC1 pin. The
PTC1 waveform is shown on analyzer channel IN1.
5. Rotate the potentiometer W1. This will change the duty cycle of the
variable pulse-width modulation signal output on the PTC0 pin. The
PTC0 waveform is shown on analyzer channel IN0.
6. Click on the “Close Port” button when you are finished using the util-
ity.
Some of the toolkit applications capture and display data from the
DEMOQE128 board. The faster the PC is, the more rapid and smooth the
data display in these utilities will be.
Note that the above image is shown with the IN0 channel zoomed in. Each
analyzer channel has several features including the ability to be zoomed and
paused. For more information on DEMOQE Toolkit, see the board user
manual (DEMOQE128UM.pdf) included in the DVD under “DEMOQE128 >
DEMOQE128 User Manual” in the navigation panel on the left side of DVD
menu. For the latest DEMOQE Toolkit utilities, please visit http://
www.pemicro.com/fixedlinks/demoQEtoolkit.html.
3.3LAB 2: Migrate Quickly from 8-Bit To 32-Bit
This lab will show you how to quickly migrate an application between the 8-bit
and 32-bit Flexis QE128 microcontrollers. The Flexis brand delivers pin-to-pin
compatibility, one development tool, and the same peripherals between the 8bit and 32-bit devices. This lab will demonstrate an upward migration from 8bit to 32-bit, but the opposite is just as simple. Continuing with the Quick Start
Application that is pre-loaded in the microcontroller’s on-chip flash memory,
you will now use the CodeWarrior MCU Change Wizard to retarget and
rebuild your project from the 8-bit to the 32-bit QE128 microcontroller.
1. Open CodeWarrior for Microcontrollers. From the Windows Start
menu, locate it under “Programs>Freescale CodeWarrior>CW for
Microcontroller V6.0>CodeWarrior IDE” path.
DEMOQE128 User Manual11
2. Click on “Load Example Project” from the CodeWarrior startup dialog.
If the startup dialog is not shown, it may be opened from the
CodeWarrior menu by clicking “File” and then “Startup Dialog…”.
3. From the Example Projects menu, open the tree to select:
HCS08>Evaluation Board Examples>DEMOQE128>DEMOQE128_Quick_Start_S08.
4. Give the example a new project name (e.g., Lab2), set desired location, and click “Create Project.” This will open the project for the preloaded Quick Start Application you are running on the 8-bit microcontroller.
5. Open the MCU Change Wizard to switch the project to the 32-bit
microcontroller by clicking on the following button in the project panel:
Figure 3-5: MCU Change Wizard Button
6. From the wizard, change the microcontroller selection from the 8-bit
“MC9S08QE128” to the 32-bit “MCF51QE128” in the Flexis>QE Family tree as shown in image below.
12DEMOQE128 User Manual
Figure 3-6: MCU Change Wizard
7. Click “Finish.” In the background CodeWarrior will transform your
project to the 32-bit microcontroller with no software changes needed.
An informational “Project Messages” window may appear letting you
know that changes have been made to the project.
8. If the Logic Analyzer utility is open, click the “Close Port” button on
that utility.
9. Turn the board power switch to OFF.
10.Switch the green 8-bit S08 daughter card with the red 32-bit Cold-
Fire V1 daughter card. Make sure to align pin 1 (as marked by
arrows) on the daughter card with pin 1 on the board.
11.Turn the board power switch to ON.
12.Compile the transformed Quick Start Application and start the pro-
cess of programming it into the flash on the 32-bit QE128 microcontroller by clicking on the debugger launch button shown here :
Figure 3-7: IDE Debugger Launch Button
13.From the Connection Manager menu, select “USB1: DEMOQE”
port and click on “Connect (Reset).”
14.From the Loader Warning menu, click on “OK” to allow the debug-
ger to mass erase the microcontroller’s on-chip flash memory and
program it with the new application.
15.Click on the GO button in the debugger to run the application. The
GO button is shown here:
Figure 3-8: Debugger GO Button
16.Repeat Step 4 of the Quick Start Guide instructions to observe the
32-bit QE128 device running the same application as the 8-bit
QE128 device did previously.
DEMOQE128 User Manual13
17.Repeat Lab 1 instructions to graph the PTC0 and PTC1 signals in
the Logic Analyzer utility.
18.Click on the “Close Port” button and close the Logic Analyzer utility
when you are finished using it.
3.4LAB 3: Measure Performance between 8-Bit and 32-Bit
This lab will highlight the performance differences between the 8-bit and 32bit QE128 microcontrollers and demonstrate how these microcontrollers can
interface easily with an external sensor. You will also see how to use another
one of several software utilities included with your board. Instructions to
download these utilities to your computer are provided in Step 2 of this Quick
Start Guide. Make sure to use only one utility at a time, as the utilities share
the same USB resource.
The Accelerometer Application reads the X, Y, and Z axes of the 3-axis
accelerometer on the DEMOQE board using the microcontroller’s analog to
digital converter. It outputs a processed version of the accelerometer data on
the microcontroller’s serial communication interface. This processed data is a
rolling average of the raw accelerometer data, or a filtered version of the raw
accelerometer data, depending on the selected mode. The application in this
lab will output the data as 16-bit integer values to highlight the data
processing capabilities of the 32-bit ColdFire V1. The application also
displays the cycle count (“C”), which is the number of MCU bus cycles
required for the CPU to process the last 16 accelerometer readings for the
selected mode.
Setup demo:
1. Open CodeWarrior for Microcontrollers. From the Windows Start
menu, locate it under “Programs>Freescale CodeWarrior>CW for
Microcontroller V6.0>CodeWarrior IDE” path.
2. Click on “Load Example Project” from the CodeWarrior startup dialog.
If the startup dialog is not shown, it may be opened from the
CodeWarrior menu by clicking “File” and then “Startup Dialog…”.
3. From the Example Projects menu, open the tree to select:
14DEMOQE128 User Manual
Loading...
+ 39 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.