Download Print this page

Advertisement

Quick Links

Freescale Semiconductor
User Guide
Getting Started with the Microcontroller
Student Learning Kit (MCUSLK)
Using the MC9S12C32 MCU Application Module (CSM-12C32)
By Eduardo Montañez
Applications Engineering
Austin, Texas
By Spencer Ruggles
Axiom Manufacturing
Garland, Texas
Overview
This document will guide you through all the steps necessary to begin development on an HCS12 Family
microcontroller unit (MCU) using your MCUSLK. The software setup section will assist you install the
Metrowerks' CodeWarrior software and necessary software to support your MCU Project Board – 2. The
hardware setup section will walk you through configuring the MCU Project Board – 2 for use with the
MC9S12C32 MCU application module (Axiom's CSM12C32). The development section will show you
how to create, build, and debug your application. Refer to the MCU Project Board – 2 user guide,
MC9S12C32 MCU application module user guide and Metrowerks' CodeWarrior documentation for
details.
© Freescale Semiconductor, Inc., 2005. All rights reserved.
MCUSLK_CSM12C32
Rev. 0, 6/2005

Advertisement

loading
Need help?

Need help?

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

Questions and answers

Summary of Contents for Freescale Semiconductor MCUSLK

  • Page 1 This document will guide you through all the steps necessary to begin development on an HCS12 Family microcontroller unit (MCU) using your MCUSLK. The software setup section will assist you install the Metrowerks’ CodeWarrior software and necessary software to support your MCU Project Board – 2. The hardware setup section will walk you through configuring the MCU Project Board –...
  • Page 2: Software Setup

    After you acquire the special edition license, place it in the root CodeWarrior directory. If you encounter problems with registration, you can acquire your special edition license online at http://www.metrowerks.com/MW/Develop/Embedded/HC12/Downloads. Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0 Freescale Semiconductor...
  • Page 3: Hardware Setup

    Please refer to MCU Project Board – 2 User Guide for more details and alternative configurations. Figure 1. MCU Project Board – 2 Default Jumper Settings Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0 Freescale Semiconductor...
  • Page 4 MCU PORT connector. JP4B SS_SEL Selects dedicated SS input source to MCU_23 on MCU PORT connector to transfer data to LCD panel. GPIO Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0 Freescale Semiconductor...
  • Page 5 Enables access to direct connect features for buzzer, four push buttons, four LEDs, and potentiometer to MCU PORT JP10 connector to simplify circuit connections and emphasize software development. Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0 Freescale Semiconductor...
  • Page 6 HC(S)12 and USB 2.0 service patch software included in the CodeWarrior Development Studio for HC(S)08 Special Edition and HC(S)12 Special Edition 3-cd case must be installed per the instructions in the software setup section. Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0 Freescale Semiconductor...
  • Page 7 “Found New Hardware.” Without any user action, the Found New Hardware Wizard will appear as illustrated by Figure 4 and prompt you to install software for USB Multilink 2.0. Figure 4. Found New Hardware Wizard (Screen 1) Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0 Freescale Semiconductor...
  • Page 8 10. Installation will begin with the Found New Hardware Wizard (Screen 2) illustrated by Figure 5. No user action necessary until software is completed installing. Figure 5. Found New Hardware Wizard (Screen 2) Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0 Freescale Semiconductor...
  • Page 9 2 through 6. Also, see the troubleshooting tips section in the MCU Project Board – 2 user guide. 15. The MCU Project Board – 2 and the MC9S12C32 MCU application module are now ready for use. Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0 Freescale Semiconductor...
  • Page 10 The instructions below are slightly different from the steps described in the quick start pamphlet included in the CodeWarrior for HC(S)12 development tools CD case. The instructions below are adjusted for the MCUSLK and MC9S12C32 development module. 1. Launch the CodeWarrior IDE Select: Start >...
  • Page 11 Select “No”, you do not want your project configured to work with PC-lint m. Click “Next” — Page 5 of the new project wizard will appear (see Figure 10a) Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0 Freescale Semiconductor...
  • Page 12 Click “Next” — Page 6 of the new project wizard will appear (see Figure 10b) Select “Small” memory model Click “Next” — Page 7 of the new project wizard will appear (see Figure Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0 Freescale Semiconductor...
  • Page 13 Click “Finish” — the wizard creates a new project based on information you specified. A project window will appear, docked at left side of main window (see Figure Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0 Freescale Semiconductor...
  • Page 14 Click the “+” sign next to the “sources” folder to reveal files (see Figure Double-click the main.c file; an editor window will open and display the contents of main.c Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0 Freescale Semiconductor...
  • Page 15: Debugging Your Application

    1. Make sure power is applied to the project board. If not, go back and follow hardware setup section instructions. 2. Start debugger Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0 Freescale Semiconductor...
  • Page 16 Displays the active value at each memory address in the MCU internal Memory memory map Procedure Displays the active procedure being evaluated 1. For a description of debugger windows, see Table 2 Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0 Freescale Semiconductor...
  • Page 17 9. In the IDE main window tool bar, select: File> Exit (to exit CodeWarrior IDE) Congratulations! You have successfully developed a project using Metrowerks CodeWarrior development tools and your MCUSLK! Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0 Freescale Semiconductor...
  • Page 18 “Typicals” must be validated for each customer application by customer’s technical experts. Asia/Pacific: Freescale Semiconductor does not convey any license under its patent rights nor the rights of others. Freescale Semiconductor H.K. Ltd. Freescale Semiconductor products are not designed, intended, or authorized for use as components...