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.
The following software installation is a one-time, required procedure per host PC that you intend to use
with the MCU Project Board – 2. After completing the software setup section on your host PC, you can
then skip the software section on subsequent uses of your project board and begin with the hardware
setup or development sections.
1.To install and register CodeWarrior development tools for HC(S)12 MCUs onto a host PC, follow
the instructions outlined in sections A, B, and C of the CodeWarrior Development Studio for
Freescale 68HC(S)12 Microcontrollers quick start pamphlet found inside the supplied 3-cd case
labeled CodeWarrior Development Studio for HC(S)08 Special Edition and HC(S)12 Special
Edition. Make sure to request the special edition license when registering.
license version of CodeWarrior is necessary for developing applications for the MC9S12C32 MCU
application module board.
2.Install a CodeWarrior service patch labeled “CW12_V3_1_ICD12_USB2_0_Sim_patch.exe”
located in the Service Pack CD found inside the supplied 3-cd case labeled CodeWarrior
Development Studio for HC(S)08 Special Edition and HC(S)12 Special Edition. The patch is
located under the E:\HC(S)12\CW12_V3_1\ directory in the Service Pack CD. Install by doubleclicking on the file and by following the on-screen instructions.
1
The special edition
NOTE
The CW12_V3_1_ICD12_USB2_0_Sim_patch.exe is REQUIRED for the
USB multilink pod on the MCU Project Board – 2 to function with the
Metrowerks CodeWarrior development tools and must be installed prior to
the hardware setup section. Other patches included on the Service Pack
CD are recommended if developing an application on a HC(S)12
microcontroller other than the MC9S12C32.
NOTE
Periodically check the corresponding development tool product page for
patches and updates. For questions on CodeWarrior development tools,
contact support@metrowerks.com
1. Registering will email you instructions for how to acquire the special
edition license. 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
Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0
2Freescale Semiconductor
Hardware Setup
Hardware Setup
Unpack
1.Open the shipping carton and remove the contents. Verify that all packing list items have been
received.
2.Inspect both the MCU Project Board – 2 and the MC9S12C32 MCU application module for any
damage that may have occurred during shipping. If damage is found, contact the manufacturer at
support@axman.com
Configuring the MCU Project Board – 2
1.To begin, place the MCU Project Board – 2 on a flat sturdy surface. Ensure sufficient space is
available around the project board to safely construct and test prototyped circuits.
2.Verify that all the factory default jumper settings are configured properly on the MCU Project
Board – 2 as shown by Figure 1. Highlighted blocks indicate the “on” or “installed” position of
jumpers. Circles indicate the location on the project board where the jumpers are located. Table 1
summarizes the default state for the jumper settings. Please refer to MCU Project Board – 2 User
Guide for more details and alternative configurations.
Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0
Freescale Semiconductor3
Hardware Setup
Table 1. Summary of Default Jumper Settings (Sheet 1 of 2)
Jumper PositionJumper IDDescription
PWR_SEL
J1 VIN
+5V_SEL
USB JP1
VDD_SEL
+5V +3.3V
PS1_EN
J301
HIGH FULL
MODULE
POWER
VDD
GND
JP1
JP2
JP3Sets V
JP11
USB-ML
-MCUSLK
JP4A
JP4B
Selects V
(wall power transformer) as the default power
In
source for the project board.
Selects USB (power via USB cable from host PC) as the
default power source for the project board. This jumper
overrides PSEL_A in USB position.
to +5 V for project board.
DD
Enables PS1 output (±15 V supply from dc-dc converter) to
the project board.
Selects USB high-speed communications for the BDM
Multilink pod on the project board. If the user encounters a
communication failure, USB communication speed may be
reduced by setting this option jumper to FULL.
Routes V
to MCU_1 and GND to MCU_3 to power a
DD
plugged in application module board on MCU PORT
connector.
SS_SEL
JP5
SS* GPIO
Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0
4Freescale Semiconductor
Selects dedicated SS
input source to MCU_23 on MCU
PORT connector to transfer data to LCD panel.
Table 1. Summary of Default Jumper Settings (Sheet 2 of 2)
Jumper PositionJumper IDDescription
CONTRAST
Hardware Setup
ADJ
FIX
COM_SEL
MON08 COM
COM_EN
AMPL
LED_EN
CTS
RTS
RXD
TXD
JP12Selects fixed LCD contrast voltage.
JP8Selects RS-232 communications for project board COM port.
JP9
JP7Oscillator output at reduced amplitude – 3.3 Vpp.
JP6Enables all LED outputs on project board.
Enables all RS-232 communication signals individually for
project board COM port.
UFEA
Freescale Semiconductor5
BZ
PB
LED
POT
Enables access to direct connect features for buzzer, four
JP10
Getting Started with the MCUSLK for MC9S12C32 Application Module, Rev. 0
push buttons, four LEDs, and potentiometer to MCU PORT
connector to simplify circuit connections and emphasize
software development.
Hardware Setup
3.Configure the MC9S12C32 MCU application module (CSM12C32) PWR_SEL option header.
Install jumpers as shown.
PWR_SEL
1
2
4.Configure the MC9S12C32 MCU application module (CSM12C32) USER option header. Install
jumpers as shown below.
USER
1
2
3
4
5.Install the MC9S12C32 MCU application module in the MCU PORT connector (J5) on the project
board. Align pin 1 on the application module with pin 1 of the MCU PORT connector on the project
board as marked by Figure 2.
PIN 1
4
Figure 2. Installation of MC9S12C32 MCU Application Module
6.Power up your host PC and connect the supplied USB cable to an available USB port on your host
PC.
Prior to executing the following steps, all CodeWarrior development tools
for the 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
6Freescale Semiconductor
NOTE
Loading...
+ 12 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.