P&E Microcomputer Systems DEMO9S08SC4 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.00
1 INTRODUCTION ............................................................................................ 1
1.1 Overview ........................................................................................................ 1
1.2 Package Contents .......................................................................................... 1
1.3 Supported Devices ......................................................................................... 1
1.4 Recommended Materials On DEMO9S08SC4 Resources CD ...................... 1
1.5 Handling Precautions ..................................................................................... 2
2 HARDWARE FEATURES............................................................................... 2
2.1 DEMO9S08SC4 Base Board Features .......................................................... 2
2.2 On-Board Logic Analyzer ............................................................................... 4
2.3 On-Board Virtual Serial Port........................................................................... 4
3 SYSTEM SETUP ............................................................................................ 4
3.1 Overview ........................................................................................................ 4
3.2 Operating System Requirements ................................................................... 4
3.3 Software Setup............................................................................................... 5
3.4 Quick Startup.................................................................................................. 5
3.5 Hardware Setup ............................................................................................. 6
4 OPERATING MODES................................................................................... 10
4.1 Overview ...................................................................................................... 10
4.2 Debug Mode................................................................................................. 10
4.3 Run Mode..................................................................................................... 11
4.4 External BDM Mode ..................................................................................... 11
5 EMBEDDED MULTILINK TOOLKIT PC APPLICATIONS ............................ 11
5.1 DEMO9S08SC4 Logic Analyzer Application ................................................ 11
5.2 DEMO9S08SC4 Terminal Application.......................................................... 12
5.3 DEMO9S08SC4 Unsecure Application ........................................................ 13
5.4 DEMO9S08SC4 Serial Grapher Application ................................................ 14
6 JUMPER SETTINGS .................................................................................... 17
6.1 System Power .............................................................................................. 17
6.2 RS232/LIN Communications ........................................................................ 19
6.3 LED Display Port .......................................................................................... 21
6.4 Input Switches .............................................................................................. 22
DEMO9S08SC4 User Manual ii
6.5 Analog Input Potentiometer ..........................................................................23
6.6 External Crystal Circuitry Jumper Enable .....................................................23
6.7 Jumper J4 For VDD And MCU_VDD ............................................................24
7 DEMO9S08SC4 CODE DEVELOPMENT SOFTWARE............................... 24
7.1 Using CodeWarrior With The DEMO9S08SC4.............................................24
7.2 Using P&E Software With The DEMO9S08SC4...........................................24
8 TRANSITIONING TO YOUR OWN TARGET............................................... 25
8.1 Hardware Solutions At A Glance ..................................................................25
8.2 Working With P&E’s USB Multilink ...............................................................26
8.3 Working With P&E’s Cyclone PRO ...............................................................27
9 TROUBLESHOOTING.................................................................................. 28
9.1 DEMO9S08SC4 Is Undetected ....................................................................28
9.2 CodeWarrior Installation Fails (WinDriver Error)...........................................30
iii DEMO9S08SC4 User Manual

1 INTRODUCTION

1.1 Overview

The DEMO9S08SC4 is a low-cost development system designed for demonstrating, evaluating, and debugging the Freescale MC9S08SC4 microcontroller. P&E’s Embedded Multilink circuitry on the DEMO9S08SC4 board allows the processor on the DEMO9S08SC4 to be debugged and programmed via USB from the PC. In addition, the demo board can be powered using the USB bus.

1.2 Package Contents

The DEMO9S08SC4 package includes the following items:
DEMO9S08SC4 Demo board
USB Cable
Freescale Warranty Card

1.3 Supported Devices

The DEMO9S08SC4 supports the MC9S08SC4CTG device.

1.4 Recommended Materials On DEMO9S08SC4 Resources CD

DEMO9S08SC4 Embedded Multilink hardware interface driver
DEMO9S08SC4 User Manual (this document)
DEMO9S08SC4 Demo Board Schematics
DEMO9S08SC4 Component Breakdown List
Embedded Multilink Toolkit Applications
Links to P&E Evaluation Software
DEMO9S08SC4 User Manual 1
Links to Freescale documentation, P&E Discussion Forums, and DEMO9S08SC4 FAQs.

1.5 Handling Precautions

Take care to handle the package contents, including the DEMO9S08SC4 board, in a manner such as to prevent electrostatic discharge.

2 HARDWARE FEATURES

The DEMO9S08SC4 is a demonstration and development system for Freescale’s MC9S08SC4 microcontroller. 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 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 DEMO9S08SC4’s Embedded Multilink circuitry.
Note: The DEMO board’s onboard Embedded Multilink circuitry is intended to
function with the onboard processor and any daughter cards that may be included. It cannot be used to communicate with other devices.

2.1 DEMO9S08SC4 Board Features

