P&E Microcomputer Systems DEMO9S08JS16 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 DEMOJM Base Board Features.....................................................................2
2.2 On-Board Logic Analyzer ...............................................................................4
2.3 On-Board Virtual USB Port.............................................................................4
2.4 DEMO9S08JS16 Daughter Card Features ....................................................5
2.5 DEMOJM Board Jumper/Connector Quick Reference...................................5
2.6 Signal Mapping of DC9S08JS16 to MCU_PORT........................................... 8
3 GETTING STARTED WITH THE DEMO9S08JS16 .......................................9
4 SYSTEM SETUP............................................................................................ 9
4.1 Overview ........................................................................................................9
4.2 Operating System Requirements ................................................................10
4.3 Software Setup.............................................................................................10
4.4 Quick Startup................................................................................................11
4.5 Hardware Setup ........................................................................................... 11
5 OPERATING MODES...................................................................................15
5.1 Overview ......................................................................................................15
5.2 Debug Mode.................................................................................................15
5.3 Run Mode............................... ... .... .......................................... ... ... ...............16
5.4 External BDM Mode .....................................................................................16
6 P&E EMBEDDED MULTILINK TOOLKIT PC APPLICATIONS....................16
6.1 Logic Analyzer Application...........................................................................16
6.2 Terminal Application.....................................................................................17
6.3 DEMO9S08JS16 Unsecure Application.......................................................18
6.4 Accelerometer Demo Application.................................................................19
6.5 Serial Grapher Application ...........................................................................21
DEMO9S08JS16 User Manual ii
7 DEMONSTRATION MICROCONTROLLER APPLICATIONS...................... 24
7.1 Logic Analyzer Application............................................................................24
7.2 Serial Accelerometer Application..................................................................24
8 JUMPER SETTINGS....................................................................................25
8.1 System Power .. ... ... .... ... ... ... .......................................... .... ............................25
8.2 Virtual Serial Port..........................................................................................25
8.3 CAN Port....... ... ... ... .... ... ... .............................................................................26
8.4 Mini-USB Port...............................................................................................27
8.5 LED Display Port ..........................................................................................31
8.6 Input and Reset Switches................................ .... ... ... ... .... ... ... ......................31
8.7 3-Axis Accelerometer Jumper Settings.........................................................33
8.8 Buzzer...........................................................................................................35
8.9 IIC Pull-up.....................................................................................................36
8.10 Analog Input Potentiometer ..........................................................................36
8.11 Optional Jumpers For Various VDD And VSS..............................................36
9 DEMO9S08JS16 CODE DEVELOPMENT SOFTWARE.............................. 37
9.1 Using CodeWarrior With The DEMO9S08JS16............................................37
9.2 P&E Software Tools for HCS08 Microcontrollers..........................................37
10 TRANSITIONING TO YOUR OWN TARGET............................................... 38
10.1 Hardware Solutions At A Glance .. ... .... ... ... ... ... .... ... ... ... .... ... .........................38
10.2 Working With P&E’s USB Multilink ...............................................................39
10.3 Working With P&E’s Cyclone PRO...............................................................40
11 TROUBLESHOOTING.................................................................................. 41
11.1 DEMOJM Board Is Undetected ....................................................................41
11.2 CodeWarrior Installation Fails (WinDriver Error)...........................................42
iii DEMO9S08JS16 User Manual

1 INTRODUCTION

1.1 Overview

The DEMO9S08JS16 is a low cost development system supporting Freescale MC9S08JS16 microcontrollers. It consists of a DEMOJM Base Board and a DC9S08JS16 Daughter Card. P&E’s Embedded Multilink circuitry on the DEMOJM board allows the processor connected to the DEMOJM 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 DEMO9S08JS16 package includes the following items:
DEMOJM Base Board with a DC9S08JS16 Daughter Card installed
Getting Started DVD - Getting started with the series of microcontrollers
USB A-to-B Cable
Mini-AB USB Kit
Quick Start Guide
Freescale Warranty Card

1.3 Supported Devices

The DEMO9S08JS16 supports the following devices:
MC9S08JS16CFK

