FREESCALE DEMO9S08LC60

Description
BOARD DEMO FOR 9S08LC60
Part Number
DEMO9S08LC60
Price
Request Quote
Manufacturer
FREESCALE
Lead Time
Request Quote
Category
PRODUCTS - D
Datasheet
Extracted Text
DEMO9S08LC60 Demonstration Board for Freescale MC9S08LC60 User’s Manual DEMO9S08LC60 Demonstration Board for Freescale MC9S08LC60 (80-Pin LQFP) User’s Manual Revision 1.0 ® Copyright © 2006 SofTec Microsystems DC01175 We want your feedback! SofTec Microsystems is always on the look-out for new ways to improve its Products and Services. For this reason feedback, comments, suggestions or criticisms, however small, are always welcome. Our policy at SofTec Microsystems is to comply with all applicable worldwide safety and EMC/EMI regulations. Our products are certified to comply to the European New Approach Directives and the CE mark is applied on all our products. This product as shipped from the factory has been verified to meet with requirements FCC as a CLASS A product. This product is designed and intended for use as a development platform for hardware or software in an educational or professional laboratory. In a domestic environment, this product may cause radio interference in which case the user may be required to take adequate prevention measures. Attaching additional wiring to this product or modifying the product operation from the factory default as shipped may effect its performance and cause interference with other apparatus in the immediate vicinity. If such interference is detected, suitable mitigating measures should be taken. SofTec Microsystems E-mail (general information): info@softecmicro.com E-mail (marketing department): marketing@softecmicro.com E-mail (technical support): support@softecmicro.com Web: http://www.softecmicro.com Important SofTec Microsystems reserves the right to make improvements to this product, its documentation and software routines, without notice. Information in this manual is intended to be accurate and reliable. However, SofTec Microsystems assumes no responsibility for its use; nor for any infringements of rights of third parties which may result from its use. SOFTEC MICROSYSTEMS WILL NOT BE LIABLE FOR DAMAGES RESULTING FROM LOSS OF DATA, PROFITS, USE OF PRODUCTS, OR INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. Trademarks SofTec Microsystems is a registered trademark of SofTec Microsystems, Spa. Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. Microsoft and Windows are trademarks or registered trademarks of Microsoft Corporation. PC is a registered trademark of International Business Machines Corporation. Other products and company names listed are trademarks or trade names of their respective companies. DEMO9S08LC60 User's Manual Contents 1 Introduction 5 1.1 Overview 5 1.2 Package Contents 5 1.3 Supported Devices 5 1.4 Recommended Reading 5 2 Hardware Features 7 2.1 Demonstration Board Features 7 3 Software Setup 9 3.1 Overview 9 3.2 Host System Requirements 9 3.3 Installing CodeWarrior Development Studio 9 3.4 Installing SofTec Microsystems Additional Components 10 4 Hardware Setup 11 4.1 First Connection 11 4.2 Power Supply 13 5 Operating Modes 15 5.1 Overview 15 5.2 Standalone Mode 15 5.3 Host Mode 15 6 Application Tutorial 17 6.1 Overview 17 6.2 Step-by-Step Tutorial 17 7 Summary of Jumper and Connector Settings 21 7.1 Jumpers 21 7.2 Connectors 23 8 Troubleshooting 25 8.1 USB Driver Problems 25 8.2 Communication Problems between the PC and the Demo Board 25 Page 3 DEMO9S08LC60 User's Manual 1 Introduction 1.1 Overview The DEMO9S08LC60 Demonstration board has been designed for the evaluation, demonstration and the debugging of the Freescale MC9S08LC60 microcontroller. The DEMO9S08LC60 can be used as a standalone application, or via its built-in USB-to-BDM bridge, or together the Freescale Student Learning Kit (Freescale code: MCUSLK) through an external 40-pin I/O header female connector. 1.2 Package Contents The DEMO9S08LC60 package includes the following items: � The DEMO9S08LC60 evaluation board; � A USB cable; � The SofTec Microsystems “System Software” CD-ROM; � The CodeWarrior Development Studio Special Edition CD-ROM; � A Quick Start Guide sheet; � This user’s manual. 1.3 Supported Devices The DEMO9S08LC60 Demonstration Board supports the following devices: � MC9S08LC60. 1.4 Recommended Reading � Freescale S08 microcontroller-specific datasheets; � DEMO9S08LC60 Schematic. Page 5 Introduction Note: the MC9S08LC60 datasheet is available for download at www.freescale.com. i Page 6 DEMO9S08LC60 User's Manual 2 Hardware Features 2.1 Demonstration Board Features The DEMO9S08LC60 board features: � A MC9S08LC60 microcontroller (in 80-pin LQFP package, already programmed with a demo application); � One clock sources: a 32.768 KHz crystal, selectable via the “CLK ENA” jumpers. � A 12 V DC Power Supply Input Connector; � Power input selection jumpers for selecting the input voltage source: o 12 V DC input connector; o USB connector; � A built-in USB-to-BDM circuitry which allows the host PC to communicate with the microcontroller through a standard USB interface. USB 2.0 is fully supported. When using an external in-circuit debugger (via the “BDM” connector), the USB-to-BDM circuitry must be bypassed by removing the BKGD and RESET# jumpers in the “IO2 ENA” jumper strip. � A Reset push-button connected to the MCU Reset pin. � A series of inputs: o Four push-buttons together with jumpers to connect/disconnect them to/from the microcontroller; o A potentiometer, together with a jumper to connect/disconnect it to/from the PTA0 pin of the microcontroller; o An NTC-based temperature sensor, together with a jumper to connect/disconnect it to/from the PTA7 pin of the microcontroller; o A photocell, together with a jumper to connect/disconnect it to/from the PTA1 pin of the microcontroller; o An accelerometer (Freescale MMA7260Q). All of the sensor’s input/output lines are connected to the microcontroller via jumpers. � An series of outputs: o Eight high-efficiency (low-current) LEDs together with jumpers to connect/disconnect them to/from the microcontroller; Page 7 Hardware Features o A piezoelectric speaker, together with a jumper to connect/disconnect it to/from the PTC2 pin of the microcontroller; o A custom LCD. � An RS-232 channel connected to the microcontroller’s SCI serial communication interface. The microcontroller’s PTC0/RxD and PTC1/TxD lines are used by the RS-232 channel. The DEMO9S08LC60 Demonstration Board Page 8 DEMO9S08LC60 User's Manual 3 Software Setup 3.1 Overview Note: before connecting the Demonstration Board to the PC, it is recommended that you install all of the required software first (see i below), so that the appropriate USB driver will be automatically found by Windows when you connect the Demonstration Board. The Demonstration Board requires that both CodeWarrior Development Studio Special Edition and SofTec Microsystems Additional Components be installed in the host PC. Note: CodeWarrior Development Studio for HC(S)08 must be installed first. i 3.2 Host System Requirements The Demonstration Board is controlled by CodeWarrior Development Studio. The following hardware and software are required to run the CodeWarrior user interface together with the Demonstration Board: � A 200-MHz (or higher) PC compatible system running Windows 98, Windows 2000 or Windows XP; � 128 MB of available system RAM plus 1 GB of available hard disk space; � A USB port; � CD-ROM drive for installation. 3.3 Installing CodeWarrior Development Studio To install the CodeWarrior Development Studio Special Edition, insert the CodeWarrior CD- ROM into your computer’s CD-ROM drive. A startup window will automatically appear. Follow the on-screen instructions. Page 9 Software Setup 3.4 Installing SofTec Microsystems Additional Components The SofTec Microsystems Additional Components install all of the other required components to your hard drive. These components include: � The Demonstration Board’s USB driver; � The software plug-in for CodeWarrior; � Examples; � Demonstration Board’s user’s manual; � Demonstration Board’s schematic; � Additional documentation. To install the SofTec Microsystems Additional Components, insert the SofTec Microsystems “System Software” CD-ROM into your computer’s CD-ROM drive. A startup window will automatically appear. Choose “Install Instrument Software” from the main menu. A list of available software will appear. Click on the “Additional Components” option. Follow the on- screen instructions. Note: to install the Additional Components on Windows 2000 or Windows XP, you must log in as Administrator. i Page 10 DEMO9S08LC60 User's Manual 4 Hardware Setup 4.1 First Connection The Demonstration Board is connected to a host PC through a USB port. Connection steps are listed below in the recommended flow order: 1. Install all the required system software as described in the previous section. 2. Make sure the “POWER SEL” jumper is in the “USB” position. 3. Insert one end of the USB cable into a free USB port. 4. Insert the other end of the USB cable into the USB connector on the Demonstration Board. 5. The first time the Demonstration Board is connected to the PC, Windows recognizes the instrument and starts the “Found New Hardware Wizard” procedure, asking you to specify the driver to use for the instrument. On Windows XP (SP2) the following dialog box will appear. Select the “No, not this time” option and click the “Next >” button. 6. The following dialog box will appear. Page 11 Hardware Setup Click the “Next >” button. 7. Depending on your Windows settings, the following warning may appear. Note: this warning is related to the fact that the USB driver used by the Demonstration Board is not digitally signed by Microsoft, and i Windows considers it to be potentially malfunctioning or dangerous for the system. However, you can safely ignore the warning, since every kind of compatibility/security test has been carried out by SofTec Microsystems. Click the “Continue Anyway” button. 8. Windows will install the driver files to your system. At the end of the installation, the following dialog box will appear. Page 12 DEMO9S08LC60 User's Manual Click the “Finish” button to exit from the “Found New Hardware Wizard” procedure. 9. The Demonstration Board’s USB driver is now installed on your system. 4.2 Power Supply The Demonstration Board can be powered in three ways: � 12 V DC input connector; � USB connector; � I/O header connector. The “POWER SEL” jumper allows you to power the board through either the 12 V DC input connector or the USB connector. When using the I/O header connector, its pin 1 is always connected to the 3.3 V DC line of the carrier board. Page 13 DEMO9S08LC60 User's Manual 5 Operating Modes 5.1 Overview The Demonstration Board can work in two modes: “standalone” mode and “host” mode. 5.2 Standalone Mode In standalone mode, no PC connection is required. The microcontroller is factory programmed with a sample application which shows the value of the potentiometer on the display. To run the built-in example: 1. Ensure that both the “CLK ENA” jumpers are inserted. 2. Ensure that all of the “IO1” and “IO2” jumpers are inserted. 3. Ensure that all of the “LED ENA” jumpers are inserted. 4. Ensure that both the “g-Sel1” and “g-Sel2” jumpers select the “0” position. 5. Ensure that the “Sleep Mode# SEL” jumper selects the “1” position. 6. Ensure that the “POWER SEL” jumper selects the “USB” position. 7. Power on the board via a USB cable. Alternatively, you can power the Demonstration Board through a 12 V DC plug-in power supply (not included in the kit). In this case, the “POWER SEL” jumper must select the “UNREG” position. 8. The green “POWER” LED on the board should turn on. 9. Rotate the potentiometer. Its value will be shown on the display. 5.3 Host Mode In host mode the program execution is controlled by the host PC through the “USB” connector. You can use the PC to debug the application by, for example, executing the program step by step and watching how the microcontroller registers vary, using the provided CodeWarrior Development Studio. Page 15 Operating Modes Note: all MCUs in the S08 family contain a single-wire background debug interface which supports in-circuit programming of on-chip non-volatile memory. This system does not interfere with normal application i resources. It does not use any user memory or locations in the memory map. The Background Debug Module (also known as Background Debug Controller, BDC) uses a single-wire communication interface (via the BKGD line) to allow non-intrusive access to target system memory and registers. Please note that the BKGD line is shared with the PTC6 line and the RESET line is shared with the PTB2 line. The user program, therefore, must not use the PTC6 line when working in host mode. To work in host mode (using the built-in USB to BDM interface): � Make sure that both the “RESET#” and “BKGD” jumpers in the “IO2 ENA” jumper strips are inserted. � Make sure that the “POWER SEL” jumper is in the “USB” position. � Connect the host PC to the board through the provided USB cable. Page 16 DEMO9S08LC60 User's Manual 6 Application Tutorial 6.1 Overview This section will provide a step-by-step guide on how to launch your first project and get started with the CodeWarrior for HC(S)08 user interface. 6.2 Step-by-Step Tutorial The sample application is the same as the one described in the “Standalone Mode” section above. 1. Ensure that the Demonstration Board is connected to the PC (via the USB cable) and that the board is powered on. 2. Make sure that all of the Demonstration Board jumpers are set to their factory position (see chapter “7.1 Jumpers” for details) 3. Start CodeWarrior for HC(S)08 Development Studio by selecting it in the Windows Start menu. 4. From the CodeWarrior main menu, choose “File > Open”. From the CodeWarrior main menu, choose “File > Open” and choose the “\Program Files\Freescale\CodeWarrior for HC08 V5.1\(CodeWarrior Examples)\HCS08\Evaluation Board Examples\DEMO9S08LC60\C\Demo\Demo.mcp”. 5. Click “Open”. The Project Window will open. 6. The C code of this example is contained in the “main.c” file. Double click on it to open it. Page 17 Application Tutorial 7. From the main menu, choose “Project > Debug”. This will compile the source code, generate an executable file and download it to the demo board. A new debugger environment will open. Page 18 DEMO9S08LC60 User's Manual 8. From the main menu, choose “Run > Start/Continue”. The program will be executed in real-time. 9. From the main menu, choose “Run > Halt”. The program execution will stop. The next instruction to be executed is highlighted in the Source window. 10. From the main menu, choose “Run > Single Step”. The instruction highlighted in the Source window will be executed, and the program execution will be stopped immediately after. 11. From the main menu, choose “Run > Start/Continue”. The application will restart from where it was previously stopped. Congratulations! You have successfully completed this tutorial! Two additional examples are provided in the “\Program Files\Freescale\CodeWarrior for HC08 V5.1\(CodeWarrior Examples)\HCS08\Evaluation Board Examples\DEMO9S08LC60\C\” directory: � Accelerometer: variation of acceleration along one of the three axis varies the output on the LCD and emits a sound on the speaker. � SCI: prints on the LCD a line of text sent by the PC through an RS-232 terminal application. Page 19 Application Tutorial You can continue to experiment with the CodeWarrior user interface and discover by yourself its potentialities. For an in-depth guide of all of the user interface features, select “Help > CodeWarrior Help” from CodeWarrior Development Studio’s main menu. Page 20 DEMO9S08LC60 User's Manual 7 Summary of Jumper and Connector Settings 7.1 Jumpers Name Reference Description/Pinout J102 IO1 ENABLE 1 VLCD VDD Installed: The indicated microcontroller line is PTA0 connected to the indicated user I/O function (default) PTA1 Not Installed: The indicated microcontroller line is not PTC3 connected to the indicated user I/O function PTC4 PTC5 PTC7 J103 CLOCK ENABLE PTB0 PTB1 All installed: The crystal oscillator is connected to the microcontroller (default) Not Installed: The crystal oscillator is not connected to the microcontroller J202 POWER SELECTION 1 2 1-2 (“UNREG”): The power supply is taken from the 3 power supply connector (J201) 2-3 (“USB”): The power supply is taken from the USB connector (default) J301 PTA7 SELECTION 1 2 1-2: The pin PTA7 of the microcontroller is 3 connected to the pin 1 of the “LED ENA” jumper strip (default) 2-3: The pin PTA7 of the microcontroller is connected to the NTC sensor (default) Page 21 Summary of Jumper and Connector Settings Name Reference Description/Pinout J302 G SELECTION g-Sel2 g-Sel1 Selects the accelerometer sensitivity according to the following table. 0 1 g-Sel2 g-Sel1 Selection 0 0 1.5 g (800 mV/g) (default) 0 1 2.0 g (600 mV/g) 1 0 4.0 g (300 mV/g) 1 1 6.0 g (200 mV/g) J303 ACCELEROMETER SLEEP MODE SELECTION 1 2 1-2: Accelerometer not in sleep mode 3 (default) 2-3: Accelerometer in sleep mode J304 IO2 ENABLE 1 PTA2/GX PTA3/GY Installed: The indicated microcontroller line is PTA4/GZ connected to the indicated user I/O function (default) PTC0/RX Not Installed: The indicated microcontroller line is not PTC1/TX connected to the indicated user I/O function PTC2/SPK RESET# BKGD J401 LED ENABLE 1 Installed: The LEDs are connected to the microcontroller (default) Not Installed: The LEDs are not connected to the microcontroller. Page 22 DEMO9S08LC60 User's Manual 7.2 Connectors Name Reference Description/Pinout J101 40-Pin I/O Header Female Connector 1 2 3 4 1. VDD (3.3 V) 5 6 2. PTC7 7 8 3. GND 4. RST# 9 10 5. PTC1 11 12 6. BKGD 13 14 7. PTC0 15 16 8. N.C. 9. PTC4 17 18 10. PTA0 19 20 11. PTC5 21 22 12. PTA1 23 24 13. PTC2 14. PTA2 25 26 15. PTC3 27 28 16. PTA3 29 30 17. PTB5 31 32 18. PTA4 19. PTB4 33 34 20. PTA5 35 36 21. PTB6 37 38 22. PTA6 39 40 23. PTB7 24. PTA7 25. N.C. 26. N.C. 27. N.C. 28. N.C. 29. N.C. 30. PTA2 31. N.C. 32. PTA3 33. N.C. 34. GND 35. VDD (3.3 V) 36. GND 37. GND 38. VDD (3.3 V) 39. VLCD 40. VDD (3.3 V) Page 23 Summary of Jumper and Connector Settings Name Reference Description/Pinout J104 BDM Connector (Not Populated) 1 2 3 4 1. BKGD 5 6 2. GND 3. N.C. 4. RESET/VPP 5. N.C. 6. VDD J201 12 V DC Power Supply Input Connector 2 1 1. 12 V DC 2. Ground J203 RS-232 Connector 1. N.C. 2. TX 3. RX 4. N.C. 9 6 5. GND 5 1 6. N.C. 7. N.C. 8. N.C. 9. N.C. J501 USB Connector 1. 5 V DC USB Bus Power Supply Line 2. USB D- 3. USB D+ 4. GND Page 24 DEMO9S08LC60 User's Manual 8 Troubleshooting 8.1 USB Driver Problems If you connected the Demonstration Board to the PC before installing the SofTec Microsystems Additional Components, the Demonstration Board’s USB driver may not have been correctly installed on your system. Unplugging and replugging the USB cable is of no use, since Windows has marked the device as “disabled”. As a consequence, the PC cannot communicate with the Demonstration Board. To restore the USB driver (provided the SofTec Microsystems Additional Components have been installed), perform the following steps under Windows XP: 1. Connect the Demonstration Board to the PC. 2. Open the Control Panel (Start > Settings > Control Panel). 3. Open the “System” options. 4. Select the “Hardware” tab. 5. Click the “Device Manager” button. 6. The “uDART In-Circuit Debugger” device will be shown with an exclamation mark next to it. Double click on this device. 7. In the “General” tab, click the “Reinstall Driver” button. Follow the on-screen instructions. 8.2 Communication Problems between the PC and the Demo Board 1. Make sure that both the “BKGD” and “RESET#” jumpers in the “IO2 ENA” jumper strip are inserted. 2. Make sure that the “VDD ENA” jumper in the “IO1 ENA” jumper strip is installed. 3. Make sure that the “POWER SEL” jumper selects the appropriate power source (typically “USB” when the board is connected to the PC). Page 25
Frequently asked questions
What makes Elite.Parts unique?

