Software Development; Tutorial; Creating Source Code - Axiom MCU MC9S12DP256 User Manual

Single board computer for motorola mc9s12dp256
Table of Contents

Advertisement

C M L 1 2 S D P 2 5 6
0 7 / 1 7 / 0 2
At minimum, you should install the AxIDE program. This provides the flash programming
utility and communication with the board via the COM port and the supplied serial cable. This
program includes a simple terminal for interfacing with other programs running on the
CML12Sxxx and information from your own programs that send output to the serial port.
Also on the disk are free assemblers AS12 and MCU-EZ, the open source GNU C/C++
compiler tools for HC11/12, example source code, and other useful software. The introductory
tutorial in this manual uses the free AS12 assembler integrated into the AxIDE program. This
is a simple assembler with limited capability. For a more powerful assembly tool, install the
Motorola MCUez program from the CD. This will allow you to use PAGED program memory in
your application.

Software Development

Software development on the CML12Sxxx can be performed using either the MON12 monitor
installed in internal FLASH of the MCU, a third party debugger (Debug12, NoICE,
CodeWarrior, etc.) or a Background Debug Module (BDM) connected to the BDM PORT
connector. Any of these tools can be used to assist in creating and debugging your program
stored in RAM (see Memory Map).
After satisfactory operation running under a debugger, your program can be written to Internal
Flash Memory using the included programming utilities. The Mon12 firmware in the MCU
flash provides the interrupt vectors in Ram memory and an Autostart feature to launch your
application. Your program may then run automatically whenever the board is powered on or
RESET is applied.

TUTORIAL

This section was written to help you get started developing software with the CML12SXXX
board. Be sure to read the rest of this manual as well as the documentation on the disk if you
need further information.
The following sections take you through the complete development cycle of a simple "hello
world" program, which sends the string "Hello World" to the serial port.

Creating Source Code

You can write source code for the CML12SXXX board using any language that compiles to
Motorola 68HC12 instructions. Included on the software disk is a free Assembler, AS12.
You can write your source code using any ASCII text editor. You can use the free EDIT,
WordPad, or Notepad programs that come with your computer. Note that the source file must
be simple ASCII text without any document formatting added. Once your source code is
written and saved to a file, you can assemble or compile it to a Motorola S-Record (hex)
format. This type of output file usually has a .MOT, .HEX or .S19 file extension and is in a
format that can be read by the programming utilities and programmed into the CML12SXXX
board.
5

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cml12s-dp256

Table of Contents