1.4 Recommended Materials On The Getting Started DVD-ROM

Freescale MC9S08JS16 reference manual and datasheet
DEMO9S08JS16 User Manual 1
DEMOJM 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 DEMOJM Base Board and DC9S08JS16 Daughter Card, in a manner such as to prevent electrostatic discharge.

2 HARDWARE FEATURES

The DEMO9S08JS16 is a demonstration and development system for Freescale’s MC9S08JS16 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 DEMOJM’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 DEMOJM Base Board Features

On-board Logic Analyzer
On-board Virtual Serial Port
Four (4) asymmetrically positioned 8x2 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
ON/OFF Power Switch w/ LED indicator
A 6VDC to 8VDC power supply input barrel connector
Note: The DEMOJM board power connector is incorrectly labelled as 6-12VDC. The
maximum voltage is 8VDC.
2 DEMO9S08JS16 User Manual
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
Power Input from Mini-AB connector
Power Input from MCU_PORT connector
RESET Push Button and LED indicator w/ Enable
User Features:
USB device mode and host mode support with Mini-AB USB connector
CAN Module w/Enable
3-axis Accelerometer w/Enable
8 User LED’s w/ Enable
4 User Push Buttons w/ Enable
1 Piezo Buzzer w/ Enable
IIC Pullups w/ Enable
10K Ohm POT w/ Enable
Specifications:
Board Size 3.5 x 4.0
Daughter Card Size 1.4 x 1.5
Power Input:
USB Cable: 5VDC, 500mA max
DC Power Jack: 2.5/5.5mm barrel connector, 6VDC to 8VDC
Center Positive
Note: The DEMOJM board power connector is incorrectly labelled as 6-12VDC. The
maximum voltage is 8VDC.
DEMO9S08JS16 User Manual 3
Figure 2-1: DEMOJM Top Component Placement

2.2 On-Board Logic Analyzer

The DEMOJM 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 PTE2 and PTE3 signals on the DEMOJM board by default via the J28 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 DEMOJM board has a built-in virtual serial port which may be connected to the JM 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
4 DEMO9S08JS16 User Manual
on the accompanying DVD-ROM, is a generic serial port utility which works with the DEMOJM virtual serial port or actual serial port hardware.

2.4 DEMO9S08JS16 Daughter Card Features

Four (4) bottom-mounted asymmetrically positione d 8x2 fe ma le connectors to mate with the DEMOJM Base Board
A top-mounted MC9S08JS16CFK chip
Signals are mapped to the different modules to demonstrate different functions:
TxD (PTA7) and RxD (PTA6) are mapped to TxD1 (PTE0) and
RxD1 (PTE1) of the DEMOJM 64Pin header
TPMCH0 (PTA0) and TPMCH1 (PTA5) are mapped to TPM1CH0
(PTE2) and TPM1CH1 (PTE3) on the DEMOJM 64Pin header
SPI Signals are mapped to SPI1 Signals on the DEMOJM 64 Pin
header
BLMS (PTB3) is mapped to PTG0 ( KBIP0) of the DEMOJM 64Pin
header
KBIP1 (PTA1), KBIP6 (PTA6) and KBIP7 (PTA7) are mapped to
PTG1/PTG2/PTG3 correspondingly

2.5 DEMOJM Board Jumper/Connector Quick Reference

Default Jumper Settings
The following is a list of default jumper settings for DEMOJM board. The settings listed indicate the “on” (or installed) position.
Note: The JS16 can only support USB device mode.
J13: PTA5 is used as GPIO. J14: PTA4 is used as GPIO. J21: JS16 has no ADC module. J31: JS16 has no IIC module.
DEMO9S08JS16 User Manual 5
J32: JS16 has no ADC module.
Default Jumper Settings
JUMPERS SETTINGS
J3 3&4 J4 ALL OFF J6 2&3 J7 1&2 J8 1&2, 3&4
J10 OFF
J11 1&2 J12 1&2 J13 ALL OFF J14 ALL OFF J15 OFF J16 OFF
1&2, 3&4, 5&6, 7&8, 9&10,
J17
11&12, 13&14, 15&16 J18 2&3 J19 2&3 J20 2&3 J21 ALL OFF J24 1&2
6 DEMO9S08JS16 User Manual
Default Jumper Settings
J27 1&2, 3&4, 5&6, 7&8 J28 1&2, 3&4 J29 1&2, 3&4 J30 1&2 J31 ALL OFF J32 ALL OFF J33 1&2
DEMO9S08JS16 User Manual 7

