Академический Документы
Профессиональный Документы
Культура Документы
Users Manual
DEMO9S12XEP100
Demonstration Board for Freescale MC9S12XEP100 (112-Pin LQFP)
Users Manual
Revision 1.1 Revision 1.2
We want your feedback! SMHTechnologies 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.
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 SMH Technologies is to comply with all applicable worldwide safety and
EMC/EMI regulations. This product is certified to comply with the 2004/108/CE Directives and is in conformity with the EN55024/A1 the EN55024/A2 and the EN6100-6-2 standards. This product, as shipped from the factory, has been verified to meet with requirements of the CLASS A part 15 title 47 of FCC roles. In a domestic environment, this product may cause radio interference in which case the user may be required to take adequate prevention measures. Our policy at SofTec Microsystems is to comply with all applicable worldwide safety and Attaching additional wiring to this product or modifying the product operation from the EMC/EMI regulations. Our products are certified to comply to the European New factory default as shipped may effect its performance and cause interference with other Approach Directives and the CE mark is applied on all our products. apparatus in the immediate vicinity. If such interference is detected, suitable mitigating This product as shipped from the factory has been verified to meet with requirements measures should be taken. FCC as a CLASS A product.
This product is designed and intended for use as a development platform for hardware or Disposal of an Waste Electrical Electronic Equipment software in educational or& professional laboratory.(WEEE). In the European Union, thisthis label indicates this product should not be disposed of In a domestic environment, product maythat cause radio interference in which case the with waste.to It take mustadequate be deposited in an appropriate user household may be required prevention measures.facility to allow for recovery and recycling. For more detailed information about the recycling of this product, please Attaching additional wiring to household this product or modifying the product from where the contact your local city office, waste disposal service or operation the retail store factory default as shipped may effect its performance and cause interference with other you purchased this product. apparatus in the immediate vicinity. If such interference is detected, suitable mitigating measures should be taken.
SofTec Microsystems SMHTechnologies E-mail E-mail (general (general information): information): info@softecmicro.com info@smh-tech.com E-mail E-mail (marketing (marketing department): information): marketing@softecmicro.com marketing@smh-tech.com E-mail support): support@softecmicro.com E-mail (technical (support information): support@smh-tech.com Web: Web: http://www.softecmicro.com http://www.smh-tech.com Important SMHTechnlogies reserves the right to make improvements to this product, its its documentation and software routines, without SofTec Microsystems reserves the right to make improvements to this product, documentation and software routines, notice. Information in this manual is intended to be accurate and reliable. However, SMHTechnlogies assumes no responsibility without notice. Information in this manual is intended to be accurate and reliable. However, SofTec Microsystems assumes no for its use; nor for any infringements of rights of third parties may result from itsresult use. from its use. responsibility for its use; nor for any infringements of rights ofwhich third parties which may SOFTEC MICROSYSTEMS WILL NOT BE LIABLE FOR DAMAGES RESULTING LOSS OF PROFITS, DATA, PROFITS, USE SMHTechnlogies WILL NOT BE LIABLE FOR DAMAGES RESULTING FROM FROM LOSS OF DATA, USE OF PROOF PRODUCTS, OR INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY DUCTS, OR INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. THEREOF. Trademarks Trademarks SMHTechnlogies is a registered trademark of SMHTechnlogies. SofTec Microsystems is a registered trademark of SofTec Microsystems, Spa. Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. Microsoft and Windows are trademarks or registered trademarks of Microsoft Corporation. Microsoft and Windows are trademarks or registered trademarks of Microsoft Corporation. PC is a registered trademark of International Business Machines 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. Other products and company names listed are trademarks or trade names of their respective companies.
Contents
1 Introduction 5
1.1 1.2 1.3 1.4 Overview 5 Package Contents 5 Supported Devices 5 Recommended Reading 5
2 3
Hardware Features 7
2.1 Demonstration Board Features 7
Software Setup 9
3.1 3.2 3.3 3.4 Overview 9 Host System Requirements 9 Installing CodeWarrior Development Studio 9
Hardware Setup 11
4.1 4.2 First Connection 11 Power Supply 13
Operating Modes 15
5.1 5.2 5.3 Overview 15 Standalone Mode 15 Host Mode 15
Application Tutorial 17
6.1 6.2 Overview 17 Step-by-Step Tutorial 17
Troubleshooting 27
8.1 8.2 USB Driver Problems 27 Communication Problems between the PC and the Demo Board 27 Page 3
1 Introduction
1.1 Overview
The DEMO9S12XEP100 Demonstration board has been designed for the evaluation, demonstration and the debugging of the Freescale MC9S12XEP100 microcontroller. The DEMO9S12XEP100 can be used as a standalone application, or via its built-in USB-toBDM bridge, or together the Freescale Student Learning Kit (Freescale code: MCUSLK) through three external 40-pin I/O female header connectors.
Page 5
2 Hardware Features
2.1 Demonstration Board Features
The DEMO9S12XEP100 board features: A MC9S12XEP100 microcontroller (in 112-Pin LQFP package, already programmed with a demo application); Two clock sources: o o A 4 MHz crystal; A provision for an external clock module.
A 12 V DC power supply input connector; Power input selection jumper for selecting the input voltage source: o o 12 V DC input connector; 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. A Reset push-button connected to the MCU Reset pin. A series of inputs: o o o o Two push-buttons, together with jumpers to connect/disconnect them to/from the microcontroller; Four DIP-switches, together with jumpers to connect/disconnect them to/from the microcontroller; A potentiometer, together with a jumper to connect/disconnect it to/from the microcontroller; A photocell, together with a jumper to connect/disconnect it to/from the microcontroller.
Four high-efficiency (low-current) LEDs together with jumpers to connect/disconnect them to/from the microcontroller; An RS-232 channel connected to the microcontrollers SCI serial communication interface;
Page 7
Hardware Features Two LIN connectors sharing one LIN transceiver, together with jumpers for configuration; One CAN connector with high-speed CAN transceiver, together with jumpers for configuration.
Page 8
3 Software Setup
3.1 Overview
i i
Note: before connecting the Demonstration Board to the PC, it is recommended that you install all of the required software first (see below), so that the appropriate USB driver will be automatically found by Windows when you connect the Demonstration Board.
The Demonstration Board requires that that both both CodeWarrior CodeWarrior Development Development Studio StudioSpecial SpecialEdition Edition and SMHTechnologies SofTec Microsystems Additional Components be installed in the host and Additional Components be installed in the host PC.PC.
Page 9
Software Setup
To the SofTec SMHTechnologies Additional Components, insert the SyTo install the Microsystems Additional Components, insert theSMHTechnologies SofTec Microsystems stem Software CD-ROM into your computers CD-ROM drive. A startup window will automaSystem Software CD-ROM into your computers CD-ROM drive. A startup window will automatically Instrument Software the mainAmenu. A list of tically appear. appear. ChooseChoose Install Install Instrument Software from thefrom main menu. list of available available will software willClick appear. Click on the Additional Components option. the Follow the onsoftware appear. on the Additional Components option. Follow on-screen screen instructions. instructions.
Note: to install the Additional Components on Windows 2000 or Windows XP, you must log in as Administrator.
Page 10
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. 2. 3. 4. 5. Install all the required system software as described in the previous section. Make sure the POWER SEL jumper is in the USB position. Insert one end of the USB cable into a free USB port. Insert the other end of the USB cable into the USB connector on the Demonstration Board. 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.
i
8.
is related related to to the the fact factthat thatthe theUSB USBdriver driverused usedby by Note: this warning is by Microsoft, and the Demonstration Board Board is is not notdigitally digitallysigned signed by Microsoft, and to be be potentially potentially malfunctioning malfunctioningor ordangerous dangerous Windows considers it to ignore the warning, since for the system. system. However, However, you youcan cansafely safely ignore the warning, sinevery kind of compatibility/security test hashas been carried out out by by ce every kind of compatibility/security test been carried SofTec Microsystems. SMHTechnologies.
Click the Continue Anyway button. Windows will install the driver files to your system. At the end of the installation, the following dialog box will appear.
Page 12
Click the Finish button to exit from the Found New Hardware Wizard procedure. 9. The Demonstration Boards USB driver is now installed on your system.
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 connected to the VDD line of the carrier board through the VAUX ENA jumper.
Page 13
5 Operating Modes
5.1 Overview
The Demonstration Board can work in two modes: standalone mode and host mode.
Page 15
Operating Modes
Note: all MCUs in the S12X family contain a single-wire background debug interface which supports in-circuit programming of on-chip nonvolatile memory. This system does not interfere with normal application resources. It does not use any user memory or locations in the memory map. The Background Debug Module (BDM) uses a single-wire communication interface (via the BKGD line) to allow non-intrusive access to target system memory and registers.
To work in host mode (using the built-in USB to BDM interface): Make sure that both the RESET# and BKGD jumpers 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
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 HCS12(X) user interface.
5. 6. 7. 8. 9. 10.
11.
Congratulations! You have successfully completed this tutorial! You can continue to experiment with the CodeWarrior user interface and discover by yourself its potentialities. For
Page 17
Application Tutorial an in-depth guide of all of the user interface features, select Help > CodeWarrior Help from CodeWarrior Development Studios main menu.
Page 18
OSC SELECTION 1-2 (XCLKS#=0): When inserted, selects full-swing Pierce oscillator or external clock; when removed, selects a loop-controlled Pierce oscillator (default) 2-3 (CLOCK): Clock oscillator selected 4-5 (CRYSTAL): Crystal oscillator selected (default)
J202
RESET# BKGD
BDM ENABLE All installed: Not Installed: The USB to BDM interface is enabled (default) The USB to BDM interface is disabled
J302
RX TX
RS-232 ENABLE All installed: Not Installed: The microcontrollers PS0/RXD0 and PS1/TXD0 lines are routed to the RS232 transceiver (default) The RS-232 transceiver is not connected to the microcontroller
J305
ENA RX TX
LIN ENABLE All installed: Not Installed: The microcontrollers PS2/RXD1, PS3/TXD1 and PS7/SS0# lines are routed to the LIN transceiver (default) The LIN transceiver is not connected to the microcontroller
Page 19
Name J401
Reference
Description/Pinout VDD CAN ENABLE Installed: Not Installed: Powers the CAN transceiver with the VDD voltage (default) CAN transceiver not powered
J402
TX RX EN ERR# STB#
CAN ENABLE All Installed: Not Installed: The CAN transceiver is connected to the microcontroller (default) The CAN transceiver is not connected to the microcontroller
J502
1 2 3
POWER SELECTION 1-2 (UNREG): 2-3 (USB): The power supply is taken from the power supply connector (J501) The power supply is taken from the USB connector (default)
J503
PUSH-BUTTON PP0 ENABLE Installed: Not Installed: The PP0 push-button is connected to the microcontrollers PP0 line (default) The PP0 push-button is not connected to the microcontroller
J504
PUSH-BUTTON PP1 ENABLE Installed: Not Installed: The PP1 push-button is connected to the microcontrollers PP1 line (default) The PP1 push-button is not connected to the microcontroller
J505
POTENTIOMETER ENABLE Installed: Not Installed: The PAD00 potentiometer is connected to the microcontrollers PAD00 line (default) The PAD00 potentiometer is not connected to the microcontroller
J506
PHOTO RESISTOR ENABLE Installed: Not Installed: The photoresistor network is connected to the microcontrollers PAD01 analog input (default) The photoresistor network is not connected to the microcontroller
Page 20
Name J507
Reference
1
Description/Pinout DIP-SWITCH ENABLE Installed: Not Installed: The DIP-switches are connected to PB[3..0] ports of the microcontroller (default) The DIP-switches are not connected to the microcontroller
J508
LED ENABLE Installed: Not Installed: The LEDs are connected to PA[3..0] ports of the microcontroller (default) The LEDs are not connected to the microcontroller
Page 21
7.2 Connectors
Name J101 Reference
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40
Description/Pinout 40-Pin I/O Female Header Connector 1 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. VDD (5.0 V) PE1 GND RESET# PS1 BKGD PS0 PP7 PP0 PAD07 PP1 PAD06 PT0 PAD05 PT1 PAD04 PM4 PAD03 PM2 PAD02 PM5 PAD01 PM3 PAD00 PA7 PJ6 PA6 PJ7 PA5 PP2 PA4 PP3 PA3 PP4 PA2 PP5 PA1 PS2 PA0 PS3
Page 22
Name J102
Reference
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40
Description/Pinout 40-Pin I/O Female Header Connector 2 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. PB0 PM0 PB1 PM1 PB2 PT2 PB3 PT3 PB4 PK0 PB5 PK1 PB6 PK2 PB7 PK3 PT4 PK4 PT5 PK5 PT6 PK7 PT7 PAD08 PE7 PAD09 PE6 PAD10 PE5 PAD11 PE4 PAD12 PE3 PAD13 PE2 PAD14 GND PAD15 PE0 PP6
Page 23
Name J103
Reference
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40
Description/Pinout 40-Pin I/O Female Header Connector 3 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. PS4 GND PS5 GND PS6 GND PS7 GND PM6 GND PM7 GND PH0 GND PH1 GND PH2 GND PH3 GND PH4 GND PH5 GND PH6 GND PH7 GND PJ0 GND PJ1 GND PJ6 GND GND GND GND GND GND GND
Page 24
Name J106
Reference
1 3 5 2 4 6
Description/Pinout BDM Connector (Not Populated) 1. 2. 3. 4. 5. 6. BKGD GND N.C. RESET/VPP N.C. VDD
J201
USB Connector 1. 2. 3. 4. 5 V DC USB Bus Power Supply Line USB DUSB D+ GND
J301
RS-232 Connector 1. 2. 3. 4. 5. 6. 7. 8. 9. Connected to pins 4 and 6 TX RX Connected to pins 1 and 6 GND Connected to pins 1 and 4 Connected to transceiver for testing purposes Connected to transceiver for testing purposes Connected to transceiver for testing purposes
J303, J304
1
LIN Connectors 1. 2. 3. 4.
1
J403
J501
Page 25
8 Troubleshooting
8.1 USB Driver Problems
If you connected the Demonstration Board to the PC before installing the SMHTechnologies SofTec Additional Components, Demonstration Boards USB driver may not driver have been Microsystems Additional the Components, the Demonstration Boards USB may not have correctly installed on your Unplugging and replugging the USB is of no been correctly installed onsystem. your system. Unplugging and replugging the cable USB cable is use, of no use, since Windows has marked the device as disabled. As a consequence, the PC cannot since Windows has marked the device as disabled. As a consequence, the PC cannot communicate with with the the Demonstration Demonstration Board. Board. communicate To restore restore the the USB USB driver driver (provided (provided the the SMHTechnologies SofTec Microsystems Additional Components have To Additional Components have been installed), installed), perform perform the the following following steps steps under under Windows Windows XP: XP: been
1. 2. 3. 4. 5. 6. 7. Connect the Demonstration Board to the PC. Open the Control Panel (Start > Settings > Control Panel). Open the System options. Select the Hardware tab. Click the Device Manager button. The uDART In-Circuit Debugger device will be shown with an exclamation mark next to it. Double click on this device. In the General tab, click the Reinstall Driver button. Follow the on-screen instructions.
Page 27
SMH Technologies S.r.l. via Giovanni Agnelli, 1 33083 Villotta di Chions (PN) Italy SMH Technologies is the licensee of the SofTec Microsystems trademark