Freescale Semiconductor HCS12 Quick Reference Manual

Student learning kit
Hide thumbs Also See for HCS12:

Advertisement

Quick Links

Freescale Semiconductor
SLKS12QSG
Quick Reference Guide
Rev. 0, 2/2008
Getting Started with the Student Learning Kit
Featuring the Freescale HCS12 Microcontroller Application
Module
© Freescale Semiconductor, Inc., 2006. All rights reserved.
_______________________________________________________________________

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HCS12 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Freescale Semiconductor HCS12

  • Page 1 Freescale Semiconductor SLKS12QSG Quick Reference Guide Rev. 0, 2/2008 Getting Started with the Student Learning Kit Featuring the Freescale HCS12 Microcontroller Application Module © Freescale Semiconductor, Inc., 2006. All rights reserved. _______________________________________________________________________...
  • Page 2: Table Of Contents

    Quick Reference Guide Rev. 0, 2/2008 1 Introduction This guide provides the steps necessary to begin Contents development with a HCS12 family microcontroller (MCU) using your application 1 Introduction ..............2 2 Unpack .................3 module and/or in conjunction with the Freescale 3 Software Setup ............3...
  • Page 3: Unpack

    To install and register CodeWarrior development tools for HCS12(X) Microcontrollers onto a host PC, complete the instructions found inside the CodeWarrior Development Studio for Freescale HCS12(X) Microcontrollers case.
  • Page 4: Configuring The Application Module For Independent Operation

    Source power input from connector on-board USB. VX_EN SW3_1 Jumpers enable access to application modules features. For push button switch (SW1:2), 4-position DIP switch 3 USER (SW3_1:4), LED[1:4], and to simplify circuit connections and SW3_2 emphasize software development. SW3_3 SW3_4 Freescale Semiconductor...
  • Page 5 LED1 LED2 LED3 LED4 Jumpers enable the application modules serial communication COM_EN port. Jumpers enable the application modules background debug BDM_EN mode (BDM) circuit. Freescale Semiconductor...
  • Page 6: Configuring The Application Module For Use With The Project Board

    Source power input from connector J1 VX_EN Jumpers enable access to application modules features. For SW3_1 push button switch (SW1:2), 4-position DIP switch 3 USER (SW3_1:4), LED[1:4], and to simplify circuit connections and emphasize software development. SW3_2 SW3_3 SW3_4 Freescale Semiconductor...
  • Page 7 Remove jumpers to disable the application modules background debug mode (BDM) circuit. BDM_EN *Note: The BDM pins are shared when using the PBMCUSLK with the application module. Conflicts may occur if both are in use simultaneously. Freescale Semiconductor...
  • Page 8 Verify that all the jumper settings are configured properly on the project board as shown by Figure 3. Highlighted blocks indicate the on or installed position of jumpers. Circles indicate the location on the project board where the jumpers are located. Figure 3. Project Board Jumper Settings Freescale Semiconductor...
  • Page 9 MOD_PWR Provides PWR & GND to Application Module Selects dedicated SS input source to MCU_23 (SS) on MCU SS_SEL PORT connector to transfer data to LCD panel. GPIO MOSI LCD_EN Connects dedicated SPI signals to LCD port. MISO Freescale Semiconductor...
  • Page 10 Oscillator output at reduced amplitude – 3.3 Vpp LED_EN LED_EN Enables all LED outputs on project board. Enables access to direct connect features for buzzer, four push buttons, four LEDs, and potentiometer to MCU PORT UFEA connector to simplify circuit connections and emphasize software development. Freescale Semiconductor...
  • Page 11: Installing The Application Module

    3) Connect the other end of the USB cable to the USB connector on the project board. Figure 5 illustrates the USB connector on the project board for the BDM Multilink pod interface to power, program, erase, and debug the application module board. Freescale Semiconductor...
  • Page 12: Windows Operating System Hardware Detection

    3) Select Install the software automatically (recommended) from the Found New Hardware Wizard and click Next to continue with installation. 4) Installation will begin with the Found New Hardware Wizard (Screen 2) illustrated by Figure 7. No user action necessary until software is completed installing. Freescale Semiconductor...
  • Page 13 Left: Project Board USB BDM Right: Application Module USB BDM 6) Validation that the USB is properly installed can be done by verifying that the VDD LEDs, and USB status lights are lit. 7) The hardware is now ready for development and use. Freescale Semiconductor...
  • Page 14: Running The Demonstration Application

    This demonstration application in its entirety is available for free at www.freescale.com\universityprograms in the student learning kits section. Under your Student Learning Kit page you will find: Complete, commented source code in C Detailed function explanation Latest up-to-date function additions, features, and updates. Freescale Semiconductor...
  • Page 15: Custom Software Development

    In the Location text box, set location where you want the project to be created. d) Click OK — the first page of the new project wizard will appear explaining to you how the project wizard works, proceed to the second page by clicking OK again (see Figure 10) Freescale Semiconductor...
  • Page 16 Click Next — page 5 of the new project wizard will appear (see Figure 11). k) Select No, you do not want your project configured to work with PC-lint. l) Click Next — page 6 of the new project wizard will appear (see Figure 12). Freescale Semiconductor...
  • Page 17 Figure 13. CodeWarrior New Project Wizard Page 8 and Page 9 s) Page 9 allows you to specify connections that the project should be configured to support. NOTE Select as many connections as you would like! Having more than one selection does not impact your compiled code size. Freescale Semiconductor...
  • Page 18 Click the + sign next to the sources folder to reveal files (see Figure 14). b) Double-click the main.c file. An editor window will open and display the contents of main.c similar to that shown (see Figure 15) Freescale Semiconductor...
  • Page 19: Debugging Your Application

    This will allow you to debug your application through CodeWarrior True-Time Simulator & Real-Time Debugger using the BDM pod interface on the project board. “Software Setup” and “Hardware Setup” sections described earlier must be completed before executing the steps in this section. Freescale Semiconductor...
  • Page 20 Window Name Description Source and Assembly Display programmed application software in C and assembly programming languages, respectively Register Displays the MCU internal registers Memory Displays the active value at each memory address in the MCU internal memory map Freescale Semiconductor...
  • Page 21 8) In the debugger window tool bar, select: File > Exit (to exit debugger). 9) In the IDE main window tool bar, select: File > Exit (to exit CodeWarrior IDE). Congratulations — You have successfully developed a project using CodeWarrior development tools with your project board and application module. Freescale Semiconductor...
  • Page 22: Revision History

    Freescale recommends that you use these resources in the following order: For frequently asked questions (FAQs), latest www.freescale.com\universityprograms updates, and listing of known bugs and www.axman.com/support solutions. Ask your questions to our online developer www.freescale.com/forums community Ask your questions directly to Freescale www.freescale.com/support representative Freescale Semiconductor...
  • Page 23 For Literature Requests Only: other application in which the failure of the Freescale Semiconductor product Freescale Semiconductor Literature Distribution Center could create a situation where personal injury or death may occur. Should P.O.

Table of Contents