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 DEMO9S08QB8 is a low-cost development system designed for
demonstrating, evaluating, and debugging the Freescale MC9S08QB8
microcontroller. P&E’s Embedded Multilink circuitry on the DEMO9S08QB8
board allows the processor on the DEMO9S08QB8 to be debugged and
programmed via USB from the PC. In addition, the demo board can be
powered using the USB bus.
Note:Freescale has an older device called 908QB8. 908QB8 is different from this
new 9S
sure that the resources pertain to the 9S
device.
1.2Package Contents
The DEMO9S08QB8 package includes the following items:
08QB8 device. When searching for “QB8” online resources, make
•DEMOQE Base Board with a MC9S08QB8 Daughter Card installed
•2-cell AAA battery package
•USB Cable
•Quick Start Guide
•Freescale Warranty Card
08QB8 device and NOT the 908QB8
1.3Supported Devices
The DEMO9S08QB8 supports the MC9S08QB8CWL device.
1.4Recommended Materials On DEMO9S08QB8 Resources CD
•DEMO9S08QB8 Base Board and Daughter Cards Schematics
•DEMO9S08QB8 Component Breakdown List
•DEMOQE Toolkit Applications
•Links to P&E Evaluation Software
•Links to Freescale documentation, P&E Discussion Forums, and
DEMO9S08QB8 FAQs.
1.5Handling Precautions
Take care to handle the package contents, including the DEMOQE base
board and MC9S08QB8 daughter card, in a manner such as to prevent
electrostatic discharge.
2HARDWARE FEATURES
The DEMO9S08QB8 is a demonstration and development system for
Freescale’s MC9S08QB8 microcontroller. 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
DEMO9S08QB8’s Embedded Multilink circuitry.
Note:The DEMO board’s onboard Embedded Multilink circuitry is intended to
function with the onboard 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
2DEMO9S08QB8 User Manual
•P&E’s Embedded Multilink circuitry populated on the bottom
•RS-232 Serial Port w/ DB9-F Connector
•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
DEMO9S08QB8 User Manual3
•Specifications:
•Board Size 3.5 x 4.0
•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: DEMOQE 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.
4DEMO9S08QB8 User Manual
2.3On-Board Virtual Serial Port
The DEMOQE board has a built-in virtual serial port which may be connected
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 MC9S08QB8CWL chip
2.5DC9S08QB8 Specific Connections
The labels on the DEMOQE do not necessarily represent actual pin port
function from the MC9S08QB8 microcontroller. In order to take full advantage
of the DEMOQE Base Board resources, MC9S08QB8 signals are mapped to
the DEMOQE Base Board 64-Pin Header as following:
SIGNALS OF QB8SIGNALS OF DEMOQE BOARD
PTA0-3PTA0-3
PTA4/BKGDPTA4/BKGD
PTA5/RESETPTA5/RESET
PTA6PTD2/KEY
PTA7PTD3/KEY
PTB0-1PTB0-1
PTB2/ADPPTA6/ADP
PTB3/ADPPTA7/ADP
DEMO9S08QB8 User Manual5
SIGNALS OF QB8SIGNALS OF DEMOQE BOARD
PTB4-5PTB4-5
PTB6/XTALPTB6/XTAL
PTB7/EXTALPTB7/EXTAL
PTC0-5PTC0-5
PTC6PTE6/LED
PTC7PTE7/LED
2.6Signal Mapping of DC9S08QB8 to MCU_PORT
Signal Mapping
MCU
PORT
NUMBER
11PTA3/KBIP3/ADP312VREFL
13PTC014PTA0/KBIP0/
6DEMO9S08QB8 User Manual
MC9S08QB8 PIN
SIGNAL
1VDD2PTA5/IRQ/TCLK/
3VSS4PTA5/IRQ/TCLK/
5PTB1/KBIP5/TxD/
ADP5
7PTB0/KBIP4/RxD/
ADP4
9PTA2/KBIP2/ADP210VREFH
MCU
PORT
NUMBER
MC9S08QB8 PIN
SIGNAL
~RESET
~RESET
6PTA4/ACMPO/BKGD/
MS
8PTC7
TPMCH0/ADP0/
ACMP+
Signal Mapping
MCU
PORT
NUMBER
15PTC116PTA1/KBIP1/ADP1/
17NC18NC
19PTB420NC
21NC22PTB2/KBIP6/ADP6
23PTB5/TPMCH024PTB3/KBIP7/ADP7
25NC26NC
27PTA628NC
29NC30NC
31PTA732NC
33PTC234NC
35PTC336NC
37PTC438NC
MC9S08QB8 PIN
SIGNAL
MCU
PORT
NUMBER
MC9S08QB8 PIN
SIGNAL
ACMP-
39PTC540NC
41NC42PTB7/EXTAL
43NC44PTB6/EXTAL
45NC46NC
47NC48NC
49NC50NC
51NC52NC
DEMO9S08QB8 User Manual7
Signal Mapping
MCU
PORT
NUMBER
53NC54PTC6
55NC56NC
MC9S08QB8 PIN
SIGNAL
3SYSTEM SETUP
3.1Overview
P&E’s Embedded Multilink driver is required to operate the DEMO9S08QB8
using a PC. The Embedded Multilink driver should be installed with the
CodeWarrior Development Studio software or from the DEMOQE Resources
in the DVD-ROM before the PC is connected to the DEMO9S08QB8.
3.2Operating System Requirements
The following are the resources required to run the CodeWarrior Development
Studio and the DEMO9S08QB8:
•A PC-compatible system running Windows 2000, Windows XP, or
Windows Vista
•128MB of available system RAM, and 1GB of available hard disk
space
•A DVD-ROM drive for software installation
•A USB port
MCU
PORT
NUMBER
MC9S08QB8 PIN
SIGNAL
3.3Software Setup
3.3.1Installing CodeWarrior Development Studio
To install the CodeWarrior Development Studio, insert the CodeWarrior CD
into your computer’s DVD-ROM drive. A start-up window will automatically
appear. Select CodeWarrior Installation and follow the on-screen instructions.
8DEMO9S08QB8 User Manual
Note:After installation of CodeWarrior 6.2, it is also required that you install the
S08QB8 service pack.
3.3.2Installing P&E Resources
Use the DEMOQE Resources DVD-ROM to access and install P&E resources
for the DEMO9S08QB8. These materials are not required for operation. The
support materials contained on the DEMOQE Resources DVD-ROM are
listed in Section 1.4 - Recommended Materials On DEMO9S08QB8
Resources CD.
3.4Quick Startup
Only a few steps are required to get the DEMO9S08QB8 up and running:
Step 1.Make sure that both CodeWarrior Development Studio v.6.2 and
the S08QB8 service pack are installed on your PC. Additional
information regarding CodeWarrior can be found at
www.freescale.com.
Step 2.Remove the DEMO9S08QB8 demonstration board from its anti-
static pouch. The green MC9S08QB8 daughter card should be
plugged into the header on the base board.
Step 3.Connect the USB cable from your computer to the
DEMO9S08QB8 demonstration board. Depending on your
operating system, you may need to follow steps to install the USB
driver from the DEMOQE Resources DVD-ROM. Once the USB
cable is connected properly the green USB LED on the
DEMO9S08QB8 should illuminate.
Step 4.Turn on the DEMO9S08QB8 power switch (K6). The red Power
LED should illuminate.
Step 5.First press the button labeled “PTA2.” The buzzer will sound and
PTC0 will output a fixed 75% duty cycle pulse width modulation
(PWM) signal. LEDs PTC0 to PTC2 remain on.
Press the PTA2 button a second time. the buzzer will sound again
and the PTC0 PWM duty cycle will change to 25%. LEDs PTC0,
PTC1,and PTC3 are illuminated.
Press the PTA2 button a third time, and then rotate the
potentiometer. The light intensity of LED PTC0 and the tone of the
DEMO9S08QB8 User Manual9
buzzer will vary as you rotate.
Pressing the PTA2 button a fourth time or pressing the PTA3
button at any time will turn off the buzzer sound and all the LEDs.
Step 6.Optionally, you may run the DEMOQE Logic Analyzer Application
available in the DEMOQE toolkit on the CD. This PC-based
application graphs the IN0 and IN1 signals on the DEMOQE
board. If both J11 jumpers are installed, IN0 shows PTC0 and IN1
shows PTC1. Push button PTA2 three times after reset and turn
the potentiometer to change these signals. This application may
also be found at: