P&E Microcomputer Systems DEMO9S08MP16 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.01
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 DEMO9S08MP16 Features............................................................................2
2.2 On-Board Logic Analyzer ...............................................................................4
2.3 On-Board Virtual USB Port.............................................................................4
2.4 DEMO9S08MP16 Jumper/Connector Quick Reference ................................ 5
3 GETTING STARTED WITH THE DEMO9S08MP16...................................... 6
4 SYSTEM SETUP............................................................................................ 7
4.1 Overview ........................................................................................................7
4.2 Operating System Requirements ..................................................................7
4.3 Software Setup............................................................................................... 7
4.4 Quick Startup..................................................................................................8
4.5 Hardware Setup ............................................................................................. 8
5 OPERATING MODES...................................................................................12
5.1 Overview ......................................................................................................12
5.2 Debug Mode.................................................................................................12
5.3 Run Mode............................... ... .... .......................................... ... ... ...............13
5.4 External BDM Mode .....................................................................................13
6 P&E EMBEDDED MULTILINK TOOLKIT PC APPLICATIONS....................13
6.1 Logic Analyzer Application...........................................................................13
6.2 Terminal Application.....................................................................................14
6.3 DEMO9S08MP16 Unsecure Application...................................................... 15
6.4 Serial Grapher Application ...........................................................................16
7 JUMPER SETTINGS....................................................................................20
7.1 System Power ..... ... ... ... .... ... ... ... .... .......................................... ... ... ...............20
DEMO9S08MP16 User Manual ii
7.2 Virtual Serial Port..........................................................................................21
7.3 LED Display Port ..........................................................................................21
7.4 External Crystal Circuitry ..............................................................................22
7.5 Input and Reset Switches................................ .... ... ... ... .... ... ... ......................22
7.6 Buzzer...........................................................................................................24
7.7 IIC Pull-up.....................................................................................................24
7.8 Analog Input Potentiometer ..........................................................................24
7.9 Optional Jumpers For Various VDD And VSS........................ ... .... ... ... ... ... ...25
8 DEMO9S08MP16 CODE DEVELOPMENT SOFTWARE ............................25
8.1 Using CodeWarrior With The DEMO9S08MP16 ..........................................25
8.2 Using P&E Software With The DEMO9S08MP16 ........................................26
9 TRANSITIONING TO YOUR OWN TARGET............................................... 26
9.1 Hardware Solutions At A Glance ..................................................................27
9.2 Working With P&E’s USB Multilink ...............................................................28
9.3 Working With P&E’s Cyclone PRO...............................................................29
10 TROUBLESHOOTING.................................................................................. 30
10.1 DEMO9S08MP16 Is Undetected..................................................................30
10.2 CodeWarrior Installation Fails (WinDriver Error)........................................ ...31
iii DEMO9S08MP16 User Manual

1 INTRODUCTION

1.1 Overview

The DEMO9S08MP16 is a low cost development system supporting Freescale MC9S08MP16 microcontrollers.
circuitry on the DEMO9S08MP16 board allows the on-board processor connected to the DEMO9S08MP16 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 DEMO9S08MP16 package includes the following items:
DEMO9S08MP16 Demonstration Board
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

P&E’s Embedded Multilink
The DEMO9S08MP16 supports the following devices:
MC9S08MP16VLF

1.4 Recommended Materials On The Getting Started DVD-ROM

Freescale MC9S08MP16 reference manual and datasheet
DEMO9S08MP16 schematic
DEMO9S08MP16 User Manual 1
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 in a manner such as to prevent electrostatic discharge.

2 HARDWARE FEATURES

The DEMO9S08MP16 is a demonstratio n an d de ve lop m en t sys te m fo r Freescale’s MC9S08MP16 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 provide d to allow th e us e 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 DEMO9S08MP16’s Embedded Multilink circuitry.
Note: The DEMO board’s onboard Embedded Multilink circuitry is intended to
function with the onboard processor only. It cannot be used to communicate with other devices.

2.1 DEMO9S08MP16 Features