2.6 Signal Mapping of DC9S08JS16 to MCU_PORT

Signal Mapping
PIN
NUMBER
11 PTA1/KBIP1/MISO 12 PTB1/RESET
13 PTA0/KBIP0/
15 PTA5/KBIP5/
17 PTA2/KBIP2/MOSI 18 PTB4/XTAL 19 PTA1/KBIP1/MISO 20 PTB5/EXTAL 21 PTA3/KBIP3/SPSCK 22 NC 23 PTA4/KBIP4/SS 24 NC
SIGNAL
1VDD 2PTB0/IRQ/TCLK 3 VSS 4 PTB1/~RESET 5 PTA7/KBIP7/TXD 6 PTB2/BKGD/MS 7 PTA6/K BIP6/RXD 8 VUSB33 9 PTB3/BLMS 10 PTB0/IRQ/TCLK
TPMCH0
TPMCH1
PIN
NUMBER
14 PTB2/BKGD/MS
16 PTB3/BLMS
SIGNAL
25 NC 26 NC 27 NC 28 NC 29 NC 30 PTA6/KBIP6/RXD 31 NC 32 PTA7/KBIP7/TXD 33 VREFH 34 NC 35 VREFL 36 NC
8 DEMO9S08JS16 User Manual
Signal Mapping
PIN
NUMBER
37 NC 38 NC 39 NC 40 NC 41 NC 42 PTB4/XTAL 43 NC 44 PTB5/EXTAL 45 NC 46 PTA0/KBIP0/TPMCH0 47 NC 48 PTA1/KBIP1/MISO 49 NC 50 PTA2/KBIP2/MOSI 51 NC 52 PTA3/KBIP3/SPSCK 53 NC 54 PTA4/KBIP4/SS 55 NC 56 PTA5/KBIP5/TPMCH1 57 NC 58 NC 59 NC 60 NC
SIGNAL
PIN
NUMBER

3 GETTING STARTED WITH THE DEMO9S08JS16

SIGNAL
The DEMO9S08JS16 is a low-cost board targeting quick microcontroller evaluation. . The board includes a power terminal to measure the ultra-low power consumption of Freescale’s JM devices.
Please refer to the DEMO9S08JS16 Quick Start Guide and Labs for instructions on how to install software, connect the DEMO9S08JS16 to your PC, and run quick demonstrations.

4 SYSTEM SETUP

4.1 Overview

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

4.2 Operating System Requirements

The following are the resources required to run the CodeW arrior Development Studio and the DEMO9S08 JS16:
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 instruction s on the DVD-ROM.
4.3.2 Installing P&E Resources
Use the DEMO9S08JS16 Resources in the DVD-ROM to access and install P&E resources for the DEMO9S08JS16. These materials are not required for operation. The DEMO9S08JS16 Resources in the Getting S t arted DVD- ROM contains the following support materials:
DEMO9S08JS16 Embedded Multilink hardware interface driver
DEMO9S08JS16 User Manual (this document)
DEMOJM Base Board and Daughter Cards Schematics
DEMO9S08JS16 Component Breakdown List
P&E Embedded Multilink Toolkit PC Applications
P&E Evaluation Software
10 DEMO9S08JS16 User Manual
Links to Freescale documentation, P&E Discussion Forums, and
DEMO9S08JS16 FAQs.

4.4 Quick Startup

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

4.5 Hardware Setup

4.5.1 First-Time Connection
The DEMO9S08JS16 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 jumper USB_VDD 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
DEMOJM 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:
DEMO9S08JS16 User Manual 11
Loading...
+ 34 hidden pages