What kind of warranty will the DEMO9S08LC60 have?

Which carriers does Elite.Parts work with?

Will Elite.Parts sell to me even though I live outside the USA?

I have a preferred payment method. Will Elite.Parts accept it?

What they say about us
FANTASTIC RESOURCE
One of our top priorities is maintaining our business with precision, and we are constantly looking for affiliates that can help us achieve our goal. With the aid of GID Industrial, our obsolete product management has never been more efficient. They have been a great resource to our company, and have quickly become a go-to supplier on our list!
Bucher Emhart Glass
EXCELLENT SERVICE
With our strict fundamentals and high expectations, we were surprised when we came across GID Industrial and their competitive pricing. When we approached them with our issue, they were incredibly confident in being able to provide us with a seamless solution at the best price for us. GID Industrial quickly understood our needs and provided us with excellent service, as well as fully tested product to ensure what we received would be the right fit for our company.
Fuji
HARD TO FIND A BETTER PROVIDER
Our company provides services to aid in the manufacture of technological products, such as semiconductors and flat panel displays, and often searching for distributors of obsolete product we require can waste time and money. Finding GID Industrial proved to be a great asset to our company, with cost effective solutions and superior knowledge on all of their materials, it’d be hard to find a better provider of obsolete or hard to find products.
Applied Materials
CONSISTENTLY DELIVERS QUALITY SOLUTIONS
Over the years, the equipment used in our company becomes discontinued, but they’re still of great use to us and our customers. Once these products are no longer available through the manufacturer, finding a reliable, quick supplier is a necessity, and luckily for us, GID Industrial has provided the most trustworthy, quality solutions to our obsolete component needs.
Nidec Vamco
TERRIFIC RESOURCE
This company has been a terrific help to us (I work for Trican Well Service) in sourcing the Micron Ram Memory we needed for our Siemens computers. Great service! And great pricing! I know when the product is shipping and when it will arrive, all the way through the ordering process.
Trican Well Service
GO TO SOURCE
When I can't find an obsolete part, I first call GID and they'll come up with my parts every time. Great customer service and follow up as well. Scott emails me from time to time to touch base and see if we're having trouble finding something.....which is often with our 25 yr old equipment.
ConAgra Foods