On-board Logic Analyzer
On-board Virtual Serial Port
P&E’s Embedded Multilink circuitry populated on the bottom
RS-232 Serial Port w/ DB9-F Connector (not populated)
SCI signals connected to P&E’s Embedded Multilink through jumpers
ON/OFF Power Switch w/ LED indicator
A 12VDC power supply input barrel connector
Power Input Selection Jumpers for selecting the input voltage source:
Power Input from Embedded Multilink to LDO regulator
Power Input from DC Power Jack to LDO regulator, regulated
VDD output at 5.0V
Power Input from MCU_PORT connector
2 DEMO9S08SC4 User Manual
External Crystal Circuitry Layout
LIN PHY with Molex connector (PHY and connector not populated)
40-Pin MCU I/O pass-through connector (not populated)
User Features:
2 User LED’s w/ Enable
2 User Push Buttons w/ Enable
5K Ohm POT w/ Enable
Option Jumpers:
COM_SEL to choose SCI connection to LIN PHY or RS232 or PEMICRO virtual COM port
INPUT_EN for two input channels to Embedded Multilink
Specifications:
Board Size 3.2 x 2.9
Power Input:
USB Cable: 5VDC, 500mA max
DC Power Jack: 2.1mm barrel connector, 12VDC Center Positive
Figure 2-1: DEMO9S08SC4 Top Component Placement
DEMO9S08SC4 User Manual 3

2.2 On-Board Logic Analyzer

The DEMO9S08SC4 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 PTA1 and PTB5 signals on the DEMO9S08SC4 board by default via the J14 jumpers. The channels may be connected to any of the processor pins by wire jumpers (not included).
The DEMO9S08SC4 Logic Analyzer Utility, included in the Embedded Multilink Toolkit on the accompanying CD-ROM, displays the logic analyzer signals on a PC.

2.3 On-Board Virtual Serial Port

The DEMO9S08SC4 board has a built-in virtual serial port which may be connected to the SC4 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 Embedded Multilink Toolkit on the accompanying CD-ROM, is a generic serial port utility which works with the virtual serial port or actual serial port hardware.

3 SYSTEM SETUP

3.1 Overview

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

3.2 Operating System Requirements

The following are the resources required to run the CodeWarrior Development Studio and the DEMO9S08SC4:
A PC-compatible system running Windows 2000, Windows XP, or Windows Vista
128MB of available system RAM, and 1GB of available hard disk
4 DEMO9S08SC4 User Manual
space
A CD-ROM drive for software installation
A USB port

3.3 Software Setup

3.3.1 Installing CodeWarrior Development Studio
To install the CodeWarrior Development Studio, insert the CodeWarrior CD into your computer’s CD-ROM drive. A start-up window will automatically appear. Select CodeWarrior Installation and follow the on-screen instructions.
3.3.2 Installing P&E Resources
Use the DEMO9S08SC4 Resources CD-ROM to access and install P&E resources for the DEMO9S08SC4. These materials are not required for operation. The support materials contained on the DEMO9S08SC4 Resources CD-ROM are listed in Section 1.4 - Recommended Materials On
DEMO9S08SC4 Resources CD.

3.4 Quick Startup

Only a few steps are required to get the DEMO9S08SC4 up and running:
Step 1. If you do not have CodeWarrior Development Studio version 6.0
installed on your computer, please install it using the accompanying CD-ROM. Additional information regarding CodeWarrior can be found at www.freescale.com.
Step 2. Remove the DEMO9S08SC4 demonstration board from its anti-
static pouch.
Step 3. Connect the USB cable from your computer to the
DEMO9S08SC4 demonstration board. Depending on your operating system, you may need to follow steps to install the USB driver from the DEMO9S08SC4 Resources CD-ROM. Once the USB cable is connected properly the green USB LED on the DEMO9S08SC4 should illuminate.
Step 4. Turn on the DEMO9S08SC4 power switch (K1). The red Power
LED should illuminate.
DEMO9S08SC4 User Manual 5
Step 5. [Will be updated with Quick Start Guide code operations]
Step 6. [Will be updated with DEMO code] Optionally, you may run the
Logic Analyzer Application available in the Embedded Multilink toolkit on the CD. This PC-based application graphs the IN0 and IN1 signals on the DEMO9S08SC4 board. If both J14 jumpers are installed, IN0 shows PTA1 and IN1 shows PTB5. Push button S1 and turn the potentiometer to change these signals. This application may also be found at:
http://www.pemicro.com/fixedlinks/DEMOQEtoolkit.html.
Figure 3-1: Logic Analyzer Application

3.5 Hardware Setup

3.5.1 First-Time Connection
The DEMO9S08SC4 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 jumpers 1&2 for PWR_SEL (J2) are 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 DEMO9S08SC4 board.
5. The operating system will recognize P&E’s Embedded Multilink cir-
6 DEMO9S08SC4 User Manual
cuitry and P&E’s USB to Serial circuitry. Depending on the operating system, you may see the “Found New Hardware Wizard” dialog, help­ing you to install software for “PEMicro USB Multilink (i0). On Win­dows XP (SP2), the following dialog will appear:
Figure 3-2: Found New Hardware Wizard Dialog (1 of 4)
Select the “Install the software automatically (Recommended)” option and click the “Next” button.
6. Windows will install the driver files to your system. At the end of the
installation, the following dialog box will appear:
DEMO9S08SC4 User Manual 7
Figure 3-3: Found New Hardware Wizard Dialog (2 of 4)
Click the “Finish” button to exit the current “Found New Hardware Wizard”.
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:
8 DEMO9S08SC4 User Manual
Loading...
+ 25 hidden pages