P&E Microcomputer Systems DEMOEM User guide

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. 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.
© 2009 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.
P&E Microcomputer Systems, Inc. 98 Galen St. Watertown, MA 02472
617-923-0053 http://www.pemicro.com
Manual version 1.02
1 INTRODUCTION ............................................................................................1
1.1 Overview ........................................................................................................1
1.2 Package Contents..........................................................................................1
1.3 Supported Devices.............................................. ... .... ... ... ... .... ... ... .................1
1.4 Recommended Materials On The Getting Started DVD-ROM.......................1
1.5 Handling Precautions.....................................................................................2
2 HARDWARE FEATURES...............................................................................2
2.1 DEMOEM Base Board Features ... ... ... ... ... .... ... ... ... .... .................................... 2
2.2 On-Board Logic Analyzer ...............................................................................7
2.3 On-Board Virtual USB Port.............................................................................7
2.4 DEMOEM Daughter Card Features ...............................................................8
2.5 DEMOEM Jumper/Connector Quick Reference............................................. 8
3 GETTING STARTED WITH THE DEMOEM.................................................11
4 SYSTEM SETUP.......................................................................................... 11
4.1 Overview ......................................................................................................11
4.2 Operating System Requirements ................................................................12
4.3 Software Setup.............................................................................................12
4.4 Quick Startup................................................................................................13
4.5 Hardware Setup ........................................................................................... 13
5 OPERATING MODES...................................................................................16
5.1 Overview ......................................................................................................16
5.2 Debug Mode.................................................................................................16
5.3 Run Mode............................... ... .... .......................................... ... ... ...............17
5.4 External BDM Mode .....................................................................................17
6 P&E EMBEDDED MULTILINK TOOLKIT PC APPLICATIONS....................17
6.1 Logic Analyzer Application...........................................................................17
6.2 Terminal Application.....................................................................................18
6.3 DEMOEM Unsecure Application..................................................................19
6.4 Serial Grapher Application ...........................................................................20
7 JUMPER SETTINGS....................................................................................24
DEMOEM User Manual ii
7.1 System Power .. ... ... .... ... ... ... .......................................... .... ............................24
7.2 Virtual Serial Port..........................................................................................25
7.3 Serial Port.....................................................................................................26
7.4 SPI Port ........................................... .......................................... .... ...............26
7.5 EEPROM Enable..........................................................................................27
7.6 LED Display Port ..........................................................................................27
7.7 IR Interface ... ... ... ... .......................................... .... ... ......................................28
7.8 External Crystal Circuitry ..............................................................................29
7.9 P&E’s Input Capture Header ........................................................................29
7.10 LCD Module..................................................................................................30
7.11 P&E Light Touch Switch Enable Header ................................ ......................30
7.12 Differential Analog Channel Inputs ...............................................................30
7.13 Touch Pads...................................................................................................32
7.14 QE8-Related Jumper Settings......................................................................32
7.15 VBAT Header................................................................................................33
7.16 Piezo Buzzer....... .......................................... ... .... .........................................34
7.17 Optional Jumpers For Various VDD And VSS..............................................34
8 DEMOEM CODE DEVELOPMENT SOFTWARE ......................................... 34
8.1 Using CodeWarrior With The DEMOEM.......................................................34
8.2 Using P&E Software With The DEMOEM.....................................................35
9 TRANSITIONING TO YOUR OWN TARGET............................................... 35
9.1 Hardware Solutions At A Glance ..................................................................36
9.2 Working With P&E’s USB Multilink ...............................................................37
9.3 Working With P&E’s Cyclone PRO...............................................................38
10 TROUBLESHOOTING.................................................................................. 39
10.1 DEMOEM Is Undetected ........................................... ... ................................ 39
10.2 CodeWarrior Installation Fails (WinDriver Error)...........................................40
iii DEMOEM User Manual

1 INTRODUCTION

1.1 Overview

The DEMOEM is a low cost development system supporting Freescale MCF51EM256 and MCF51EM128 microcontrollers. It consists of a DEMOEM 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.

