DEMO9S08QE8 Freescale Semiconductor, DEMO9S08QE8 Datasheet

BOARD DEMO FOR MC9S08Q

DEMO9S08QE8

Manufacturer Part Number
DEMO9S08QE8
Description
BOARD DEMO FOR MC9S08Q
Manufacturer
Freescale Semiconductor
Series
Flexis™r
Type
MCUr

Specifications of DEMO9S08QE8

Contents
Demo Board
Silicon Manufacturer
Freescale
Core Architecture
HCS08
Core Sub-architecture
HCS08
Silicon Core Number
MC9S08
Silicon Family Name
Flexis - S08QE
Rohs Compliant
Yes
For Use With/related Products
MC9S08QE8
For Use With
DEMOACEX - BOARD EXPANSION FOR DEMO KIT
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
About DEMOQE Labs
These labs will show you how to get the
most out of your DEMOQE toolkit. Start
each lab with the board powered ON.
Make sure to use only one utility at a
time, as they share the same USB source.
Familiarize yourself with these buttons:
AccelerometerDemo running on MC9S08QE8 in data
averaging mode. Bar graph ‘C’ highlights the bus cycles
required to average the last 16 readings of the 3 axes.
The value in the 4th column in the terminal window is the
number of bus cycles in hex.
DEMO9S08QE8/4—Lab Tutorials
Start/Continue (F5) button
MCU Change Wizard button
Debug button
Taking the Lead in Low Power
Learn How to Use
DEMOQE Toolkit Utilities
This lab will show you how to use one of several
graphical utilities in the DEMOQE Toolkit included
with your board. Instructions to download these
utilities to your computer are provided in Step 2 of
the Quick Start Guide (DEMOS08QE8QSG.pdf).
Running the Quick Start Application that came pre-
loaded in the microcontroller’s on-chip flash memory,
we will now 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. To graph other microcontroller signals,
use wire jumpers from IN0 and IN1 to the respective
signals on the board’s MCU PORT.
1. Make sure that the Quick Start Application is running.
2. Launch DEMOQE Logic Analyzer utility from the start
3. In utility, click on the “Open DEMOQE and Graph Pins”
4. Click button labeled “PTA2.” This will cause a fixed duty
5. Rotate the potentiometer W1. This will change the duty
6. Click on “Close Port” button when finished.
For more information on DEMOQE Toolkit, read the
board user manual (DEMO9S08QE8UM.pdf) included
on DVD under “DEMO9S08QE8
User Manual.” For new and upgraded utilities to the
DEMOQE Toolkit, visit www.pemicro.com/fixedlinks/
demoQEtoolkit.html
Using the Low-Power Modes
This lab will demonstrate usage of three of the
MC9S08QE8’s low-power modes: LPRun, stop2 and
stop3. The lab uses the Terminal Window application
from the DEMOQE Toolkit Utilities to display the
elapsed time since the program started in
LAB
LAB
menu (Programs
Logic Analyzer Utility). *See DEMO9S08QE8 User Manual
for details on the Logic Analyzer Utility.
button to begin graphing IN0 and IN1. These signals will
be continually graphed at a sampling rate of 10 kHz.
cycle pulse width modulation signal to be output on the PTC0
pin. The PTC0 waveform is shown on analyzer channel IN0.
cycle of the variable pulse width modulation signal
output on the PTC1 pin. The PTC1 waveform is shown on
analyzer channel IN1.
1
2
>
P&E DemoQE Toolkit
>
DEMO9S08QE8
>
Utilities
>
hours:minutes:seconds. The software has four modes
of operation:
1. normal run mode
2. low-power run mode (LPRun)
3. stop3 with the external oscillator running
4. stop2 with the external oscillator running
The different modes are selected with the switches
on the DEMOQE board. The display will update every
5 seconds with the elapsed time since the last reset.
In the LPRun mode, the display is not updated, but
the total count is continuously updated. In addition,
pressing the RESET button will toggle the clock gating
open and shut. The MCU current can be measured in
the different modes by replacing the shunt on jumper
J24 (labeled on the bottom of the DEMOQE board)
with a current meter. Lowest power consumption is
achieved by removing jumpers from accelerometer
(J13-J16), potentiometer (J21) and LED circuitry (J9).
For this lab to operate correctly, the IIC pullup jumpers
(J20) must be removed.
1. Open CodeWarrior for Microcontrollers. From Windows
2. Click on “Load Example Project” from CodeWarrior
3. From example projects menu, open tree to select
4. Create a new project name (ex. Lab2), set desired location
5. Launch “Terminal Utility” from the start menu (Programs
6. Set port to USB COM and baud rate to 9600.
7. Turn board power switch to OFF position.
8. Board jumpers should all be set to the default settings
9. Turn board power switch to ON position and close
10.
11. From Connection Manager menu, select “DEMOQE on
12. From Erase and Program Flash menu, click on “Yes” to allow
13. For the application to run correctly, the MCU cannot be in
start menu you can locate it using the “Programs
Freescale CodeWarrior
CodeWarrior IDE.exe” path.
startup dialog. If the startup dialog is not shown, it may
be opened from the CodeWarrior menu by clicking
“File” and then “Startup Dialog…”.
“HCS08
DEMO9S08QE8
and click “Create Project”. This will open the project for
the Low Power application for the DEMO9S08QE8.
>
*See DEMO9S08QE8 User Manual for details on the
Terminal Utility.
shown in Quick Start Guide.
debugger window.
button, launching Debugger.
USB1” port and click on “Connect (Reset).”
the debugger to mass erase the microcontroller’s on-chip
flash memory and program it with the new application.
debug mode. Therefore, close the Debugger window. Turn
P&E DemoQE Toolkit
Compile and program the MC9S08QE8 with
Low Power application by clicking on “Debug”
>
Evaluation Board Examples
>
DEMO9S08QE8_Low_Power.”
>
>
CW for Microcontroller V6.x
Utilities
>
Terminal Utility).
>
>
>
14. Bring Terminal Utility to front and click the
15. Observe output in Terminal Utility. Count should
16. Press and hold button labeled “PTA3” on board to enter
17. Press and hold button labeled “PTA2” on board to enter
18. Press and hold button labeled “PTD2” on board to enter
19. Press and hold button labeled “PTD3” on board to enter
20. To exit from the stop2 mode, hold one of the other
21. Click the button labeled “RESET” to toggle the clock
22. Click on “Close Port” button and close Terminal
Measure Performance of the
MC9S08QE8 with Accelerometer Demo
This lab will highlight the performance capability of the
MC9S08QE8 microcontroller. It will also detail how to
use another one of several software utilities included with
your board to help you in your development. Instructions
to download these utilities to your computer were
provided in Step 2 of the Quick Start Guide.
The accelerometer application reads the X, Y and Z
axes of the 3-axis accelerometer on the DEMOQE
board using the microcontroller’s A/D converter. After any
reset, it outputs the raw values of the accelerometer
data on the microcontroller’s serial communication
interface. Pressing the PTA3 switch outputs a rolling
average of the raw accelerometer data, and pressing
the PTA2 switch outputs a filtered version of the raw
accelerometer data. For this lab to operate correctly,
the IIC pullup jumpers (J20) must be removed.
LAB
the board power switch OFF, then ON to power cycle the
MCU. The MCU is now running the Low Power application.
“Open Serial Port” button.
increase by 5 every 5 seconds.
LPRun mode until mode change is reflected in terminal
window. The terminal time updates will cease but the
PTC0 LED will continue to blink. Wait 5 or more seconds.
normal run mode until mode change is reflected in
terminal window. The terminal time updates will resume
with accurate total count.
stop3 mode until mode change is reflected in terminal
window. The MCU will wake from stop3 mode every 5
seconds and update the total count.
stop2 mode until mode change is reflected in terminal
window. The MCU will wake from stop2 mode every 5
seconds and update the total count.
buttons down until the terminal window shows a change
of mode. This may take up to 5 seconds.
gates open and shut. When the gates are shut, the
normal run mode current will be noticeably lower. You
should not see a significant difference in the other
modes. The RESET button should not be used when the
DEMO is in stop2 mode.
Utility when finished.
3
Setup demo:
1. Open CodeWarrior for Microcontrollers. From Windows
2. Click on “Load Example Project” from CodeWarrior
3. From example projects menu, open tree to select:
4. Create a new project name (ex. Lab3), set desired
5. Launch Accelerometer Demo utility from the start
6. Set port to USB COM and baud rate to 9600.
7. Turn board power switch to OFF position.
8. Board jumpers should all be set to the default settings
9. Turn board power switch to ON position and close
10.
11. From Connection Manager menu, select “DEMOQE on
12. From Erase and Program Flash menu, click on “Yes” to allow
13.
14. Bring Accelerometer Demo utility to front and click the
15. Move board around to demonstrate 3-axis accelerometer.
16. Observe output of raw data in Accelerometer Demo
17. Click button labeled “PTA3” on board to enable data
18. Click button labeled “PTA2” on board to enable data
19. Click on “Close Port” button and close Terminal Utility
start menu, you can locate it using the “Programs
Freescale CodeWarrior
CodeWarrior IDE.exe” path.
startup dialog.
“HCS08
DEMO9S08QE8
location, and click “Create Project.” This will open
the project for the Accelerometer Application for the
MC9S08QE8 microcontroller.
menu (Programs
Accelerometer Demo). *See DEMO9S08QE8 User Manual
for details on the Accelerometer Demo utility.
shown in Quick Start Guide.
debugger window.
launching Debugger.
USB1” port and click on “Connect (Reset).”
the debugger to mass erase the microcontroller’s on-chip
flash memory and program it with the new application.
“Open Serial Port and Start Demo” button.
utility. The data is displayed in hexadecimal format in the
Terminal Window and in graphical form in the bar graph
and Scope windows. The fourth value is the number of
bus cycles for the CPU to process the data.
averaging. Move board.
filtering. Move board.
when finished.
Compile and program the MC9S08QE8
with the Application by clicking on “Debug” button,
Click on the “Start/Continue (F5)” button in
debugger to run application.
>
Evaluation Board Examples
>
>
DEMO9S08QE8_Accelerometer_Ex.”
P&E DemoQE Toolkit
>
CW for Microcontroller V6.x
>
>
Utilities
>
>
>

Related parts for DEMO9S08QE8

DEMO9S08QE8 Summary of contents

Page 1

... Create a new project name (ex. Lab2), set desired location and click “Create Project”. This will open the project for the Low Power application for the DEMO9S08QE8. 5. Launch “Terminal Utility” from the start menu (Programs > > > P&E DemoQE Toolkit Utilities Terminal Utility). *See DEMO9S08QE8 User Manual for details on the Terminal Utility. > DEMO9S08QE8 6. Set port to USB COM and baud rate to 9600. 7. Turn board power switch to OFF position. 8. Board jumpers should all be set to the default settings shown in Quick Start Guide. 9. Turn board power switch to ON position and close debugger window. ...

Page 2

... DEMO9S08QE8/4—Lab Tutorials Ultra-Low-Power Microcontrollers DEMO9S08QE8 Lab Tutorials DEMO9S08QE8/4—Lab Tutorials MCU Port Connector Pinout The following is the pinout for the MCU port connector on the DEMOQE board. No connects (n/c) for 32LQFP apply to DC9S08QE8 daughter card. VDD 1 2 PTA5/IRQ/TPM1CLK /RESET VSS 3 4 PTA5/IRQ/TPM1CLK/RESET ...

Related keywords