MCU Module & Project Board: MC9S12C32 Microcontroller Development, Study Guides, Projects, Research of Electrical and Electronics Engineering

Information about the mcu module & project board for the freescale (motorola) mc9s12c32 microcontroller. It covers the module's operation, power supply, user options, and bdm port. The document also includes diagrams of the csm-12c32 microcontroller module and the mcu project board.

Typology: Study Guides, Projects, Research

Pre 2010

Uploaded on 08/19/2009

koofers-user-qd1
koofers-user-qd1 🇺🇸

3.5

(2)

10 documents

1 / 8

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
MCU Module & Project Board
1
MCU Development Module (CSM-12C32)
The CSM-12C32 is an evaluation or demonstration module for the Freescale (Motorola)
MC9S12C32 microcontroller. We will be using this module in our assembly language
programming.
Figure 1: Diagram of the CSM-12C32 (Microcontroller module)
Note:
1.) A jumper is a classic shunt that connects 2 terminals electrically.
2.) Jumper on, in, or installed jumper is installed such that 2 pins are connected
together.
3.) Jumper off, out, or idle jumper is installed on 1 pin only. It is recommended that
jumpers be idled by installing on 1 pin so they will not be lost.
SW1
SW2
RESET
LED1
LED2
MC9S12C32
microcontroller
PWR
PWR_SEL
VDD
40
pin
connector
J1
User
Options
BDM
PORT
Serial Port
pf3
pf4
pf5
pf8

Partial preview of the text

Download MCU Module & Project Board: MC9S12C32 Microcontroller Development and more Study Guides, Projects, Research Electrical and Electronics Engineering in PDF only on Docsity!

MCU Development Module (CSM-12C32)

The CSM-12C32 is an evaluation or demonstration module for the Freescale (Motorola) MC9S12C32 microcontroller. We will be using this module in our assembly language programming.

Figure 1: Diagram of the CSM-12C32 (Microcontroller module)

Note : 1.) A jumper is a classic shunt that connects 2 terminals electrically. 2.) Jumper on, in, or installed – jumper is installed such that 2 pins are connected together. 3.) Jumper off, out, or idle – jumper is installed on 1 pin only. It is recommended that jumpers be idled by installing on 1 pin so they will not be lost.

SW

SW

RESET

LED1 LED

MC9S12C

microcontroller

PWR

PWR_SEL

VDD

40-pin connector J

User Options

BDM

PORT

Serial Port

Module Operation The MCU supports a default 38.4K bps serial communication rate on the COM interface port within RS-232.

Power is supplied to the CSM-12C32 module through the connector labeled PWR in the diagram (fig1). The PWR_SEL jumper determines the source of input power.

The PWR connector allows the module to be powered from a transformer plugged into a standard wall outlet.

Connector J Power can be supplied to the module through the pins J1-1 and J1-2. The range of voltage input is +3.3VDC - +5VDC (+/-5%). The PWR_SEL option determines how power is routed to the module.

PWR_SEL Jumper This is a 4-position option header which decides which way power is input to the module.

Shunt Position Power Option Selected 1 Regulated +3.3VDC - +5VDC from connector J 2 On-board regulator connected to PWR connector 1 & 2 On-board regulator connected to PWR connector and sourcing power through J

We are using the shunt position 1 since we are receiving power through the J1 connector from the NI ELVIS project board. DO NOT modify the position of the PWR_SEL jumper.

Reset Switch The RESET switch provid es an asynchronous reset input to the MCU.

User Options The LED indicators, LED1 and LED2, are connected to the MCU’s I/O ports via the USER jumper bank. When the appropriate USER jumper is installed, the assigned LED is active. Each LED is active low (a zero written to it turns it on). MCU ports PA0 and PB4 drive LED1 and LED2, respectively.

Two pushbutton switches SW1 and SW2 provide momentary active low input to the MCU. SW and SW2 are also connected to the MCU I/O ports by the option bank and provide input to MCU I/O ports PE0 and PP5 respectively. The user jumper settings are shown below:

Jumper On Off MCU signal User1 Enable SW1 Disable SW1 PE0 /XIRQ* User2 Enable SW2 Disable SW2 PP5/KWP User3 Enable LED1 Disable LED1 PA User4 Enable LED2 Disable LED2 PB

MCU Project Board for the MC9S12C

Figure 2: Diagram of the MCU Project Board

The MCU project board for the MC9S12C32 is a prototyping board with a microcontroller interface. When using this board for programming, it will be connected to the NI ELVIS.

Power The MCU Project Board can be used as a stand-alone prototyping platform or in conjunction with the NI-ELVIS platform. The board can also be powered from the included wall-plug transformer or from the NI-ELVIS workstation through the J1 connector.

The selection header, JP1 , PWR_SEL, is a 3-pin header which allows the user to select the +5V input source supplied to the board (see Fig. 2). The J1 selection routes voltage from the NI- ELVIS connector J1 to the project board. VIN routes the output from the on board voltage regulator to the project board circuits.

Voltage is input through pins 1 and 3. +5V output is through pin 2.

JP

JP

JP

Power Output The MCU project board can provide both +5V and +3.3V operating voltages. A 3-pin option header, JP2 , VDD_SEL, allows the user to select the voltage routed to VDD (see Fig. 2).

Voltage input connected to pins 1 and 3. VDD output is on pin 2. Placing a shunt on pins 2- routes +5V to VDD. Placing a shunt on pins 1-2 routes +3.3V to VDD.

MCU Module Power The MCU project board is capable of powering power modules attached to the MCU_PORT connector. A 4-pin option header at JP3 is used to control this option (see Fig. 2). In our labs, we will use the Project Board to power the CSM-12C32.

If a shunt is placed on pins 1-2, VDD is routed to the MCU_PORT signal IO1. If a shunt is placed on pins 3-4, GND is routed to MCU_PORT signal IO3.

Note: Both shunts must be installed or both shunts must be removed. Do not place a shunt on pins 1-3 or 2-4.

The CSM-12C32 module is connected to the MCU project board as shown in Fig. 3 below if it gets its power from the project board.

Since the MCU module is ge tting its power from the project board, a shunt is placed on pins 1- and 3-4 of JP3 as mentioned above.

MCU PORT I/O CONNECTOR The MCU module is plugged into pins IO1-IO40 on the MCU PORT on the left side of the project board. (See Fig. 3 below.) That connector is internally connected on the project board to a similarly labeled connector (IO1-IO40) just to the right of the MCU PORT connector. Using hook-up wire, you can connect from this second connector to other areas of the project board, such as the pushbuttons (PB1-PB8) and LEDs (LED1-LED8), thus connecting MCU I/O pins to these devices. See the MCU Module J1 connector diagram above for pin correspondence.

BDM POD An MCU-based BDM pod has been provided to allow users to program and debug attached MCU modules. A BDM_OUT connector has been provided to allow programming and debugging of application code. To connect to the target MCU module, a 6-pin ribbon cable is installed between the BDM_OUT connector on the project board and the BDM_PORT connector on the target module as shown in Fig. 3 below.

Figure 3: MCU module connected to the Project Board

The MCU module is connected to the project board as shown in Fig. 3 above and both are connected to the NI-ELVIS as shown in Fig. 4 below.

BDM_OUT

Ribbon Cable

BDM port connector on MCU module

MCU PORT

I/O connector

LED1-

LED

PB1-

PB8 BDM

RESET

pushbutton

Figure 4: MCU module, Project Board and the NI-ELVIS station