1.2 Package Contents

The DEMOEM package includes the following items:
DEMOEM Base Board with a DCF51EM256 Daughter Card installed
Getting Started DVD - Getting started with the series of microcontrollers
USB A-to-B Cable
Quick Start Guide
Freescale Warranty Card

1.3 Supported Devices

The DEMOEM supports the following devices:
MCF51EM256
MCF51EM128

1.4 Recommended Materials On The Getting Started DVD-ROM

Freescale MCF51EM256 reference manual and datasheet
DEMOEM User Manual 1
DEMOEM Base Board and Daughter Card schematic
P&E Embedded Multilink Toolkit applications
P&E Embedded Multilink driver installation guide and resources

1.5 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.

2 HARDWARE FEATURES

The DEMOEM is a demonstration and development system for Freescale’s MCF51EM256 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 the 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 DEMOEM’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 ot he r de vice s.

2.1 DEMOEM Base Board Features

On-board Logic Analyzer
On-board Virtual Serial Port
Four (4) asymmetrically positioned 13x2 male connectors for interchangeable daughter cards
P&E’s Embedded Multilink circuitry populated on the underside
SCI signals connected to P&E’s Embedded Multilink through jumpers
Board:
Mother/daughter card approach. Daughter card contains only MCU and power bypass caps:
2 DEMOEM User Manual
Connectors for MCF51EM256 100-pin LQFP (DCF51EM256)
PCB coloring:
Black-colored mother board
Red-colored daughter card
Freescale Form Factor Parameters must be followed
50-pin (2x25-pin) connector labeled MCU_POR T (J1) to bring out some device signals
MCU_PORT (J1) has a (2.54 pitch, dual row) through-hole Female connector: 2x25 Socket Header, Pass Thru, .1", Bottom Entry, SMT
BDM interface
Integrated P&E Embedded Multilink Circuitry
:
MDI interface features:
SCI signals from Embedded Multilink connected through
jumper to SCI1 or SCI3 pins of EM MCU
“Logic analyzer” inputs to timer channels of Embedded
Multilink to header pins
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
On board Voltage Regulator with 3.3V output to MCU
Barrel style power connector (2.1 mm)
AAA battery holder for 2 batteries. (Alternate board power supply).
Power switch for all board power
DEMOEM User Manual 3
Layout for jumper from board VDD to MCU VDD pins, with layout for an optional zero ohm resistor to permanently connect these signals.
Layout for jumper from MCU VDD to MCU VDDA and from MCU VSS to MCU VSSA pins, with populated zero ohm resistor shorting jumper pins.
Layout for jumper from MCU VDDA to MCU VREFH and from MCU VSSA to MCU VREFL pins, with populated zero ohm resistor shorting jumper pins
All power traces are minimum double width
Four test points for GND
Four test point for VDD
Voltage input jumpers
powered DEMO via on-board voltage regulato r (3.3V)
powered DEMO via on-board USB BDM (3.3V)
powered DEMO via on-board battery (3.0V)
supply 3.3V power to the MCU_PORT header if the board is
powered though the on-board regulator or USB
Noise filter in the VDD to VDDA, VSS and VSSA connection in order to improve ADC accuracy
MCU
:
Reset switch with optional LED indicator.
IRQ Button
Crystal circuit for 32kHz to 16MHz crystal for XOSC2 input (not populated)
Use circuit components recommended by crystal manufacturer
and MCU data sheet.
Footprint for jumpers to disable XTAL from MCU
0 ohm resistors in parallel with jumper footprints to connect XT AL
circuit
Jumpers to disable all the user I/O functions from additional circuitry
4 DEMOEM User Manual
LCD and UI:
3V LCD Glass
Jumpers (J25) to configure front and back plane selection
4 Buttons
•4 LEDs
4 Touch cap pads (require software developed fo r touc h sensing with
standard I/Os)
Independent RTC:
Coin-cell (CR2032) lithium battery holder with connection to
MCF51EMxx VBAT pin
Tamper button connected to TAMPER pin
32.768 kHz Crystal with it s circuitry connected in EXTAL1 and XT AL 1
pins
Optional crystal footprint on DCF51EM256 daughter card (not populated)
Piezo buzzer for IRTC alarm
Analogue Signal Syntheses
MC9S08QE8 (20-pin SOIC) with:
Three Potentiometers
6 PWM outputs with low-pass filters in order to generate 60/50 Hz signals connected to 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 5
:
:
designed to use the internal PRACMP for Rx and considering higher current capability in the Tx pin)
RS-232 circuitry with BD9 connector connected to SCI3 through jumpers (whole circuit not populated)
Drive four 5V LEDs using MCF51EMxx PTE4, PTE5, PTA5, and PTA6, jumper for disabling connection
EEPROM serial SPI1 memory for NVM data storage
Header pins for user connecto r 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
6 DEMOEM User Manual
Figure 2-1: DEMOEM Top Component Placement

