Академический Документы
Профессиональный Документы
Культура Документы
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.
© 2011 P&E Microcomputer Systems, Inc. “MS-DOS” and “Windows” are registered trademarks of
Microsoft Corporation. “Freescale” and “ColdFire” are registered trademarks of Freescale, Inc. “IBM”
and “PowerPC” are registered trademarks of IBM corporation.
1.1 Overview
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.
2 HARDWARE 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.
• Power Input Selection Jumpers for selecting the input voltage source:
• Power Input from Embedded Multilink to LDO regulator
• Power Input from DC Power Jack to LDO regulator
• Regulated VDD Output at 3.0V
• Regulated VDD Output at 2.1V
• Power Input from Battery
• Power Input from MCU_PORT connector
• RESET Push Button and LED indicator w/ Enable
• Optional External Crystal Circuitry Layout (not populated)
• User Features:
• 3-axis Accelerometer w/Enable
• 8 User LED’s w/ Enable
• 4 User Push Buttons w/ Enable
• 1 Piezzo Buzzer w/ Enable
• IIC Pullups w/ Enable
• 10K Ohm POT w/ Enable
• Option Jumpers:
• COM_EN for 1.8V to 4.25V RS232 Transceiver
• TXD_EN for SCI_TXD to Embedded Multilink
• RXD_EN for SCI_RXD to Embedded Multilink
• INPUT_EN for two input channels to Embedded Multilink
• Specifications:
• Board Size 3.5 x 4.0
• Power Input:
J3 2-3
J4 3-4
J5 1-2
J6 2-3
J7 2-3
J8 2-3
J9 1-2
3-4
5-6
7-8
9-10
11-12
13-14
15-16
J10 1-2
J12 1-2
3-4
5-6
7-8
J16 1-2
3-4
5-6
J17 1-2
3-4
J18 1-2
3-4
J19 1-2
J20 1-2
3-4
J21 3-4
J24 1-2
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
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.
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
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.
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 com-
puter 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.
1. Make sure the board is powered ON and that the Quick Start Applica-
tion 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.
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.
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.
6. From the wizard, change the microcontroller selection from the 8-bit
“MC9S08QE128” to the 32-bit “MCF51QE128” in the Flexis>QE Fam-
ily tree as shown in image below.
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.
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.
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:
HCS08>Evaluation Board Exam-
ples>DEMOQE128>DEMOQE_Accelerometer_S08.
4. Give the example a new project name (e.g., Lab3), set the desired
location, and click “Create Project.” This will open the Accelerometer
Application for the 8-bit microcontroller.
5. Launch the AccelerometerDemo utility from within the
DEMOQE_Toolkit folder by double-clicking on the Accelerometer-
5. Bring the Accelerometer Demo utility to the front and click the “Open
Serial Port and Start Demo” button.
5. From the wizard, change the microcontroller selection from the 8-bit
“MC9S08QE128” to the 32-bit “MCF51QE128” in the Flexis>QE Fam-
ily tree.
6. Click “Finish.” In the background CodeWarrior will transform your
project to the 32-bit microcontroller with no software changes needed.
7. Turn board power switch to OFF.
8. Switch the green 8-bit S08 daughter card with the red 32-bit ColdFire
V1 daughter card. Make sure to align pin 1 (as marked by arrows) on
daughter card and with pin 1 on the board.
9. Turn board power switch to ON.
The accelerometer demo shows the performance gains of the 32-bit ColdFire
•C Programming
•Assembly Programming
•Using Processor Expert
•C Programming with Device Initialization
•Assembly Programming with Device Initialization
4 SYSTEM SETUP
4.1 Overview
Click the “Finish” button to exit the current “Found New Hardware
Wizard”.
7. Depending on the operating system, you may see the “Found New
Hardware Wizard” dialog again, helping you to install software for
“PEMicro USB Serial Port (i1). On Windows XP (SP2), the following
dialog will appear:
Click the “Finish” button to exit the “Found New Hardware Wizard”.
If the DEMOQE128 hardware interface driver is now properly installed on your
system, the green USB LED on the DEMOQE Base Board should be
illuminated. In addition, if you turn on the system power of the DEMOQE128
you will see the red Power LED illuminate.
5 OPERATING MODES
5.1 Overview
The DEMOQE128’s Embedded Multilink circuitry, featured hardware
components, and optional external BDM header make it a versatile
development tool. Below are some of the featured operating modes of the
DEMOQE128.
This PC-based application is used to display the logic analyzer data on the
PC. The logic analyzer data is displayed in real-time and each waveform may
be paused, zoomed, and printed.
To start using this application, please plug in a USB cable into the evaluation
board. Once the USB and Power LEDs light up, indicating the proper
enumeration on the USB port, click on the Open DEMOQE and Graph Pins
button. The logic channel graphs should be reflecting data captured from IO
pins connected to IN0 and IN1 header pins on the DEMOQE evaluation
board.
If the microcontroller-based Quick Start Application is programmed into the
MCU, the IN0 channel will show the PWM output on pin PTC0 whose duty
cycle is controlled by the potentiometer (W1). The IN1 channel shows the
PWM output on channel PTC1 which drivers the buzzer.
This PC-based application is included on the DVD-ROM that accompanies
the DEMOQE, and may also be found at:
http://www.pemicro.com/fixedlinks/DEMOToolkit.html.
The terminal window may be set for full duplex or half duplex. In full duplex
mode, only received characters are displayed in the terminal window. In half
duplex mode, both transmitted and received characters are displayed.
To start using this application, please choose a COM or virtual USB COM
settings from a drop down Port menu. By doing so, you are specifying the port
on the evaluation board that will be used for serial data transmission. Please
make sure that jumpers on headers J6 and J7 are set accordingly. Prior to
starting serial data capture, please specify Baud, Parity and Bits settings to
reflect the parameters at which your serial communication interface is
operating. Once your port settings are configured, please plug a USB or DB9
serial cable into the evaluation board and click on the Open Serial Port button.
This PC-based application is included on the DVD-ROM that accompanies
the DEMOQE, and may also be found at:
http://www.pemicro.com/fixedlinks/DEMOToolkit.html.
The data that is graphed may come from either the PC serial port or the virtual
serial port on the DEMOQE board. The serial port of the microcontroller on
the DEMOQE board is routed to either serial port hardware or the virtual COM
port based upon the setting of jumpers J6 and J7. To properly configure
accelerometer and potentiometer resources on the DEMOQE evaluation
board, please make sure the J16 jumpers are all installed.
To start using this application, please choose COM or virtual USB COM
settings from the drop-down Port menu. By doing so, you are specifying the
port on the evaluation board that will be used for transmitting captured
accelerometer data via a COM or USB serial port. Please make sure that
jumpers on headers J6 and J7 are set accordingly. Prior to starting serial data
capture, please specify the Baud setting to reflect the parameter at which your
serial communication interface is operating. Once your port settings are
configured, please plug a USB or DB9 serial cable into the evaluation board
and click on the Open Serial Port and Start Demo button. After the serial data
is captured by the application you will see raw data in the Terminal Window. In
the meantime, the Data Snapshot window will display the accelerometer and
potentiometer data levels in the form of a bar graph. The graphing of data can
be paused and the scale of the X and Y axes can be changed via a tool bar
located in the top right corner of the DEMOQE Accelerometer Demo
Application.
This PC-based application is included on the DVD-ROM that accompanies
The Multilink Serial Re-Director interface allows you to select the specific PC
Port, real or virtual, that you wish to use for communications. You may also
set the number of bits, baud rate, and parity type. Clicking Open Serial Port
will then establish communications on that port.
8 JUMPER SETTINGS
Enables the SCI Transceiver. The user may control PTC5 in firmware
By installing both jumpers, the logic analyzer pins IN0 and IN1 will be
connected to PTC0 and PTC1 respectively.
Enables the Reset Switch and the Reset LED Display. Each jumper
may be individually installed or removed. This is the default setting.
Figure 8-11: Reset Switch and Reset LED enable Jumper (J18)
Note: The J29 labels for RSTLED_EN and RESET_EN are incorrectly switched on
the DEMOQE board silk screen. The correct label is as displayed above.
8.6 Buzzer
The DEMOQE128 integrates a Piezo Transducer whose resonant frequency
is 4.0KHz. Jumper J19 connects to PTB5 to control this buzzer.
Figure 10-1: P&E’s USB Multilink (left) and USB Multilink Universal
10.2.2 Software
The USB Multilink and USB Multilink Universal interfaces work with
Codewarrior as well as P&E’s in-circuit debuggers and flash programmers to
allow debug and flash programming of the target processor. Many of P&E’s
Development Packages include the USB Multilink or USB Multilink Universal
interface, as well as flash programming software, in-circuit debugging
software, Windows IDE, and a register file editor.
10.3.2 Software
The Cyclone PRO comes with intuitive configuration software and interactive
programming software, as well as easy to use automated control software.
The Cyclone PRO also functions as a full-featured debug interface, and is
supported by Freescale’s CodeWarrior as well as development software from
P&E.
P&E’s Cyclone PRO is also available bundled with additional software as part
of various Development Packages. In addition to the Cyclone PRO, these
11 TROUBLESHOOTING