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.
Supported Devices ..................1 Recommended Materials On The Getting Started DVD-ROM ....... 1 Handling Precautions ..................2 HARDWARE FEATURES................2 DEMOEM Base Board Features ..............2 On-Board Logic Analyzer ................7 On-Board Virtual USB Port................7 DEMOEM Daughter Card Features ............... 8 DEMOEM Jumper/Connector Quick Reference..........
Page 4
Optional Jumpers For Various VDD And VSS ..........34 DEMOEM CODE DEVELOPMENT SOFTWARE......... 34 Using CodeWarrior With The DEMOEM............34 Using P&E Software With The DEMOEM.............35 TRANSITIONING TO YOUR OWN TARGET ..........35 Hardware Solutions At A Glance ..............36 Working With P&E’s USB Multilink ...............37 Working With P&E’s Cyclone PRO ...............38...
Base Board and a DCF51EM256 Daughter Card. P&E’s Embedded Multilink circuitry on the DEMOEM board allows the processor connected to the DEMOEM to be debugged and programmed via USB from a PC. In addition, the demo board can be powered using the USB bus.
P&E Embedded Multilink Toolkit applications • P&E Embedded Multilink driver installation guide and resources Handling Precautions Take care to handle the package contents, including the DEMOEM Base Board and DCF51EM256 Daughter Card, in a manner such as to prevent electrostatic discharge. HARDWARE FEATURES The DEMOEM is a demonstration and development system for Freescale’s...
Page 7
Embedded Multilink design populated on bottom of board • BDM Connector (6-pin Header) (not populated) • Jumpers (J39 and J40) to select programming the MCU daughter card or the MC9S08QE8 on the DEMOEM Power: • Power LED • Board power via the USB connection •...
Page 8
MCU data sheet. • Footprint for jumpers to disable XTAL from MCU • 0 ohm resistors in parallel with jumper footprints to connect XTAL circuit • Jumpers to disable all the user I/O functions from additional circuitry DEMOEM User Manual...
Page 9
Nucleus ADC inputs via jumpers • 6 LEDs, one for each PWM output • 1 LED connected to a GPIO • 3 buttons Serial Communication: • IR interface (Tx and Rx). Connected with SCI1. (External circuitry DEMOEM User Manual...
Page 10
Header pins for user connector or convenient monitoring of every serial port • Specifications: • Board Size 6.0 x 4.5 • Daughter Card Size 2.0 x 2.1 • Power Input: • USB Cable: 5VDC, 500mA max • DC Power Jack: 2.1/5.5mm barrel connector, 6VDC Center Positive DEMOEM User Manual...
DVD-ROM, displays the logic analyzer signals on a PC. On-Board Virtual USB Port The DEMOEM board has a built-in virtual serial port which may be connected to the EM 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.
DEMOEM Jumper/Connector Quick Reference Default Jumper Settings The following is a list of default jumper settings for DEMOEM board. The settings listed indicate the “on” (or installed) position. More detailed description of the jumper settings are available in Section 7 - JUMPER SETTINGS.
Page 13
ALL ON LCD Pin Connections ALL ON Touch Switches Enable ALL ON DADMx to GND 2&3 IRQ Pull-Up, Pull-Down 1&2 IRQ Switch Enable Reset Switch, LED ALL ON Enable 1&2 Tamper Switch Enable ALL ON Touch-Pad Enable DEMOEM User Manual...
Page 14
1&2 QE8 Vdd IRTC VBAT Supply ALL ON QE8 PWM to ADC 1&2 Debug Reset EM/QE 1&2 Debug BKGD EM/QE ALL ON PTA LED Enable 1&2 PTB0 IR Capacitor 1&2 PTB0 IR Enable 1&2 Piezo Buzzer Enable DEMOEM User Manual...
MCU Port Connector Pinout The following is the pinout for the MCU Port connector on the DEMOEM board. Figure 2-2: MCU Port Connector Pinout GETTING STARTED WITH THE DEMOEM The DEMOEM is a low-cost board targeting quick microcontroller evaluation. Please refer to the DEMOEM Quick Start Guide and Labs for instructions on how to install software, connect the DEMOEM to your PC, and run quick demonstrations.
DVD-ROM. 4.3.2 Installing P&E Resources Use the DEMOEM Resources in the DVD-ROM to access and install P&E resources for the DEMOEM. These materials are not required for operation. The DEMOEM Resources in the Getting Started DVD-ROM contains the following support materials: •...
Quick Startup Only a few steps are required to get the DEMOEM up and running. Please reference the Quick Start Guide. Hardware Setup 4.5.1 First-Time Connection The DEMOEM may be connected to a PC through a USB port. Connection steps are listed below in typical order: 1.
Page 18
6. Depending on the operating system, you may see the “Found New Hardware Wizard” dialog again to assist you with software installation for “PEMicro USB Serial Port (i1).” On Windows XP (SP2), the follow- ing dialog will appear: DEMOEM User Manual...
Page 19
Figure 4-3: Found New Hardware Wizard Dialog (3 of 4) Select the “Install the software automatically (Recommended)” option and click the “Next” button. 7. Windows will install the driver files to your system. At the end of the installation, the following dialog box will appear: DEMOEM User Manual...
If the DEMOEM hardware interface driver is now properly installed on your system, the green USB LED (D1000) on the DEMOEM Base Board should be illuminated. In addition, if you turn on the system power of the DEMOEM you will see the red Power LED (D2) illuminate.
DEMOEM CODE DEVELOPMENT SOFTWARE for more information. Run Mode The DEMOEM’s rich component list empowers it to perform a variety of tasks. Once an application is developed, debugged, and programmed properly into the EM internal flash memory, it can run with or without connecting to a host.
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 DEMOEM board. Once the USB and Power LEDs light up, indicating the proper enumeration on the USB port, click on the Open DEMO and Graph Pins button.
This application allows secure CFV1 and HCS08 microcontrollers to be unsecured. The Unsecure application will erase a secure device to make it unsecure. This application works with the DEMOEM board as well as other user hardware connected to the PC via the USB Multilink or Cyclone PRO hardware interfaces.
Perform Unsecure button. The application will finish unsecuring and erasing the device shortly thereafter. This PC-based application is included on the DVD-ROM that accompanies the DEMOEM, and may also be found at: http://www.pemicro.com/fixedlinks/demotoolkit.cfm. Serial Grapher Application This PC-based application is a generalized version that may be used with custom microcontroller code which transmits data in the correct format.
Page 25
($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. This PC-based application is included on the DVD-ROM that accompanies the DEMOEM and may also be found at: http://www.pemicro.com/fixedlinks/demotoolkit.cfm. 6.4.1 Visual Components The Bar Graph has four separate bars A, B, C, and D.
Page 26
As can be seen in Data Format, each incoming data command affecting the graphing component must have new data for all four waveforms. An example graph is shown here: DEMOEM User Manual...
Page 27
The nn values are 00-FF and correspond in order to the data displayed on the following graph lines: W, Z, Y, X. AnnBnnCnnDnn The nn values are 00-FF and correspond in order to the data displayed on the following bar graphs lines: A, B, C, D. DEMOEM User Manual...
3.3V. Power input is selected by using the J3, J4, and J24 headers. Select the USB port to supply microcontroller VDD. This is the default setting. Figure 7-1: Power Source Selection Header (J3) DEMOEM User Manual...
Figure 7-3: MCU_PORT Header (J24) Virtual Serial Port The DEMOEM board has a built-in virtual serial port which may be connected to the EM processor’s SCI or SCI3 Rx and Tx. 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.
Note: The default connection is to the SCI3 signals. SPI Port The DEMOEM board provides three headers for convenient access to SPI module signals: J11 for SPI1, J12 for SPI2, and J13 for SPI3. The signals are arranged as below:...
Figure 7-9: EEPROM Enable (J14) LED Display Port The DEMOEM has 4 LEDs connected to signals PTE4, PTE5, PTA5, and PTA6 that may be driven by 5V. They can be enabled or disabled by installing or removing the corresponding jumpers, J15 & J41, in the LED_EN header.
Figure 7-11: LED Display Enable Header LED_EN (J41) IR Interface 7.7.1 J16 - IR_EN Header The DEMOEM includes an infrared communications interface whose signals are connected with SCI1 and are jumper enabled by J16. Figure 7-12: IR_EN Header (J16) 7.7.2 J42 - PTB0 IR Capacitor Connects a 0.1 uF bypass capacitor to PTB0.
Figure 7-14: PTB0 IR Enable (J43) External Crystal Circuitry The DEMOEM design incorporates, but has not populated, a crystal circuit for XOSC2. Jumper 17 enables the EXTAL2 and XTAL2 signal connections when populated. Figure 7-15: External Crystal Circuitry CLK2_EN (J17) P&E’s Input Capture Header...
Figure 7-16: Jumper Settings for Input Signals to P&E’s Embedded Multilink, P&E INPUT_EN (J18) 7.10 LCD Module The DEMOEM brings all LCD signals to two 22x2 headers, J26 and J27. By default all jumpers are installed. Header 25 is used to demonstrate FP/BP selection. Figure 7-17: LCD Module Header (J25) By default, LCD0 controls BP0 and LCD4 controls FP0.
Page 35
Buttons 7.12.1 J31 - IRQ Button The DEMOEM board has an IRQ button enabled by jumper position 32. When enabled it is connected to either a pullup or a pulldown resistor, determined by jumper J31. By default it is connected to a pulldown resistor.
QE8-Related Jumper Settings The DEMOEM incorporates a QE8 device, which obtains power from jumper J36. Its 6 PWM channels are connected via jumper J38 to DEMOEM ADC inputs. Its BKGD and Reset debugging signals are selected via jumpers J39 and J40. Please see the corresponding section for the header definition.
7.15 VBAT Header The DEMOEM provides a configurable connection from the coin-cell CR2032 battery to the IRTC supply pin, via jumper 37. If a jumper is installed, the cell battery will provide power to the VBAT pin of the daughter card MCU.
The DEMOEM includes P&E’s Embedded Multilink circuitry, so no external hardware BDM tool is needed to debug and program the DEMOEM. A user only needs to connect the DEMOEM to their PC to start developing code for it. The DEMOEM package comes with an evaluation edition of Freescale’s CodeWarrior studio.
TRANSITIONING TO YOUR OWN TARGET Once you have finished working with the DEMOEM 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.
Interactive Programming via Host PC • In-Circuit Debugging, Programming, and Testing • Compatible with Freescale’s ColdFireV1, HCS08, RS08, and HC(S)12(X) microcontroller families • Communication via USB, Serial, and Ethernet Ports • Multiple image storage • LCD screen menu interface DEMOEM User Manual...
P&E’s USB Multilink Development Packages come with the USB Multilink Interface, as well as flash programming software, in-circuit debugging software, Windows IDE, and register file editor. DEMOEM User Manual...
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 DEMOEM User Manual...
DEMOEM hardware. If this dialog indicates that the DEMOEM hardware is not connected to the PC, the first step is to make sure that the DEMOEM 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 DEMOEM board and click refresh in the connection assistant.
This may give some indication of what the problem is. (D) Using a USB Hub The DEMOEM 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 DEMOEM will not work.
Page 45
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. DEMOEM User Manual...
Need help?
Do you have a question about the DEMOEM and is the answer not in the manual?
Questions and answers