Home

DEMO9S08SC4

image

Contents

1. Lo oe DEMO9S08SC4UM PSC Rev 1 00 5 freescale June 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
2. development tool Below are some of the featured operating modes of the DEMO9S08SC4 4 2 Debug Mode A host communicates with the DEMO9S08SC4 through the Embedded Multilink circuitry Either the CodeWarrior Development Studio or P amp E s HCS08 software tools will work with the DEMO9S08SC4 Please refer to 10 DEMO9S08SC4 User Manual PE mIero www pemicro com Section 7 DEMO9S08SC4 CODE DEVELOPMENT SOFTWARE for more information 4 3 Run Mode The DEMO9S508S5CA s rich component list empowers it to perform a variety of tasks Once an application is developed debugged and programmed properly into the SC4 internal flash memory it can run with or without connecting to a host 4 4 External BDM Mode The DEMO9S08SC4 has an optional BDM header for debugging and programming the on board SC4 device using an external BDM hardware tool such as P amp E s USB Multilink or Cyclone PRO Please refer to Section 8 TRANSITIONING TO YOUR OWN TARGET for more information user can take advantage of this mode to develop a target specific SC4 system and compare it with the DEMO9S08SC4 when necessary 5 EMBEDDED MULTILINK TOOLKIT PC APPLICATIONS P amp E provides several Windows PC based applications which work with the DEMO9S08SC4 board These applications are collectively referred to as the Embedded Multilink Toolkit The following applications are included in the toolkit 5 1 DEMO9S08SC4 Logic Analyzer Application The DEMO9S08SC4 bo
3. 3 2 3 4 DEMO9S08SC4 User Manual 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 Installing P amp E Resources Use the DEMO9S08SC4 Resources CD ROM to access and install P amp 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 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 PE mIero www pemicro com Step 5 Will be updated with Quick Start G
4. User Manual PE micro www pemicro com J8 LIN VBUS Configuration 18 fam LIN VBUS CONFIG Jumper ON LIN VBUS is connected to 12V 18 m om LIN VBUS CONFIG Jumper OFF LIN VBUS is not connected to 12V J9 LIN VSUP Configuration 19 fam LIN VSUP CONFIG Jumper ON LIN VSUP is connected to 12V 19 fom LIN VSUP CONFIG Jumper OFF LIN VSUP is not connected to 12V J10 LIN Master Selection 110 fam LIN MASTER SELECT Jumper ON LIN is configured as a master node 110 fam LIN MASTER SELECT Jumper OFF LIN is configured as a slave node 6 3 LED Display Port The DEMO9S08SC4 Board has 2 LEDs connected to signals PTAO and DEMO9S08SC4 User Manual 21 PE mIero www pemicro com PTB4 They can be enabled or disabled by installing or removing the corresponding jumper J5 in the LED ENABLE header 6 3 1 J5 LED Display Enable Port LED ENABLE PTAO PTB4 Enables all LED outputs This is the default setting Figure 6 5 LED Display Enable Header LED_ENABLE J5 6 4 Input Switches The DEMO9S08SC4 has an option to connect two signals PTA1 and PTB5 to the Embedded Multilink for signal processing The two signals are connected or disconnected to INO or IN1 correspondingly via jumpers P amp E INPUT EN J14 The DEMO9S08SC4 has 2 switches that are connected to signals PTA2 and PTB2 respectively and are enabled or disabled by the 4 corresponding jumpers KEY ENABLE J16 6 4 1 J14
5. 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 DEMO9S08SC4 Resources CD ROM to make sure all files were properly installed This may give some indication of what the problem is D Using a USB Hub DEMO9S08SC4 User Manual 29 9 2 30 PE mIero www pemicro com The DEMO9S08SC4 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 DEMO9S08SC4 will not work In general USB ports located directly on the PC are high power self powered ports 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 applications using WinDriver Please close all applications and press Retry To reload WinDriver press Cancel and reboot How do 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 installat
6. circuitry A user may use jumper J3 CLOCK EN to enable the external crystal circuitry 6 6 1 J3 External Crystal Circuitry Enable Jumpers CLOCK EN Enables or disables the external crystal circuitry Both positions must DEMO9S08SC4 User Manual 23 6 7 7 1 7 2 24 PE mIero www pemicro com be installed to enable use of crystal circuitry Figure 6 9 External Crystal Circuitry Enable Jumper CLOCK EN J3 Jumper J4 For VDD And MCU VDD The DEMO9S08SC4 provides a jumper on the bottom of the board to connect VDD to MCU VDD By default it is not populated and is shorted with zero ohm resistor JR3 in parallel A user may take off this zero ohm resistor and install a corresponding jumper DEMO9S08SC4 CODE DEVELOPMENT SOFTWARE The DEMO9S08SC4 includes P amp E s Embedded Multilink circuitry so no external hardware BDM tool is needed to debug and program the DEMO9S08SC4 A user only needs to connect the DEMO9S08SC4 to their PC to start developing code for it The DEMO9S08SC4 package comes with a special edition of Freescale s CodeWarrior studio In addition P amp E s evaluation software for HCS0O8 is available online at www pemicro com A user may use either CodeWarrior or P amp E software tools to develop code for the DEMO9S08SC4 Using CodeWarrior With The DEMO9S08SC4 The CodeWarrior studio supports Freescale s HCS08 devices It offers C C and assembly level support and provides debugging capabilities base
7. wizard helps you install software for PEMicro 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 Ce Install the software automatically Recommended Install from a list or specific location Advanced Click Next to continue Figure 3 4 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 DEMO9S08SC4 User Manual 9 PE mIero www pemicro com Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for PEMicro USB Serial Part i1 Click Finish to close the wizard Back Cancel Figure 3 5 Found New Hardware Wizard Dialog 4 of 4 Click the Finish button to exit the Found New Hardware Wizard If the DEMO9S08SC4 hardware interface driver is now properly installed on your system the green USB LED on the DEMO9S08SC4 board should be illuminated In addition if you turn on the system power of the DEMO9S08SC4 you will see the red Power LED illuminate 4 OPERATING MODES 4 1 Overview The DEMO9S08SC4 s Embedded Multilink circuitry featured hardware components and optional external BDM header make it a versatile
8. 4 board as well as other user hardware connected to the PC via the USB Multilink or Cyclone PRO hardware interfaces DEMO9S08SC4 User Manual 13 PE mIero www pemicro com P amp E Microcomputer Systems CFV1 HCS08 Unsecure Program DEAR p DEERE P amp E Multilink DEMO board USB v freescale u Port vfl Refresh List JEMOGE Developers Tool Kit Link micro ce Figure 5 3 DEMO9S08SC4 Unsecure Application This PC based application is included on the CD ROM that accompanies the DEMO9S08SC4 and may also be found at http www pemicro com fixedlinks DEMOQEtoolkit html 5 4 DEMO9S08SC4 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 customer 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 upon a series of bar graphs The virtual serial port exists on several of P amp E s embedded USB multilink designs including the DEMO9S08SC4 board This PC based application is included on the CD ROM that accompanies the DEMO9S08SC4 and may also be found at http www pemicro com fixedlinks DEMOQEtoolkit html All data to be displayed must be in hexadecimal format The data can be accepted and display
9. P amp E s Logic Analyzer Inputs INO IN1 The logic analyzer inputs are marked on one side of the J14 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 IN1 will be connected to PTA1 and PTB5 respectively INO PTA1 IN1 PTB5 By removing these jumpers INO and IN1 will be unconnected The user may connect these signals via wires to any other signals on the 22 DEMO9S08SC4 User Manual PE micro www pemicro com processor which they wish to view on the PC Figure 6 6 Jumper Settings for Input Signals to P amp E s Embedded Multilink P amp E INPUT_EN J14 6 4 2 J6 Light Touch Switch Enable Jumper KEY ENABLE Enables the corresponding switch Each jumper may be individually installed or removed By default all jumpers are installed to enable all the switches Figure 6 7 Jumper Settings for Light Touch Switches KEY_ENABLE J6 6 5 Analog Input Potentiometer The DEMO9S08SC4 provides an easy access 5Kohm potentiometer whose output may be connected to PTA3 enabled or disabled by J15 POT EN 6 5 1 J15 Potentiometer Output Selection Jumpers POT EN J15 fam POT EN Selects the potentiometer output connection By default it is connected Figure 6 8 Potentiometer Output Selection Jumpers POT EN J15 6 6 External Crystal Circuitry Jumper Enable The DEMO9S08SC4 provides external crystal
10. RANSITIONING TO YOUR OWN TARGET iii 25 8 1 Hardware Solutions At A Glance raneranernnrnnnnnnnnrnannnnnnnnnnnnnnnnnnrnnnnnnnnnnnnennne 25 8 2 Working With P amp E s USB Multilink 20 0 cc ceccceeeceeeeeeeeseeeseeeeeeeseeeeaees 26 8 3 Working With P amp E s Cyclone PRO 2 TROUBLESHOOTING Lue ones 28 9 1 DEMO9S08SC4 Is Undetected 20 0 0 ecccccccseeeseeeseeeeaeeeseeeseeeeeeeeseeeseeees 28 9 2 CodeWarrior Installation Fails WinDriver Error 30 DEMO9S08SC4 User Manual PE mIero www pemicro com 1 1 1 1 2 1 3 1 4 INTRODUCTION Overview The DEMO9S08SC4 is a low cost development system designed for demonstrating evaluating and debugging the Freescale MC9S508SC4 microcontroller P amp 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 Package Contents The DEMO9S08SC4 package includes the following items e DEMO9S08SC4 Demo board e USB Cable e Freescale Warranty Card Supported Devices The DEMO9S08SC4 supports the MC9SO8SC4CTG device Recommended Materials On DEMO9S08SC4 Resources CD e DEMO9S08SC4 Embedded Multilink hardware interface driver e DEMO9S08SC4 User Manual this document e DEMO9S08SC4 Demo Board Schematics e DEMO9S08SC4 Component Breakdown List e Embedded Multilink Toolkit Applications
11. 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 6 JUMPER SETTINGS 6 1 System Power The SC4 processor may obtain its power from either the on board regulator or through MCU PORT J1 The on board regulator regulates the output to 5V Power input is achieved by using J2 and J13 headers J2 VDD Source Selection Jumper VDD_SELECT ads asn daa 934 GGA 1HOd NDW Select the Embedded Multilink Circuitry USB to supply DEMO9S08SC4 User Manual 17 PE mIero www pemicro com microcontroller VDD This is the default setting aada asn daa 934 GAA 1HOd NOW Select the MCU PORT VDD to supply microcontroller VDD This setting also allows power to be supplied to the target connected to the MCU PORT Please note that J13 must be installed to use this option aada asn GGA 934 GAA LHOd NOW Select the REG VDD to supply microcontroller VDD Figure 6 1 VDD SELECT Option Header J2 MCU PORT and MCU PORT VDD Figure 6 2 MCU PORT and MCU PORT VDD Option Header J13 6 2 RS232 LIN Communications The DEMO9S08SC4 integrates an RS232 transceiver not populated and a 18 DEMO9S08SC4 User Manual PE micro www pemicro com 6 2 1 LIN PHY driver not populated for the microcontroller SCI signals The DEMO9S08SC4 also integrates the SCI signal into the Embedded Multilink circuitry A user can communicate wit
12. ard 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 PTA1 and PTB5 pins of the MCU by jumper J14 At the time of this release the logic analyzer runs at a capture rate of 10khz DEMO9S08SC4 User Manual 11 PE mIero www pemicro com DEMOQE Waveform Capture Utility INO IN1 Version 1 00 freescale Figure 5 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 This PC based application is included on the CD ROM that accompanies the DEMO9S08SC4 and may also be found at http www pemicro com fixedlinks DEMOQEtoolkit html 5 2 DEMO9S08SC4 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 DEMO9S08SC4 board The application includes settings to adjust the COM port number baud rate parity and number of data bits There is a button to take a file on the PC and transmit it out of the serial port There are also delays which are automatically inserted in the transmission output to prevent overruns It is rec
13. d 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 Using P amp E Software With The DEMO9S08SC4 P amp E offers software tools for Freescale s HCS08 devices that can be used to develop code for the DEMO9S08SC4 board P amp E offers an integrated development environment which combines a command line assembler in circuit debugger and flash memory programmer The assembler includes DEMO9S08SC4 User Manual PE mIero www pemicro com 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 circuit 8 TRANSITIONING TO YOUR OWN TARGET 8 1 Once you have finished working with the DEMO9S08SC4 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
14. documentation for each user 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 00 PE miero 1 INTROD TON a anne 1 1 1 VM 1 1 2 Per 1 1 3 Supported Devices iii 1 1 4 Recommended Materials On DEMO9S08SC4 Resources CD 1 1 5 Handling Precautions 8 sus nge nie dents cesse secte ete beeitens 2 2 HARDWARE FEATURE ES an ou 2 2 1 DEMO9S08SC4 Base Board Features rrrrnrrnanrranrrnnrnrarrvanrnnnrnnannnannnnnennnnnn 2 2 2 On Board Logic Analyzer rrranrnnnrnnnnnvanrnnnernnrn
15. e Links to P amp E Evaluation Software DEMO9S08SC4 User Manual PE mIero www pemicro com Links to Freescale documentation P amp 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 amp 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 amp 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 amp E s Embedded Multilink circuitry populated on the bottom RS 232 Serial Port w DB9 F Connector not populated SCI signals connected to P amp E s Embedded Multilink through jumpers ON OFF Power Switch w LED indicator 12VDC power supply input barrel connector Power Input Selection Jumpers for selecting the in
16. e run the installer and complete the procedure Reboot your machine after the installation has finished DEMO9S08SC4 User Manual 31 32 PE mIero www pemicro com DEMO9S08SC4 User Manual DEMO9S08SC4UM Rev 1 00 June 2009 mMIGFPO Freescale Controller Continuum NN ColdFire V1 ColdFire V2 V3 V4 PowerPC Nexus ARM m N v NE ven ON Ad ct Why Pa one RO M 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 2009
17. ed 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 5 4 1 Visual Components The Bar Graph has four separate bars A B C and D On each bar a 14 DEMO9S08SC4 User Manual PE mIero www pemicro com 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 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 5 4 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 data values move 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 Section 5 4 2 Data Format each incoming data command affecting the graphing component
18. h the microcontroller SCI module via the on board DB9 connector not populated the Molex 4 position LIN connector or the Embedded Multilink circuitry There are two jumpers associated with SCI communication selection J12 SCI RXD Signal Selection Jumper RXD EN SCI RXD LIN RXD P amp E RXD Connects the microcontroller PTBO RXD signal to the RS232 transceiver E m SCI RXD LIN RXD m E P amp E RXD Connects the microcontroller PTBO RXD signal to the LIN transceiver PTBO SCI RXD LIN RXD P amp E RXD Connects the microcontroller PTBO RXD signal to the Embedded Multilink SCI circuitry This is the default setting Figure 6 3 SCI RXD Signal Selection Jumper RXD_EN J12 DEMO9S08SC4 User Manual 19 PE miero www pemicro com 6 2 2 J11 SCI TXD Signal Selection Jumper TXD EN SCI_TXD PTB1 LIN_TXD P amp E_TXD Connects the microcontroller PTB1 TXD signal to the RS232 transceiver E m SCI TXD PTB1 LIN_TXD m mj P amp E_TXD Connects the microcontroller PTB1 TXD signal to the LIN transceiver SCI TXD PTB1 FH LIN TXD P amp E TXD Connects the microcontroller PTB1 TXD signal to the Embedded Multilink SCI circuitry This is the default setting Figure 6 4 SCI TXD Signal Selection Jumper TXD EN J11 6 2 3 LIN Jumper Settings J7 LIN Enable 17 fam LIN ENABLE Jumper ON Enables the LIN transceiver 17 om LIN ENABLE Jumper OFF Disables the LIN transceiver 20 DEMO9S08SC4
19. ion 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 ane SUN 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 2 Click on the Device Manager button 3 Select the System Devices in the Device Manager window DEMO9S08SC4 User Manual PE mIero www pemicro com 4 Expand the tree index for System Devices At the bottom of the System Devices list you should see 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 your machine You should then r
20. lug in the USB cable on the DEMO9S08SC4 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 DEMO9S08SC4 interface prior to installing 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 DEMO9S08SC4 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 force windows to try to load the driver again perform the following steps while the DEMO9S08SC4 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 vr SD DN The P amp E Multilink device will be shown with an exclamation mark next to it Double click 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 DEMO9S08SC4 Resources CD ROM After driver installation unplug the DEMO9S08SC4 from the PC and reboot the PC
21. must have new data for all four waveforms An example graph is shown here DEMO9S08SC4 User Manual 15 5 4 2 16 5 4 2 1 5 4 2 2 PE mIero www pemicro com Data Graphed Over Time 65000 Channels x 60000 W Figure 5 5 Serial Grapher Graphing Component Data Format The data format is broken into two sections depending upon whether the incoming data is in byte format or word format Byte Formatted Data There are two commands which may be accepted Both commands must end in the special characters 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 Word Formatted Data There are three commands which may be accepted All commands must end DEMO9S08SC4 User Manual PE mIero www pemicro com in the special characters 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 nnnNnN NNNN NNNN The nnnn values are 0000 FFFF and correspond in order to the data displayed the graphing component as follows
22. nnrrnanrnanennernanennannnnnennsennnennnsnne 4 2 3 On Board Virtual Serial Port ss 4 3 ATTEN SE TUR eee 4 3 1 VEE ene 4 3 2 Operating System Requirements Rs 4 3 3 SNE SEP nceann a aa ame ee ee ee ue tee 5 3 4 UA 9 3 5 ESN a deco et ae een 6 4 OPERATING MODES esererrnrnnrevnrnneerarnnerrnvnreennrrnsenernnseneenneenuennveneennsenenusene 10 4 1 OE EEE EEE ENE seus 10 4 2 Boo OGG RE O EE EE io mie 10 4 3 RUNOT EEE 11 4 4 External BDM Mode annnnnnonnnonnnnnnnnevanennnrnnnnnnnnrnanennnnnnennnnnnnnnsnnennnnnnnnnnnnnnenn 11 5 EMBEDDED MULTILINK TOOLKIT PC APPLICATIONS onnenn 11 5 1 DEMO9S08SC4 Logic Analyzer Application 11 5 2 DEMO9S08SC4 Terminal Application 12 5 3 DEMO9S08SC4 Unsecure Application rrrurrrarrrnnrvnnrrrnnnnvnnrnnnnnnnrnnnnennnennn 13 5 4 DEMO9S08SC4 Serial Grapher Application rrarrnnnrnnnrrnnrernnrnnnrnnnnnnnnennnr 14 6 JNPER EITNGS eee ene ne reer ere 17 6 1 NAP saasndesecuennesaceecauencouesaaneva eee sann 17 6 2 RS232 LIN COMMUNICATIONS iii 19 6 3 LED Display PO een 21 6 4 HMO ES erosin nspa aaa a E Ea a 22 DEMO9S08SC4 User Manual PE miero 6 5 Analog Input Potentiometer Vs 23 6 6 External Crystal Circuitry Jumper Enable rarrrnnrnnnrrnanrrnnennnrnnnnnrnnnvnnnnnnnnn 23 6 7 Jumper J4 For VDD And MCU _VDD 24 DEMO9S08SC4 CODE DEVELOPMENT SOFTWARE 24 7 1 Using CodeWarrior With The DEMO9S08SC4 24 7 2 Using P amp E Software With The DEMO9S08SC4 24 T
23. ommended that these defaults not be changed 12 DEMO9S08SC4 User Manual mIero www pemicro com Terminal Window application v1 00 Duplex Baud 115200 gl i i Download File to ComPort y Close Port fr eesca e Parity D i i Char De ms 5 Bits fe Open OL Delay ms 8450 5470 ELA 831C 84C6 5490 B548 631C S8446 546 B536 631C 84B 540 B4D 31C sg 5536 B4B 31G 5556 B556 631C 5496 B4B6 631C 53F6 B476 631C 84D9 5448 B4C6 831C 8536 5536 B526 631C 84B 54F B4F 31C 8590 5470 B518 831C 54F6 B546 631C 5506 B496 631C 85 70 5468 B528 031C 84920 5430 B4B 31C 8476 5486 B518 831C Fe 5446 B516 831C C6 54B6 B4C6 831C BSED 5526 B4G 31C 85BG 54B6 B526 631C 84F 54F B4B 31C 8460 55108 B4F 31C N pemicro com Figure 5 2 DEMO9S08SC4 Terminal Application 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 This PC based application is included on the CD ROM that accompanies the DEMO9S08SC4 and may also be found at http www pemicro com fixedlinks DEMOQEtoolkit html 5 3 DEMO9S08SC4 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 DEMO9S08SC
24. on volatile memory which allows the onboard storage of multiple programming images When connected to a PC for programming or loading it can communicate via the ethernet USB or serial interfaces 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 TROUBLESHOOTING DEMO9S08SC4 Is Undetected Q The connection assistant indicates that my DEMO9S08SC4 is undetected even though have connected the hardware to my USB port What should do A The connection assistant which displays in either Codewarrior or P amp E s development software is a dialog which allows the user to connect to the DEMO9S08SC4 hardware If this dialog indicates that the DEMO9S08SC4 hardware is not connected to the PC the first step is to make sure that the DEMO9S08SC4 hardware is connected to the PC via a USB 2 0 high speed DEMO9S08SC4 User Manual PE mIero www pemicro com cable If it is connected unplug and then p
25. ound New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install software for PEMicro USB Multilink 10 If your hardware came with an installation CD ED or floppy disk insert it now What do you want the wizard to do Ce Install the software automatically Recommended Install from a list or specific location Advanced Click Next to continue 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 PE mIero www pemicro com Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for PEMicro USB Multilink 10 Click Finish to close the wizard Cancel 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 DEMO9S08SC4 User Manual mMIero www pemicro com Found New Hardware Wizard Welcome to the Found New Hardware Wizard This
26. p E software and Freescale s CodeWarrior 8 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 Compatible with Freescale s ColdFireV1 HCS08 RS08 and HC S 12 X microcontroller families Communication via USB Serial and Ethernet Ports Multiple image storage LCD screen menu interface Supported by P amp E software and Freescale s CodeWarrior 8 2 Working With P amp E s USB Multilink 26 Figure 8 1 P amp E s USB Multilink USB ML 12 shown DEMO9S08SC4 User Manual PE micro www pemicro com 8 2 1 8 2 2 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 Vista machine and a standard 6 pin debug connector on the target By using 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 execution read write registers and memory values debug code on the processor and program internal or external FLASH memory devices The USB M
27. put voltage source e Power Input from Embedded Multilink to LDO regulator e Power Input from DC Power Jack to LDO regulator regulated VDD output at 5 0V e Power Input from MCU PORT connector DEMO9S08SC4 User Manual PE micro www pemicro com 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 e 2 User LED s w Enable e 2 User Push Buttons w Enable e 5K Ohm POT w Enable Option Jumpers e COM SEL to choose SCI connection to LIN PHY or RS232 or PEMICRO virtual COM port e INPUT EN for two input channels to Embedded Multilink Specifications e Board Size 3 2 x 2 9 e Power Input e USB Cable 5VDC 500mA max e DC Power Jack 2 1mm barrel connector 12VDC Center Positive USER IO DEMOSSO8SC4 00000000 pl PP Sah a aie aces 000000 s E i Bhs eye i LIN STWITCH Figure 2 1 DEMO9S08SC4 Top Component Placement 2 2 2 3 3 1 3 2 PE mIero www pemicro com 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 INO 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 wi
28. re 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 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 SYSTEM SETUP Overview P amp 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 Operating System Requirements The following are the resources required to run the CodeWarrior Development Studio and the DEMO9S08SC4 e APC compatible system running Windows 2000 Windows XP or Windows Vista e 128MB of available system RAM and 1GB of available hard disk DEMO9S08SC4 User Manual PE mIero www pemicro com space e A CD ROM drive for software installation e AUSB port 3 3 Software Setup 3 3 1 Installing CodeWarrior Development Studio 3
29. to working with your own hardware The USB Multilink is a development tool that is functionally comparable to the Embedded Multilink circuitry on the DEMO9S08SC4 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 advanced capabilities Below is an overview of the features and intended use of the USB Multilink and Cyclone PRO DEMO9S08SC4 User Manual 25 PE mIero www pemicro com 8 1 1 USB Multilink Key Features Direct user control of target s execution Programming and debugging capabilities Read write registers and memory values Compact and lightweight Communication via USB 2 0 Supported by P am
30. uide 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 INO and INT signals on the DEMO9S08SC4 board If both J14 jumpers are installed INO shows PTA1 and INT 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 QE Waveform Capture Utility INO IN1 Version 1 00 EA freescale 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 amp 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 amp E s Embedded Multilink cir 6 DEMO9S08SC4 User Manual PE mMIero www pemicro com cuitry and P amp 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 F
31. ultilink 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 8 3 Working With P amp E s Cyclone PRO 8 3 1 Figure 8 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 DEMO9S08SC4 User Manual 27 8 3 2 9 9 1 28 PE mIero www pemicro com 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 manufacturing floor For production the Cyclone PRO may be operated interactively via Windows based programming applications as well as under batch or dil 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 n

Download Pdf Manuals

image

Related Search

DEMO9S08SC4

Related Contents

HQ BAT-LEAD-17 rechargeable battery  Manuel d`installation et d`utilisation du FOYER DE MASSE  Documento PDF  Télécharger le Côte-d`Or Magazine de septembre version pdf  BMW 325XI Automobile User Manual  L`arte della sicurezza in moto  Instrucciones de servicio Afilador automático Autocut      Prenez un bon départ Naviguez plus vite Identifiez les  

Copyright © All rights reserved.
Failed to retrieve file