Home

DC9S08JS16

image

Contents

1. ccccccccceccsseeeceeeseeeeeeeeeeseeaeeeeeeeeaeaeees 24 BIR ee UNINC E S A E T EO 25 8 1 SEPON EN 25 8 2 TV 25 8 3 EC KR Dn EE 26 8 4 MP FON EE 27 8 5 LED PEN PO EE 31 8 6 Input and Reset Switches AA 31 8 7 3 Axis Accelerometer Jumper Settings nn0nnnnaennnneennnnennneneennennnerennnennne 33 8 8 PU Tur 35 8 9 Wes CHILD ERE EE 36 8 10 Analog Input Potentiometer cccccecccccsececseeeeeseeeeseeeeeeseeeeeseeeessaeeeesaaees 36 8 11 Optional Jumpers For Various VDD And VE 36 DEMO9S08JS16 CODE DEVELOPMENT SOFTWARE 3 9 1 Using CodeWarrior With The DEMOOGOGIGIe 37 9 2 P amp E Software Tools for HCSO8 Mcrocontrollers 37 TRANSITIONING TO YOUR OWN TARGET i eeuuanerarevnrevnvennrevnvennvennvenuvennner 38 10 1 Hardware Solutions At A Glance cee cccceececceceeeceeceeeeeeeesaeeeeeseeeeeessaeeeeeens 38 10 2 Working With P amp E s USB Multilink errrrnnnnnrorrrrnnnnnnrnrrrnnnnnnnnnnnnnnnnrnnnnnnnnnee 39 10 3 Working With P amp E s Cyclone PDRHO 40 TAO UB JONG re 41 11 1 DEMOJM Board Is Undetected rrrrrrnnnnnvrrnrnnnnnnnorrrrnnnnnnrrnrrnnnnnnrnnnrnnnnnneenn 41 11 2 CodeWarrior Installation Fails WinDriver Error 42 DEMO9S08JS16 User Manual PE mIero W pemicra com 1 1 1 2 1 3 1 4 DEMO9S08JS16 User Manual INTRODUCTION Overview The DEMO9S08JS16 is a low cost development system supporting Freescale MC9S08JS16 microcontrollers It consists of a DEMOJM Base Board and a DC9S08JS16 Daug
2. Click Finish to close the wizard Back Cancel Figure 4 4 Found New Hardware Wizard Dialog 4 of 4 Click the Finish button to exit the Found New Hardware Wizard If the DEMO9S508JS16 hardware interface driver is now properly installed on your system the green USB LED on the DEMOJM Base Board should be illuminated In addition if you turn on the system power of the DEMOJM you will see the red Power LED illuminate 5 OPERATING MODES 5 1 Overview The DEMO9S08JS16 s Embedded Multilink circuitry featured hardware components and optional external BDM header make it a versatile development tool Below are some of the featured operating modes of the DEMO9S08JS16 5 2 Debug Mode A host communicates with the DEMO9S08JS16 through the Embedded Multilink circuitry Either the CodeWarrior Development Studio or P amp E s HCS08 software tools will work with the DEMO9S08JS16 Please refer to DEMO9S08JS16 User Manual 15 5 3 5 4 6 1 16 PE mIero Www pemicro com Section 9 DEMO9S08JS16 CODE DEVELOPMENT SOFTWARE for more information Run Mode The DEMO9S08JS16 s rich component list empowers it to perform a variety of tasks Once an application is developed debugged and programmed properly into the JM internal flash memory it can run with or without connecting to a host External BDM Mode The DEMO9S08JS16 has an optional BDM header for debugging and programming the on board JM de
3. vww pemicro com This PC based application is included on the DVD ROM that accompanies the DEMO9S08JS16 and may also be found at http www pemicro com fixedlinks demotoolkit cfm 6 5 Serial Grapher Application This PC based application is a more generalized version of the accelerometer demo application It may be used with the microcontroller based serial accelerometer application or custom microcontroller code which transmits data in the correct format The serial graphing utility allows incoming data on the PC serial port or one of P amp E s virtual serial ports to be automatically graphed in time or displayed as a series of bar graphs The virtual serial port exists on several of P amp E s Embedded Multilink designs including the DEMOJM board To start using this application please choose COM or virtual USB COM settings from the drop down Port menu By doing so you are specifying the port on the evaluation board that will be used for transmitting captured accelerometer data via a COM or USB serial port Please make sure that jumper J4 is set accordingly Prior to starting serial data capture please specify the Baud setting to reflect the parameter at which your serial communication interface is operating Once your port settings are configured please plug a USB or DB9 serial cable into the evaluation board and click on the Open Serial Port and Start Demo buttons The graphing of data can be paused and the scale of the X and Y a
4. 283 J19 283 J20 2 amp 3 J21 ALL OFF J24 1 amp 2 DEMO9S08JS16 User Manual PE mIero vww pemicro com DEMO9S08JS16 User Manual Default Jumper Settings 182 384 588 7a PE mIero Www pemicro com 2 6 Signal Mapping of DC9508JS16 to MCU PORT Signal Mapping mz mme efemero Prezexcoms mamen sv a TPMCHO TPMCH1 8 DEMO9S08JS16 User Manual PE mIero vww pemicro com Signal Mapping le em 3 GETTING STARTED WITH THE DEMO9S08JS16 The DEMO9S508JS16 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 4 2 4 3 4 3 1 4 3 2 10 PE mIero Www pemicro com P amp 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 Operating System Requirements The following are the resources required to run the CodeWarrior Development Studio and the DEMO9S08
5. DEMO9S08JS16UM Rev 1 02 September 2009 Alliance Member Purchase Agreement P amp E Microcomputer Systems Inc reserves the right to make changes without further notice to any products herein to improve reliability function or design P amp 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 amp E Microcomputer Systems Inc Copyright notices have been included in the software P amp 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 amp E expects that group programming projects making use of this software will purchase a copy of the software and documentation for each user
6. 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 e Four 4 bottom mounted asymmetrically positioned 8x2 female connectors to mate with the DEMOJM Base Board e A top mounted MC9S08JS16CFK chip e Signals are mapped to the different modules to demonstrate different functions TxD PTA7 and RxD PTA6 are mapped to TxD1 PTEO and RxD1 PTE1 of the DEMOJM 64Pin header TPMCHO PTAO and TPMCH1 PTA5 are mapped to TPM1CHO 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 PTGO KBIPO 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 J32 JS16 has no ADC module PE mIero Www pemicro com Default Jumper Settings JUMPERS SETTINGS alm ooo vum m ooo ole DESS 1 amp 2 3 amp 4 5 amp 6 7 amp 8 9 amp 10 11 amp 12 13 amp 14 15 amp 16 J17 J18
7. 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 other devices 2 1 DEMOJM Base Board Features e On board Logic Analyzer e On board Virtual Serial Port e Four 4 asymmetrically positioned 8x2 male connectors for interchangeable daughter cards e P amp E s Embedded Multilink circuitry populated on the underside e SCI signals connected to P amp E s Embedded Multilink through jumpers e ON OFF Power Switch w LED indicator e A6VDC 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 PE mIero vww pemicro com e 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 e RESET Push Button and LED indicator w Enable e 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
8. The terminal window may be set for full duplex or half duplex In full duplex mode only received characters are displayed in the terminal window In half duplex mode both transmitted and received characters are displayed To start using this application please choose COM or virtual USB COM settings from the drop down Port menu This specifies the port on the evaluation board that will be used for serial data transmission Please make sure that the jumpers on header J4 are set accordingly Prior to starting serial data capture please specify the Baud Parity and Bits settings to reflect the parameters at which your serial communication interface is operating Once your port settings are configured please plug a USB or DB9 serial cable into the evaluation board and click on the Open Serial Port button This PC based application is included on the DVD ROM that accompanies the DEMO9S08JS16 and may also be found at http www pemicro com fixedlinks demotoolkit cfm DEMO9S08JS16 Unsecure Application This application allows secure HCS08 microcontrollers to be unsecured The Unsecure application will erase a secure device to make it unsecure This application works with the DEMOJM board as well as other user hardware connected to the PC via the USB Multilink or Cyclone PRO hardware interfaces DEMO9S08JS16 User Manual PE mIero vww pemicro com PRE Micrecemputer Spies OFV LACS08 Umecure Program EE cl PE moire WIR ZER s USI free
9. YOUR OWN TARGET Once you have finished working with the DEMO9S08JS16 and are ready to build your own target you will need a hardware tool to allow you to develop using your own board P amp E s USB Multilink and P amp E s Cyclone PRO offer two effective solutions depending on your needs Both work with Freescale s CodeWarrior as well as P amp E software and both provide a seamless transition to working with your own hardware The USB Multilink is a development tool that is functionally comparable to the Embedded Multilink circuitry on the DEMOJM board It will enable you to debug your code and program it onto your target The Cyclone PRO is a more versatile and robust development tool with advanced features and production capabilities More information is available below to assist you in choosing the appropriate development tool for your needs Hardware Solutions At A Glance The USB Multilink offers an affordable and compact solution for your development needs and allows debugging and programming to be accomplished simply and efficiently Those doing rapid development will find the USB Multilink easy to use and fully capable of fast paced debugging and programming The Cyclone PRO is a more complete solution designed for both development and production The Cyclone PRO features automated power switching multiple communications interfaces including USB Ethernet and Serial stand alone programming functionality and many other advan
10. data values are moved to the left The vertical axis displays the incoming data as the magnitude of each waveform and the horizontal axis displays the number of samples The graph has a limited size so older samples will eventually fall off the left part of the graph 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 DEMO9S08JS16 User Manual PE mIero vww pemicro com Data Graphed Over Time 65000 Channels S gogg D dh S0000 45000 40000 35000 gt 30000 25000 20000 15000 10000 5000 Eg EH DA 0 25 50 75 100 125 150 175 300 225 250 275 300 325 350 375 Samples Figure 6 6 Serial Grapher Graphing Component 6 5 2 Data Format The data format is broken into two sections depending upon whether the incoming data is in byte format or word format 6 5 2 1 Byte Formatted Data There are two commands which may be accepted Both commands must end in the special characters 4 0D and 0A which are CR carriage return and LF line feed The accepted commands are WnnZnnYnnXnn 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 DEMO9S08JS16 User Manual 23 7 7 1 7 2 24 6 5 2 2 PE
11. mIero Www pemicro com Word Formatted Data There are three commands which may be accepted All commands must end in the special characters 4 0D and 0A which are CR carriage return and LF line feed The accepted commands are nnnn nnnn nnnn nnnn The nnnn values are 0000 FFFF and correspond in order to the data displayed on both the graph and bar graphs as follows X A Y B Z C W D NNNN NNNN NNNN NNNN The nnnn values are 0000 FFFF and correspond in order to the data displayed the graphing component as follows X Y Z W nnnn nnnn nnnn nnnn The nnnn values are 0000 FFFF and correspond in order to the data displayed on the bar graph component as follows A B C D DEMONSTRATION MICROCONTROLLER APPLICATIONS The following microcontroller applications are designed to run on the JM processors Logic Analyzer Application The function of the Logic Analyzer Application is to play a different tone and illuminate a different LED for each of the buttons pressed on the DEMOJM board The potentiometer controls the intensity of an LED on the DEMOJM board via a PWM signal Serial Accelerometer Application This microcontroller application samples the state of the on board three axis accelerometer using on chip A D converter channels This data is converted into ASCII characters and sent out using the serial pins of the JM processor These serial pins may be connected to P amp E s virtual serial port which is part of the E
12. may be individually installed or removed By default all jumpers are installed to enable all the switches Figure 8 15 Jumper Settings for Light Touch Switches KEY_ENABLE J27 32 DEMO9S08JS16 User Manual PE miero WW PEMLC OL COM 8 6 3 J29 Reset Switch Enable and Reset LED Display Enable Jumper RESET EN RSTLED_EN RESET_EN Enables the Reset Switch and the Reset LED Display Each jumper may be individually installed or removed This is the default setting Figure 8 16 Reset Switch and Reset LED enable Jumper J29 Note The J29 labels for RSTLED EN and RESET EN are incorrectly switched on the DEMOJM board silk screen The correct label is as displayed above 8 7 3 Axis Accelerometer Jumper Settings The DEMOJM integrates a 3 axis accelerometer Its enable disable sensitivity levels and output signal connections are all jumper setable Jumpers J18 J19 J20 and J21 are associated with the accelerometer Accelerometer G Select Pin Descriptions G SEL2 G SEL1 Sensitivity 0 o fis some o ph 2 om oo fo fa om fh fe om DEMO9S08JS16 User Manual 33 PE mIero Www pemicro com 8 7 1 J18 Accelerometer g Select1 Jumper G SEL 1 Selects g Select1 to be logic low This is the default setting 1 PTC3 0 Selects g Select1 to be logic high A user may control PTC3 in firmware to set g Select1 Figure 8 17 Accelerometer g Select1 Jumper settings J18 8 7 2 J19 Accelerometer
13. the USB Multilink Interface the user can take advantage of the background debug mode to halt normal processor execution and use a PC to control the processor The user can then directly control the target s DEMO9S08JS16 User Manual 39 10 2 2 10 3 10 3 1 40 PE mIero Www pemicro com execution read write registers and memory values debug code on the processor and program internal or external FLASH memory devices The USB Multilink enables you to debug program and test your code on your board Software The USB Multilink Interface works with Codewarrior as well as P amp E s in circuit debugger and flash programmer to allow debug and flash programming of the target processor P amp 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 Working With P amp E s Cyclone PRO Figure 10 2 P amp E s Cyclone PRO Product Features amp Implementation P amp E s Cyclone PRO is an extremely flexible tool designed for debugging testing and in circuit flash programming of Freescale s ColdFireV1 HC08 HCS08 RS08 and HC S 12 X microcontrollers The Cyclone PRO connects your target to the PC via USB Ethernet or Serial Port and enables you to debug your code program and test it on your board After development is complete the Cyclone PRO can be used as a production tool on your ma
14. 4 2 3 On Board Virtual USB Port 4 2 4 DEMO9S08JS16 Daughter Card Features rrrrrnrrnnnnnrrrnnvrnnnnrrnnnrnnnnnnrnnnnnnn 5 2 5 DEMOJM Board Jumper Connector Quick Reference ssssssssseseesrrrrnrrnnes 5 2 6 Signal Mapping of DC9508JS16 to MCU PORT rrennnnnrennnrnnnnnnnevnnnnenvnnnennnn 8 3 GETTING STARTED WITH THE DEMO9S08JS16 rurrnnnnnnnnronnnnnnnnnnennnnennnn 9 4 NTN PN 9 4 1 GENE EN 9 4 2 Operating System Requirements r rrrnnrrnnnnvnvrnnnnrennnnnnrnnnnnnnrennnnnnnnnnnnnnsnnn 10 4 3 Software Geiup iiaa iias e A aana anaia 10 4 4 Ee 11 4 5 FTG A LU JE 11 5 OPERATING e EE 15 5 1 EEN 15 5 2 PE NM acre ce ENERE E E ES 15 5 3 PUT I OG EE 16 5 4 External BDM MOG 2 ansat ldrssdetdikespasdee 16 6 P amp E EMBEDDED MULTILINK TOOLKIT PC APPLICATIONS 16 6 1 Logic Analyzer Application ccccccccesecccseeeeseeeeeseeecesseeeeeseeessueeeeseeeeeneaees 16 6 2 Terminal Application EE 17 6 3 DEMO9S08JS16 Unsecure Application rrrrrnnrrvvnnnnrrvnrnnvrrernnnnrrenrnnrreennnnn 18 6 4 Accelerometer Demo Application ccccsceccsssececseeeecseeeeeseeeeesaeeeesneeeeenaes 19 6 5 Serial Grapher Application cccccecceccccseeeeeeeeneeeeeseeeeeeeeeeseeesaeaeeeeeseeeeeeaas 21 DEMO9S08JS16 User Manual PE mIero vww pemicro com DEMONSTRATION MICROCONTROLLER APPLICATIONG 24 7 1 Logic Analyzer Appitcaton 24 7 2 Serial Accelerometer Application
15. ENABLE J17 on nA NOHTI AOU una NOs Input and Reset Switches The DEMOJM has 4 switches that are connected to signals PTGO PTG1 PTG2 and PTG3 respectively and are enabled or disabled by the 4 corresponding jumpers KEY_ENABLE J27 DEMO9S08JS16 User Manual 31 PE mIero Www pemicro com The DEMOJM has an option to connect two signals PTE2 and PTE3 to the Embedded Multilink for signal processing The two signals are connected or disconnected to INO or IN1 correspondingly via jumper P amp E INPUT EN J28 The DEMOJM has one Reset switch and one Reset LED associated with it These are enabled or disabled by the two corresponding jumper RESET EN J29 8 6 1 J28 P amp E s Logic Analyzer Inputs INO IN1 The logic analyzer inputs are marked on one side of the J28 jumper The inputs allow P amp E s PC based logic analyzer application to display these signals in real time By installing both jumpers the logic analyzer pins INO and INT will be connected to PTE2 and PTE3 respectively INO fa PTE2 INT PTE3 By removing these jumpers INO and IN1 will be unconnected The user may connect these signals via wires to any other signals on the processor which they wish to view on the PC Figure 8 14 Jumper Settings for Input Signals to P amp E s Embedded Multilink P amp E INPUT EN J28 8 6 2 J27 Light Touch Switch Enable Jumper KEY ENABLE PTGO PTG1 PTG2 PTG3 Enables the corresponding switch Each jumper
16. 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 Software Setup Installing CodeWarrior Development Studio To install the CodeWarrior Development Studio follow the instructions on the DVD ROM Installing P amp E Resources Use the DEMO9S08JS16 Resources in the DVD ROM to access and install P amp E resources for the DEMO9S08JS16 These materials are not required for operation The DEMO9S08JS16 Resources in the Getting Started 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 amp E Embedded Multilink Toolkit PC Applications P amp E Evaluation Software DEMO9S08JS16 User Manual PE mIero vww pemicro com e Links to Freescale documentation P amp E Discussion Forums and DEMO9S08JS16 FAQs 4 4 Quick Startup Only a few steps are required to get the DEMO9S08J 16 up and running Please reference the Quick Start Guide 4 5 Hardware Setup 4 5 1 First Time Connection The DEMO9S508JS16 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 Make sure the jumper USB VDD
17. Pullups w Enable 10K Ohm POT w Enable e Specifications Board Size 3 5 x 4 0 Daughter Card Size 1 4 x 1 5 Power Input e USB Cable 5VDC 500mA max e 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 PE mIero Www pemicro com 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 INO 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 amp 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 amp E Embedded Multilink Toolkit 4 DEMO9S08JS16 User Manual PE mIero vww pemicro com on the accompanying DVD ROM
18. a USB cable into the DEMOJM 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 The logic channel graphs should be reflecting data captured from the IO pins connected to the INO and IN1 header pins on the DEMOJM evaluation board If the microcontroller based Logic Analyzer Application is programmed into the MCU the INO channel will show the PWM output on pin PTE2 whose duty cycle is controlled by the potentiometer W1 The IN1 channel shows the PWM output on channel PTE3 This PC based application is included on the DVD ROM that accompanies the DEMO9S08JS16 and may also be found at http www pemicro com fixedlinks demotoolkit cfm 6 2 Terminal Application This PC based application acts as a standard serial port terminal application on the PC It works with standard serial ports as well as the virtual serial port on the DEMOJM board The application includes settings to adjust the COM port number baud rate parity and number of data bits There is a button to DEMO9S08JS16 User Manual 17 6 3 18 PE mIero Www pemicro com take a file on the PC and transmit it out of the serial port There are also delays which are automatically inserted into the transmission output to prevent overruns It is recommended that these defaults not be changed Tor bsal Window application vi 00 DE E freescale Figure 6 2 Terminal Application
19. a WinDriver item 6 Right click on WinDriver and select Enable from the drop down menu Reboot your PC after the installation finishes 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 DEMO9S08JS16 User Manual 43 44 PE mIero Www pemicro com your machine You should then re run the installer and complete the procedure Reboot your machine after the installation has finished DEMO9S08JS16 User Manual DEMO9S08 S16UM Rev 1 02 September 2009 mIGro Freescale Controller Continuum 68HC08 508 R508 5 12 X ColdFire V1 ColdFire V2 V3 V4 Power Architecture ARM Gyclone MAX 2009 P amp E Microcomputer Systems Inc All rights reserved P amp E Micrcomputer Systems Inc 98 Galen St Watertown MA 02472 www pemicro com Freescale and the Freescale logo are trademarks of Freescale Semiconductor Inc All other product or service names are the property of their respective owners Freescale Semiconductor Inc 2008
20. ced capabilities Below is an overview of the features and intended use of the USB Multilink and Cyclone PRO USB Multilink Key Features e Direct user control of target s execution e Programming and debugging capabilities e Read write registers and memory values e Compact and lightweight e Communication via USB 2 0 DEMO9S08JS16 User Manual PE mIero vww pemicro com e Supported by P amp E software and Freescale s CodeWarrior 10 1 2 Cyclone PRO Key Features Advanced programming and debugging capabilities including e PC Controlled and User Controlled Stand Alone Operation e Interactive Programming via Host PC e In Circuit Debugging Programming and Testing e Compatible with Freescale s ColdFireV1 HCS08 RS08 and HC S 12 X microcontroller families e Communication via USB Serial and Ethernet Ports e Multiple image storage e LCD screen menu interface e Supported by P amp E software and Freescale s CodeWarrior 10 2 Working With P amp E s USB Multilink Figure 10 1 P amp E s USB Multilink USB ML 12 shown 10 2 1 Product Features amp Implementation P amp E s USB Multilink Interface USB ML 12 connects your target to your PC and allows the PC access to the Background Debug Mode BDM on Freescale s ColdFireV1 HCS08 RS08 and HC S 12 X microcontrollers It connects between a USB port on a Windows 2000 XP 2003 Vista machine and a standard 6 pin debug connecior on the target By using
21. for VDD SEL is installed 2 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 amp E s Embedded Multilink cir cuitry and P amp 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 mIero Www pemicro com Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps vou install software for PEMicra USB Multilink IO If your hardware came with an installation CD P or floppy disk insert it now What do you want the wizard to do 8 Install the software automatically Recommended Install from list or specific location Advanced Click Next to continue Figure 4 1 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 12 DEMO9S08JS16 User Manual PE mIero vww pemicro com Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installi
22. g Select2 Jumper G SEL2 Selects g Select2 to be logic low This is the default setting 1 PTD7 0 Selects g Select2 to be logic high A user may control PTD7 in firmware to set g Select2 Figure 8 18 Accelerometer g Select2 Jumper settings J19 34 DEMO9S08JS16 User Manual PE mIero vww pemicro com 8 7 3 J20 Accelerometer Sleep Mode Select Jumper SLEEP J20 Puts the 3 axis accelerometer into sleep mode The user may control PTF6 in firmware to enable or disable the accelerometer Figure 8 19 Accelerometer Sleep Mode Jumper settings J20 8 7 4 J21 Accelerometer 3 axis Signals Connection Jumper ACC EN Z PTB1 Y PTBO X PTB3 H X PTDO The accelerometer output signals are jumper setable to PTB1 PTBO PTB3 and PTDO PTB3 and PTDO share the same X axis signal By default the X axis signal is connected to PTB3 Figure 8 20 Accelerometer Signal Output ACC EN J21 8 8 Buzzer The DEMOJM integrates a Piezo Transducer whose resonant frequency is 4 0 KHz Jumper J30 connects to PTF4 to control this buzzer DEMO9S08JS16 User Manual 35 8 8 1 8 9 8 9 1 8 10 8 10 1 8 11 36 mIero Www pemicro com J30 Buzzer enable jumper BUZ EN PTF4 Enables Buzzer to be controlled by PTF4 This is the default setting Figure 8 21 Buzzer Enable Jumper Settings BUZ EN J30 IIC Pull up The DEMOJM provides external pull up resistors for SCL and SDA lines enabled by installing the correspondin
23. g jumpers on J31 By default both jumpers are installed J31 IIC Pullup Enable Jumpers IIC EN Enables IIC external pullup This is the default setting Figure 8 22 IIC External Pullup Enable IIC EN J31 Analog Input Potentiometer The DEMOJM provides an easy access 10KOhm potentiometer whose output may be connected to PTD1 and or PTB2 selectable by J32 POT EN J32 Potentiometer Output Selection Jumpers POT EN PTB2 PTD1 Selects the potentiometer output connection By default they are both connected Figure 8 23 Potentiometer Output Selection Jumpers POT EN J32 Optional Jumpers For Various VDD And VSS The DEMOJM provides 5 jumpers J22 through J26 for different VDD and VSS connections on the bottom of the board By default they are not DEMO9S08JS16 User Manual PE mIero vww pemicro com populated and are shorted correspondingly with zero ohm resistors in parallel except J24 which is populated The user may take off the zero ohm resistor and install a corresponding jumper 9 DEMO9S08JS16 CODE DEVELOPMENT SOFTWARE The DEMOJM board includes P amp E s Embedded Multilink circuitry so no external hardware BDM tool is needed to debug and program the DEMO9S08JS16 A user only needs to connect the DEMOJM board to their PC to start developing code for it The DEMO9S08JS16 package comes with a special edition of Freescale s CodeWarrior studio In addition P amp E s HCS08 evaluation software is available
24. hter Card P amp 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 Package Contents The DEMO9S508JS16 package includes the following items DEMOJM Base Board with a DC9508JS16 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 Supported Devices The DEMO9508JS16 supports the following devices MC9S08JS16CFK Recommended Materials On The Getting Started DVD ROM Freescale MC9S08JS16 reference manual and datasheet PE mIero Www pemicro com e DEMOJM Base Board and Daughter Card schematic e P amp E Embedded Multilink Toolkit applications e P amp 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 MC9508JS16 microcontrollers Application development is quick and easy using P amp 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 amp E s
25. in the DEMO9S08JS16 Resources section of the Getting Started DVD or online at www pemicro com A user may use either CodeWarrior or P amp E software tools to develop code for the DEMO9S08JS16 9 1 Using CodeWarrior With The DEMO9S08JS16 The CodeWarrior studio supports Freescale s HCS08 devices It offers C C and assembly level support and provides debugging capabilities based on P amp E s debug and programming technologies A programming or debug session with the project based CodeWarrior IDE may be launched by double clicking on the project name the format is projectname mcp from your file storage Its tutorials FAQs and quick start guides are easy to follow and will allow you use pre built templates to begin creating a new project in a short time Codewarrior tutorials can be followed based on the instructions provided 9 2 P amp E Software Tools for HCS08 Microcontrollers For Freescale s HCS08 devices P amp E offers an integrated development environment which combines a command line assembler in circuit debugger and flash memory programmer The assembler includes features such as a full string replacement macro conditional assembly include files and more The debugger supports both assembly and C source level debugging The programmer can program reprogram both internal and external flash devices in circulit DEMO9S08JS16 User Manual 37 10 10 1 10 1 1 38 PE mIero Www pemicro com TRANSITIONING TO
26. in the group Contact P amp E for volume discounts and site licensing agreements P amp 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 amp 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 amp 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 amp 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 amp E Microcomputer Systems Inc 98 Galen St Watertown MA 02472 617 923 0053 http www pemicro com Manual version 1 02 PE mIero vww pemicro com 1 INTRODUC TON EE 1 1 1 NN 1 1 2 le ee om COMENS aiee EREE EOR en ene eee ee 1 1 3 Supported RTL 1 1 4 Recommended Materials On The Getting Started DVD ROM rernnnnrrrvvnnnnnn 1 1 5 Handling Precautions ccccccccccseseeceeceeceeeeeeceueeeseeeeeseceeeseeeeeesaeeeesageeeseeeeess 2 2 RE EE FEATURE a cecied annie ninne AUEN ENEO SO ENER 2 2 1 DEMOJM Base Board Features 2 2 2 On Board Logic Analvzer
27. ions using WinDriver Please close all applications and press Retry To reload WinDriver press 42 DEMO9S08JS16 User Manual PE mIero vww pemicro com Cancel and reboot How do I solve this A Some software applications on your PC are connected to the WinDriver system driver which manages P amp E s USB connections This system driver needs to be disabled for the installation to continue Directions to disable Windriver are as follows In Windows Explorer right click on My Computer and select Properties from the drop down menu 1 Select the Hardware tab Click on the Device Manager button Select the System Devices in the Device Manager window Expand the tree index for System Devices NR 2 At the bottom of the System Devices list you should see the Win Driver item 6 Right click on WinDriver and select Disable from the drop down menu 7 Click Yes OK when the confirmation dialog appears WinDriver is now disabled and you should be able to complete the installation After the installation finishes you should re enable the WinDriver system driver using the following steps In Windows Explorer right click on My Computer and select Properties from the drop down menu 1 Select the Hardware tab Click on the Device Manager button Select the System Devices in the Device Manager window Expand the tree index for System Devices a pe DD At the bottom of the System Devices list you should see
28. ither Codewarrior or P amp E s development software is a dialog which allows the user to connect to the DEMOJM hardware If this dialog indicates that the DEMOJM hardware is not connected to the PC the first step is to make sure that the DEMOJM 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 DEMOJM board and click refresh in the connection assistant If the hardware still does not show up try the following remedies A Re Enable the USB driver If you connected the DEMOJM interface prior to the installation of P amp E s Embedded Multilink drivers Windows will not have been able to find the appropriate driver and may have disabled the device The DEMOJM board shows up in Window s device manager as a P amp E Multilink since it contains P amp E s Embedded Multilink circuitry If you unplug and then plug in the device Windows will automatically disable it even if you have installed the drivers To DEMO9S08JS16 User Manual 41 PE mIero Www pemicro com force windows to try to load the driver again perform the following steps while the DEMOJM interface is connected to the computer 1 Open the Control Panel Start Button gt Settings gt Control Panel Double Click the System Icon Select the Hardware tab Click the Device Manager Button a SS The P amp E Multilink device will be shown with an exclamation mark next to it Double click
29. mbedded Multilink design Jumper J4 controls this connection P amp E has two PC based P amp E Embedded Multilink Toolkit applications which allow the serial port data generated by this application to be graphed These are documented in Section 6 4 Accelerometer Demo Application and Section 6 5 Serial Grapher Application DEMO9S08JS16 User Manual PE miero WW PEMLC OL COM 8 JUMPER SETTINGS 8 1 System Power 8 1 1 J3 Power Source Selection The JM processor may obtain its power from the on board regulator USB port Mini USB port or through MCU_PORT J1 The on board regulator obtains its input from a 2 5mm barrel connector The on board regulator can regulate the output to 5V Power input is selected by using the J3 headers Select the USB port to supply microcontroller VDD This is the default setting REG VDD m m USB VDD E MiniUSB_VDD m m Figure 8 1 VDD_SELECT Option Header J3 8 1 2 J33 MCU PORT Select the MCU_PORT to supply microcontroller VDD This setting also allows power to be supplied to the target connected to the MCU_PORT By default this jumper is installed MCU_PORT_VDD MCU_PORT 8 2 Virtual Serial Port The DEMOJM board has a built in virtual serial port which may be connected to the JM processor s SCI RXD1 TXD1 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 It can be enabled or disabled by installing o
30. ng the software for PEMicro USB Multilink 10 Click Finish to close the wizard Cancel Figure 4 2 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 to assist you with software installation for PEMicro USB Serial Port i1 On Windows XP SP2 the follow ing dialog will appear DEMO9S08JS16 User Manual 13 mIero Www pemicro com Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install software for PE Micro USB Serial Part i1 If your hardware came with an installation CD P or floppy disk insert it now What do you want the wizard to do Install the software automatically Recommended Install from list or specific location Advanced Click Next to continue Figure 4 3 Found New Hardware Wizard Dialog 3 of 4 Select the Install the software automatically Recommended option and click the Next button 8 Windows will install the driver files to your system At the end of the installation the following dialog box will appear 14 DEMO9S08JS16 User Manual PE mIero vww pemicro com Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for Ft Micro USB Serial Port 11
31. ntrolled by USB DP DOWN signal D P l D O W 0 N A jumper across 1 amp 2 pulls down USBDP directly DEMO9S08JS16 User Manual 29 PE mIero Www pemicro com Z 0U 9U 0 A jumper across 2 amp 3 indicates that the USB DP DOWN signal controls the pull down of USBDP signal This is the default setting Figure 8 10 USBDP Settings J14 J15 USB ID signal connects to PTC5 of microcontroller 8 4 6 By default the jumper is not installed Figure 8 11 USB_ID signal connect J15 8 4 7 J16 USB PULLUP may pull up USBDP signal to microcontroller USB PULLUP signal By default this jumper is not installed Do PULL UP Figure 8 12 USB PULLUP J16 In summary use the following jumper settings for Mini USB device mode operation J11 1 amp 2 J12 1 amp 2 J13 2 amp 3 30 DEMO9S08JS16 User Manual PE mIero vww pemicro com 8 5 8 5 1 8 6 J14 283 Use the following jumper settings for Mini USB host mode operation J10 182 J11 283 J12 2 amp 3 J13 1 amp 2 J14 1 amp 2 J15 1 amp 2 J16 1 amp 2 LED Display Port The DEMOJM has 8 LEDs connected to signals PTE2 PTE3 PTFO PTF1 PTC2 PTC4 PTF5 and PTD2 They can be enabled or disabled by installing or removing the corresponding jumper J17 in the LED_ENABLE header J17 LED Display Enable Port LED_ENABLE P P TT E E 2 3 Enables all LED outputs This is the default setting Figure 8 13 LED Display Enable Header LED_
32. nufacturing floor For production the Cyclone PRO may be operated interactively via Windows based programming applications as well as under batch or dll commands from a PC Once loaded with data by a PC it can be disconnected and operated manually in a stand alone mode via the LCD menu and control buttons The Cyclone PRO has over 3Mbytes of non volatile memory which DEMO9S08JS16 User Manual PE miero WW PEMLC OL COM allows the on board storage of multiple programming images When connected to a PC for programming or loading it can communicate via the ethernet USB or serial interfaces 10 3 2 Software The Cyclone PRO comes with intuitive configuration software and interactive programming software as well as easy to use automated control software 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 amp E P amp E s Cyclone PRO is also available bundled with additional software as part of various Development Packages In addition to the Cyclone PRO these Development Packages include in circuit debugging software flash programming software a Windows IDE and register file editor 11 TROUBLESHOOTING 11 1 DEMOJM Board Is Undetected Q The connection assistant indicates that my DEMOJM board is undetected even though I have connected the hardware to my USB port What should I do A The connection assistant which displays in e
33. port with the setting of jumper J4 To properly configure accelerometer and potentiometer resources on the DEMOJM evaluation board please make sure that these headers are populated with jumpers in the following manner J21 Z PTB1 populated Y PTBO populated Y PTB3 populated X PTDO unpopulated J18 set to 0 J19 set to 0 J20 set to 1 J32 PTB2 populated PTD1 populated To start using this application please choose COM or virtual USB COM settings from the drop down Port menu By doing so you are specifying the port on the evaluation board that will be used for transmitting captured accelerometer data via a COM or USB serial port Please make sure that jumper J4 is set accordingly Prior to starting serial data capture please specify the Baud setting to reflect the parameter at which your serial communication interface is operating Once your port settings are configured please plug a USB or DB9 serial cable into the evaluation board and click on the Open Serial Port and Start Demo buitons After the serial data is captured by the application you will see raw data in the Terminal Window In the meantime the Data Snapshot window will display the accelerometer and potentiometer data levels in the form of a bar graph The graphing of data can be paused and the scale of the X and Y axes can be changed via a tool bar located in the top right corner of the Accelerometer Demo Application DEMO9S08JS16 User Manual PE mIero
34. r removing the jumpers of J4 DEMO9S08JS16 User Manual 25 PE mIero Www pemicro com TXD1 RXD1 P amp E RXD P amp E TXD Figure 8 2 Virtual Serial Port Header J4 8 3 CAN Port The DEMOJM board has implemented a CAN port Header J5 offers the CANH GND and CANL signals Header J6 selects input for high speed mode or silent mode J7 enables CAN transmission J8 enables the CAN port CANH GND CANL Figure 8 3 CAN Signals J5 8 3 1 J6 CAN operation mode selection A jumper across 1 amp 2 selects silent mode This selection also allows the microcontroller to control the operation mode via PTD6 PTD6 CAN S A jumper across 2 amp 3 selects high speed mode This is the default setting PTD6 CAN S Figure 8 4 Can Operation Mode Selection J6 26 DEMO9S08JS16 User Manual PE mIero vww pemicro com 8 3 2 J7 CAN Transmit Enable CTE By default this jumper is installed to enable CAN transmission H CTE 8 3 3 J8 CAN Port Enable CAN EN Enables CAN port By default the jumpers are installed Figure 8 5 CAN Transmit Enable J7 I TXD Wl RXD Figure 8 6 CAN Port Enable CAN EN 8 4 Mini USB Port The DEMOJM board integrates a Mini AB USB port It can operate in both device mode and host mode using jumper settings 8 4 1 J10 USB Host FAULT signal If the jumper is installed the FAULT signal is connected to the microcontroller s IRQ pin By default this jumper is not in
35. scale oo rd Le CM FOSST Figure 6 3 Unsecure Application In order to unsecure a device with this application please specify the hardware interface that you are using If your P amp E Multilink or Cyclone PRO is successfully detected the name of a corresponding device will appear in the Port text box Please select HCS08 or CFV1 from the Select Architecture drop down menu and press the 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 DEMO9S08JS16 and may also be found at http www pemicro com fixedlinks demotoolkit cfm 6 4 Accelerometer Demo Application This PC based application will graph serial data output from the microcontroller based serial accelerometer application The graphed data includes the magnitude of the X Y and Z accelerometer signals as well as the current processor loading For this application to work properly the microcontroller based serial accelerometer application must be programmed into the microcontroller which is plugged into the DEMOJM board DEMO9S08JS16 User Manual 19 PE mIero Www pemicro com 20 Samples Figure 6 4 Accelerometer Demo Application The data that is graphed may come from either the PC serial port or the virtual serial port on the DEMOJM board The serial port of the microcontroller on the DEMOJM board is routed to the virtual COM
36. stalled 8 4 2 J11 USB Host Voltage Enable VHOST_EN This jumper enables or disables USB host mode power generation PTB3 OFF A jumper across 1 amp 2 disables USB host power generation This selection also pulls up PTB3 and allows the microcontroller to use PTB3 to control the USB host power generation Pay extra attention to this signal as it is shared DEMO9S08JS16 User Manual 27 PE mIero Www pemicro com with the accelerometer s X axis This is the default setting PTB3 ON A jumper across 2 amp 3 enables USB host power generation Figure 8 7 USB Host Voltage Enable VHOST_EN J11 8 4 3 J12 Mini USB Bus power selection V H O S T Lo CC De A jumper across 1 amp 2 indicates that the Mini USB will be powered from the bus This is the default setting Lo CC De 14u40I lt A jumper across 2 amp 3 indicates that the Mini USB will provide power as a host Figure 8 8 Mini USB Bus power selection J12 8 4 4 J13 Determines whether USBDN is pulled down directly or controlled by 28 DEMO9S08JS16 User Manual PE miero FY PEMICNO COM USB DN DOWN signal D N l D O W 0 N A jumper across 1 amp 2 pulls down USBDN directly D N l D O W 0 N A jumper across 2 amp 3 indicates that the USB DN DOWN signal controls the pull down of USBDN signal This is the default setting Figure 8 9 USBDN Setting J13 8 4 5 J14 Determines whether USBDP is pulled down directly or co
37. this device 6 Click the Reinstall Driver button and follow the dialog instructions to have Windows automatically install the driver B Re Install the USB driver If the Multilink device does not show up in the device manager use the driver installation utility located in the DEMOJM Resources on the DVD ROM After driver installation unplug the DEMOJM from the PC and reboot the PC When the reboot has completed connect the interface to the PC with the USB 2 0 cable Run the software again to see if the interface is now detected If you have an error attempting to install the drivers please view the installation troubleshooting FAQ on P amp E s website at http www pemicro com faqs faq_view cfm id 89 C Test for installation of the USB driver files To test the driver installation use the driver test utility in the DEMOJM Resources of the DVD ROM to make sure all files were properly installed This may give some indication of what the problem is D Using a USB Hub The DEMOJM 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 DEMOJM will not work In general USB ports located directly on the PC are high power self powered ports 11 2 CodeWarrior Installation Fails WinDriver Error Q When try to install the Codewarrior or P amp E software installation fails with this message There are currently 2 open applicat
38. vice using an external BDM hardware tool such as P amp E s USB Multilink or Cyclone PRO Please refer to Section 10 TRANSITIONING TO YOUR OWN TARGET for more information user can take advantage of this mode to develop a target specific JM system and compare it with the DEMO9S08JS16 when necessary P amp E EMBEDDED MULTILINK TOOLKIT PC APPLICATIONS P amp E provides several Windows PC based applications which work with the DEMOJM board These applications are collectively referred to as the P amp E Embedded Multilink Toolkit The following applications are included in the toolkit Logic Analyzer Application The DEMOJM board has a built in two channel logic analyzer This analyzer allows the INO and IN1 signals to be captured by the PC and displayed for the user The INO and IN1 signals may be connected to any of the MCU signals which the user would like to view By default they are connected to the PTE2 and PTE3 pins of the MCU by jumper J28 At the time of this release the logic analyzer runs at a capture rate of 10khz DEMO9S08JS16 User Manual PE mIero vww pemicro com DAS KOL Wavefore Caplere Lite IMO IM1 Versisa 1 00 Hi Samples ich Sampish Figure 6 1 Logic Analyzer Application This PC based application is used to display the logic analyzer data on the 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
39. xes can be changed via a tool bar located in the top right corner of the Serial Grapher Application All data to be displayed must be in hexadecimal format The data can be accepted and displayed either as incoming byte values 00 FF or word values 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 DEMO9S08JS16 and may also be found at http www pemicro com fixedlinks demotoolkit cfm 6 5 1 Visual Components The Bar Graph has four separate bars A B C and D On each bar a percentage value is displayed which indicates the current value relative to the full range A byte value of 7F max is FF would show up as approximately DEMO9S08JS16 User Manual 21 22 PE mIero Www pemicro com 50 as would a word value of 7FFF max is FFFF As can be seen in the data formatting section all four bars must be written at the same time The bars are shown here Data Snapshot Figure 6 5 Serial Grapher Bar Graph The graphing component shows four waveforms X Y Z and W The magnitude axis either has a range of 00 FF if byte values are incoming on the serial port or 0000 FFFF if word values are incoming Each new set of values which comes through the serial port is added to the far right side of the graph and the rest of the

Download Pdf Manuals

image

Related Search

DC9S08JS16

Related Contents

  USB 3.0 VGA Adapter www.lindy.com  Manual del Usuario  PrimeLab 1.0 Multitest Photometer  quaDra coMpetition V1  Betriebsanleitung  K3 NEXT - Abatec  Polycom® VVX® 400 Business Media Phones user guide  自家用自動車による交通費の取扱いについて(PDF)  

Copyright © All rights reserved.
Failed to retrieve file