Table of Contents

Advertisement

Quick Links

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DEMOQE128 and is the answer not in the manual?

Questions and answers

Summary of Contents for P&E Microcomputer Systems DEMOQE128

  • Page 2 Purchase Agreement 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.
  • Page 3: Table Of Contents

    On-Board Virtual Serial Port ................4 DEMOQE Daughter Card Features..............5 DEMOQE128 JUMPER/CONNECTOR QUICK REFERENCE ...... 5 GETTING STARTED WITH THE DEMOQE128 ..........6 Quick Start Guide ................... 7 LAB 1: Learn How to use DEMOQE Toolkit Utilities ........9 LAB 2: Migrate Quickly from 8-Bit To 32-Bit..........
  • Page 4 Optional Jumpers For Various VDD And VSS ..........44 DEMOQE128 CODE DEVELOPMENT SOFTWARE ........44 Using CodeWarrior With The DEMOQE128 ..........45 Using P&E Software With The DEMOQE128 ..........45 TRANSITIONING TO YOUR OWN TARGET ..........46 10.1 Hardware Solutions At A Glance ..............46 10.2...
  • Page 5: Introduction

    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.
  • Page 6: Recommended Materials On Breaking Bit Boundaries Dvd-Rom

    MC9S08QE128 daughter card, and MCF51QE128 daughter card, in a manner such as to prevent electrostatic discharge. 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.
  • Page 7 INPUT_EN for two input channels to Embedded Multilink • 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 12VDC Center Positive DEMOQE128 User Manual...
  • Page 8: On-Board Logic Analyzer

    • Two AAA Battery Cells Figure 2-1: DEMOQE128 Top Component Placement On-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.
  • Page 9: Demoqe Daughter Card Features

    DEMOQE Base Board • A top-mounted MC9S08QE128CLH or MCF51QE128CLH chip DEMOQE128 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.
  • Page 10: Getting Started With The Demoqe128

    Figure 2-3: MCU Port Connector Pinout GETTING 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.
  • Page 11: Quick Start Guide

    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.
  • Page 12 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.
  • Page 13: Lab 1: Learn How To Use Demoqe Toolkit Utilities

    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. LAB 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.
  • Page 14 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.
  • Page 15: Lab 2: Migrate Quickly From 8-Bit To 32-Bit

    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.
  • Page 16 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 Fam- ily tree as shown in image below. DEMOQE128 User Manual...
  • Page 17 Click on the GO button in the debugger to run the application. The GO button is shown here: Figure 3-8: Debugger GO Button 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 Manual...
  • Page 18: Lab 3: Measure Performance Between 8-Bit And 32-Bit

    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: DEMOQE128 User Manual...
  • Page 19 5. Launch the AccelerometerDemo utility from within the DEMOQE_Toolkit folder by double-clicking on the Accelerometer- Demo.exe file. 6. See the DEMOQE128 User Manual for more details on the Acceler- ometer Demo utility. 7. Set “ Port” to “ USB COM.”...
  • Page 20 3 axes. Value shown in orange circle is the number of bus cycles in hex. 6. Move the board around to demonstrate the 3-axis accelerometer. 7. Observe the output in the Accelerometer Demo utility. DEMOQE128 User Manual...
  • Page 21 1. Compile the Accelerometer Application and start the process of pro- gramming it into the flash of the 32-bit QE128 microcontroller by click- ing on the debugger launch button shown here : 2. From the Connection Manager menu, select the “ USB1: DEMOQE” DEMOQE128 User Manual...
  • Page 22 Figure 3-10: Accelerometer Demo running on 32-bit ColdFire V1 QE128 in data averaging mode. Yellow arrow highlights the bus cycles required to average the last 16 readings of the 3 axes. Value shown in orange circle is the number of bus cycles in hex. DEMOQE128 User Manual...
  • Page 23: Lab 4: Learn How To Use Codewarrior

    •Assembly Programming with Device Initialization 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 “ Run Getting Started Tutorial” from the CodeWarrior startup DEMOQE128 User Manual...
  • Page 24: System Setup

    4. Select “ Click here to start tutorial” and follow on-screen instructions. SYSTEM SETUP Overview P&E’ s Embedded Multilink driver is required to operate the DEMOQE128 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 DEMOQE128.
  • Page 25: Quick Startup

    Links to P&E Evaluation Software • Links to Freescale documentation, P&E Discussion Forums, and DEMOQE128 FAQs. Quick Startup Only a few steps are required to get the DEMOQE128 up and running. Please reference Section 3.1 - Quick Start Guide. DEMOQE128 User Manual...
  • Page 26: Hardware Setup

    Hardware Setup 4.5.1 First-Time Connection The DEMOQE128 may be connected to a PC through a USB port. Connection steps are listed below in typical order: 1. Install the required software, as described in the previous section. 2. Make sure the jumpers for USB_PWR, 3V for VOLT_EN, and REG_VDD for VDD_SELECT are installed.
  • Page 27 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: DEMOQE128 User Manual...
  • Page 28 Select the “ Install the software automatically (Recommended)” option and click the “ Next” button. 8. Windows will install the driver files to your system. At the end of the installation, the following dialog box will appear: DEMOQE128 User Manual...
  • Page 29: Operating Modes

    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.
  • Page 30: Run Mode

    DEMOQE128 CODE DEVELOPMENT SOFTWARE for more information. Run Mode The DEMOQE128’ s rich component list empowers it to perform a variety of tasks. Once an application is developed, debugged, and programmed properly into the QE128 internal flash memory, it can run with or without connecting to a host.
  • Page 31: Demoqe Terminal Application

    This PC-based application acts as a standard serial port terminal application on the PC. It works with standard serial ports as well as the virtual serial port on the DEMOQE board. The application includes settings to adjust the COM DEMOQE128 User Manual...
  • Page 32: Demoqe Unsecure Application

    This PC-based application is included on the DVD-ROM that accompanys the DEMOQE, and may also be found at: http://www.pemicro.com/fixedlinks/demoQEtoolkit.html. DEMOQE Unsecure Application This application allows secure CFV1 and HCS08 microcontrollers to be unsecured. The Unsecure application will erase a secure device to make it DEMOQE128 User Manual...
  • Page 33: Demoqe Accelerometer Demo Application

    X, Y, and Z accelerometer signals, as well as the current processor loading. For this application to work properly, the microcontroller- based serial accelerometer application must be programmed into the microcontroller which is plugged into the DEMOQE board. DEMOQE128 User Manual...
  • Page 34 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 DEMOQE128 User Manual...
  • Page 35: Demoqe Serial Grapher Application

    ($00-$FF) or word values ($0000-$FFFF). The data format indicates whether the data is byte or word data. The graphical components automatically size their range depending upon the incoming data. DEMOQE128 User Manual...
  • Page 36 As can be seen in Section 6.5.2 - Data Format, each incoming data command affecting the graphing component must have new data for all four waveforms. An example graph is shown here: DEMOQE128 User Manual...
  • Page 37 The nn values are 00-FF and correspond in order to the data displayed on the following bar graphs lines : A, B, C, D. 6.5.2.2 Word Formatted Data There are three commands which may be accepted. All commands must end DEMOQE128 User Manual...
  • Page 38: Demonstration Microcontroller Applications

    LED for each of the buttons which may be pressed on the DEMOQE128 board. The potentiometer controls the intensity of two LEDs on the DEMOQE128 board, via PWM signals. This application comes pre-programmed into the memory of the QE128 processor.
  • Page 39: Serial Accelerometer Application

    Embedded Multilink circuitry or a 2.5mm barrel connector. The on-board regulator can regulate the output to either 2.1V or 3V. The DEMOQE128 is fully functional at both voltages. Power input and voltage selection are achieved by using 3 option headers.
  • Page 40 J4 - Regulator Output Selection Jumper VOLT_EN The regulator can output either a 2.1VDC or 3VDC voltage for the DEMOQE128. The VOLT_EN jumper J4 selects the voltage. Figure 8-2 shows the regulator output selection details. Select regulator output to be 2.1V.
  • Page 41: Rs232 Communications

    SCI signals. The transceiver operates from 1.8V to 4.25V, and it can be enabled or disabled via jumper settings or through firmware control. The DEMOQE128 also integrates the SCI signal into the Embedded Multilink circuitry. A user can communicate with the microcontroller SCI module via either the on-board DB9 connector or the Embedded Multilink circuitry.
  • Page 42 Multilink SCI circuitry. This is the default setting. Figure 8-5: SCI TXD Signal Selection Jumper TXD_EN (J7) 8.2.3 J8 - SCI Transceiver Enable COM_EN (J8) Enables the SCI Transceiver. The user may control PTC5 in firmware to enable or disable the transceiver. DEMOQE128 User Manual...
  • Page 43: Led Display Port

    Figure 8-7: LED Display Enable Header LED_ENABLE (J9) Input and Reset Switches The DEMOQE128 has an option to connect two signals, PTC0 and PTC1, to the Embedded Multilink for signal processing. The two signals are connected or disconnected to IN0 or IN1 correspondingly, via jumpers P&E INPUT_EN (J11).
  • Page 44 By default, all jumpers are installed to enable all the switches. Figure 8-9: Jumper Settings for Light Touch Switches KEY_ENABLE (J12) 8.4.3 J18 - Reset Switch Enable and Reset LED Display Enable Jumper RESET_EN Enables the Reset Switch and the Reset LED Display. Each jumper DEMOQE128 User Manual...
  • Page 45: 3-Axis Accelerometer Jumper Settings

    Figure 8-10: Reset Switch and Reset LED enable Jumper (J18) 3-Axis Accelerometer Jumper Settings The DEMOQE128 integrates a 3-axis accelerometer. Its enable or disable, sensitivity levels, and output signal connections are all jumper settable. Jumpers J13, J14, J15 and J16 are associated with the accelerometer.
  • Page 46 Puts the 3-axis accelerometer into sleep mode. The user may control PTC4 in firmware to enable or disable the accelerometer. In this configuration, the user needs to pay close attention to LED PTC4 and RSTO configuration. Figure 8-13: Accelerometer Sleep Mode Jumper settings (J15) DEMOQE128 User Manual...
  • Page 47: Buzzer

    Enables Buzzer to be controlled by PTB5. This is the default setting. Figure 8-15: Accelerometer Signal Output ACC_EN (J19) IIC Pull-up The DEMOQE128 provides external pull-up resistors for SCL and SDA lines, enabled by installing the corresponding jumpers on J20. By default both jumpers are installed.
  • Page 48: Analog Input Potentiometer

    8.10 Optional Jumpers For Various VDD And VSS The DEMOQE128 provides 5 jumpers, J22 through J26, for different VDD and VSS connections on the bottom of the board. By default, they are not populated and are shorted correspondingly with zero-ohm resistors in parallel, except J24 which is populated.
  • Page 49: Using Codewarrior With The Demoqe128

    BDM tool is needed to debug and program the DEMOQE128. A user only needs to connect the DEMOQE128 to their PC to start developing code for it. The DEMOQE128 package comes with a special edition of Freescale’ s CodeWarrior studio.
  • Page 50: Transitioning To Your Own Target

    TRANSITIONING TO YOUR OWN TARGET Once you have finished working with the DEMOQE128 and are ready to build your own target, you will need a hardware tool to allow you to develop using your own board. P&E’ s USB Multilink and P&E’ s Cyclone PRO offer two effective solutions, depending on your needs.
  • Page 51: Working With P&E' S Usb Multilink

    Figure 10-1: P&E’ s USB Multilink (USB-ML-12 shown) 10.2.1 Product Features & Implementation P&E’ s USB Multilink Interface (USB-ML-12) connects your target to your PC and allows the PC access to the Background Debug Mode (BDM) on DEMOQE128 User Manual...
  • Page 52: Working With P&E' S Cyclone Pro

    PC via USB, Ethernet, or Serial Port and enables you to debug your code, program, and test it on your board. After development is complete the Cyclone PRO can be used as a production tool on your DEMOQE128 User Manual...
  • Page 53: Troubleshooting

    PC, the first step is to make sure that the DEMOQE128 hardware is connected to the PC via a USB 2.0 high-speed cable. If it is connected, unplug and then plug in the USB cable on the DEMOQE128 board and click refresh in the connection assistant.
  • Page 54 This may give some indication of what the problem is. (D) Using a USB Hub The DEMOQE128 is a high-power USB device. If a USB Hub is used, it must be a self-powered hub (i.e., with its own power supply). If the Hub is not self- powered the DEMOQE128 will not work.
  • Page 55: Codewarrior Installation Fails (Windriver Error)

    3. Select the "System Devices" in the Device Manager window. 4. Expand the tree index (+) for System Devices. 5. At the bottom of the System Devices list, you should see a WinDriver item. 6. Right-click on WinDriver and select Enable from the drop-down DEMOQE128 User Manual...
  • Page 56 If you are unable to disable the WinDriver system driver in the above fashion, you can delete the file c:\windows\system32\windrvr6.sys and then reboot your machine. You should then re-run the installer and complete the procedure. Reboot your machine after the installation has finished. DEMOQE128 User Manual...

Table of Contents