2.2 On-Board Logic Analyzer

The DEMOEM 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 PTA5 and PTA6 signals on the DEMOEM board by default via the J41 jumpers. The channels may be connected to any of the processor pins via wire jumpers (not included).
The Logic Analyzer Utility, included in the P&E Embedded Multilink Toolkit on the accompanying DVD-ROM, displays the logic analyzer signals on a PC.

2.3 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.
The Terminal Window Utility, included in the P&E Embedded Multilink Toolkit on the accompanying DVD-ROM, is a generic serial port utility which works with the DEMOEM virtual serial port or actual serial port hardware.
DEMOEM User Manual 7

2.4 DEMOEM Daughter Card Features

Four (4) bottom-mounted asymmetrically positione d 13x2 fem a le connectors to mate with the DEMOEM Base Board
A top-mounted MCF51EM256 chip

2.5 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.
Default Jumper Settings
JUMPERS SETTINGS DESCRIPTION
J3 2&3 Power Source J4 1&2, 5&6 VDD_SELECT J5 ALL OFF SCI1 J6 ALL OFF SCI3 J7 ALL OFF Virtual Serial Rx Enable J8 ALL OFF Virtual Serial Tx Enable J9 ALL OFF SCI1/SCI3 Tx Select
J10 ALL OFF SCI1/SCI3 Rx Select
J11 ALL OFF SPI1 J12 ALL OFF SPI2 J13 ALL OFF SPI3 J14 ALL ON EEPROM Enable
8 DEMOEM User Manual
Default Jumper Settings
J15 ALL ON Port E LED Enable J16 ALL ON Infrared Comm Enable J17 ALL OFF XOSC2 Enable J18 ALL ON P&E Logic Analyzer J19 Not Populated MCU_VSSA J20 Not Populated MCU_VREFL J21 1&2 MCU_VDD J22 Not Populated MCU_VDDA J23 Not Populated MCU_VREFH J24 1&2 MCU_PORT_VDD J25 2&4, 3&5 LCD Plane Selection J26 ALL ON LCD Pin Connections J27 ALL ON LCD Pin Connections J28 ALL ON Touch Switches Enable J29 ALL ON DADMx to GND J31 2&3 IRQ Pull-Up, Pull-Down J32 1&2 IRQ Switch Enable
J33 ALL ON
J34 1&2 Tamper Switch Enable J35 ALL ON Touch-Pad Enable
DEMOEM User Manual 9
Reset Switch, LED Enable
Default Jumper Settings
J36 1&2 QE8 Vdd J37 OFF IRTC VBAT Supply J38 ALL ON QE8 PWM to ADC J39 1&2 Debug Reset EM/QE J40 1&2 Debug BKGD EM/QE J41 ALL ON PTA LED Enable J42 1&2 PTB0 IR Capacitor J43 1&2 PTB0 IR Enable J44 1&2 Piezo Buzzer Enable
10 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

3 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.

4 SYSTEM SETUP

4.1 Overview

P&E’s Embedded Multilink driver is required to operate the DEMOEM using a PC. The Embedded Multilink driver should be installed with the CodeWarrior
DEMOEM User Manual 11
Loading...
+ 32 hidden pages