On-board Logic Analyzer
On-board Virtual Serial Port
P&E’s Embedded Multilink circuitry populated on the underside
SCI signals connected to P&E’s Embedded Multilink through jumpers
ON/OFF Power Switch (and power input source selector) w/ LED indicator
A 6VDC power supply input barrel connector
Power Input Selection Jumpers for selecting the input voltage source:
5V from Embedded Multilink or LDO regulator
Power from APMOTOR Port which might be 5V or 3.3V
RESET Push Button and LED indicator w/ Enable
2 DEMO9S08MP16 User Manual
User Features:
Opto-coupler isolated RS232 physical interface and DB9 connector w/Enable
6 LEDs driven by logic inverter 74AC04
4 User LED’s w/ Enable
4 User Push Buttons w/ Enable
1 Piezo Buzzer w/ Enable
1 temperature sensor connected to differential signals w/Enable
1 I/O signal slide switch
IIC Pullups w/ Enable
15K Ohm multi-turn POT w/ Enable
Specifications:
Board Size 3.5 x 4.0
Power Input:
USB Cable: 5VDC, 500mA max
DC Power Jack: 2.1/5.5mm barrel connector, 6VDC to Center
Positive
DEMO9S08MP16 User Manual 3
Figure 2-1: DEMO9S08MP16 Top Component Placement

2.2 On-Board Logic Analyzer

The DEMO9S08MP16 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 connec te d to th e PTA2 and PTA3 signals on the DEMO9S08MP16 board by default via the J9 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 DEMO9S08MP16 board has a built-in virtual serial port which may be connected to the MP16 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 DEMO9S08MP16 virtual serial port or actual serial port hardware.
4 DEMO9S08MP16 User Manual

2.4 DEMO9S08MP16 Jumper/Connector Quick Reference

Default Jumper Settings
The following is a list of default jumper settings for DEMO9S08MP16 board. The settings listed indicate the “on” (or installed) position.
Default Jumper Settings
JUMPERS SETTINGS
J3 2&4 J4 1&2 J5 1&2 J6 ALL ON J7 ALL OFF J8 ON
J9 1&2, 3&4 J10 1&2, 3&4 J11 2&3 J12 ALL ON J13 ALL ON J14 ON J15 ON J16 ON J17 ON J21 1&2, 3&4, 5&6 J22 1&2, 3&4 J23 1&2, 3&4
DEMO9S08MP16 User Manual 5
APMOTOR Port Connector Pinout
The following is the pinout for the APMOTOR connector on the DEMO9S08MP16 board.
Figure 2-2: APMOTOR Port Connector Pinout

3 GETTING STARTED WITH THE DEMO9S08MP16

The DEMO9S08MP16 is a low-cost board targeting quick microcontroller evaluation. The board includes a power terminal to measure the ultra-low power consumption of the MP devices.
Please refer to the DEMO9S08MP16 Quick Start Guide and Labs for instructions on how to install software, connect the DEMO9S08MP16 to your
6 DEMO9S08MP16 User Manual
PC, and run quick demonstrations.

4 SYSTEM SETUP

4.1 Overview

P&E’s Embedded Multilink driver is required to operate the DEMO9S08MP16 using a PC. The Embedded Multilink driver should be installed with the CodeWarrior Development Studio software or from the DEMO9S08MP16 Resources in the Getting Started DVD-ROM before the PC is connected to the DEMO9S08MP16.

4.2 Operating System Requirements

The following are the resources required to run the CodeW arrior Development Studio and the DEMO9S08MP16:
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

4.3 Software Setup

4.3.1 Installing CodeWarrior Development Studio
To install the CodeWarrior Development Studio, follow the instructions on the DVD-ROM.
4.3.2 Installing P&E Resources
Use the DEMO9S08MP16 Resources in the DVD-ROM to access and install P&E resources for the DEMO9S08MP16. These materials are not required for operation. The DEMO9S08MP16 Resources in the Getting Started DVD­ROM contains the following support materials:
DEMO9S08MP16 Embedded Multilink hardware interface driver
DEMO9S08MP16 User Manual 7
DEMO9S08MP16 User Manual (this document)
DEMO9S08MP16 Board Schematics
DEMO9S08MP16 Component Breakdown List
P&E Embedded Multilink Toolkit PC Applications
P&E Evaluation Software
Links to Freescale documentation, P&E Discussion Forums, and DEMO9S08MP16 FAQs.

4.4 Quick Startup

Only a few steps are required to get the DEMO9S08MP16 up and running. Please reference the Quick Start Guide.

4.5 Hardware Setup

4.5.1 First-Time Connection
The DEMO9S08MP16 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 power switch for USB_PWR for VDD_SEL is installed.
3. Plug the USB cable A-M connector into a free USB port of the PC.
4. Plug the USB cable B-M connector into the USB connector on the DEMO9S08MP16 Base Board.
5. The operating system will recognize P&E’s Embedded Multilink cir­cuitry and P&E’s USB to Serial circuitry. Depending on the operating system, you may see the “Found New Hardware Wizard” dialog to assist you with software installation for “PEMicro USB Multilink (i0).” On Windows XP (SP2), the following dialog will appear:
8 DEMO9S08MP16 User Manual
Loading...
+ 25 hidden pages