The Axiom CME-12D60 single board computer is a fully assembled, fully functional
development system for the Motorola 68HC912D60 microcontroller, complete with wall plug
power supply and serial cable. Support software for this development board is provided for
Windows 95/98 and NT operating systems.
Follow the steps in this section to get started quickly and verify everything is working correctly.
Installing the Software
1. Insert the Axiom 68HC12 support CD in your PC. If the setup program does not start, run
the file called "SETUP.EXE" on the disk.
2. Follow the instructions on screen to install the support software onto your PC.
You should at minimum install the AxIDE for Windows software.
3. The programming utility “AxIDE” requires you to specify your board. You should select
"CME12D60" for this board.
Board Startup
Follow these steps to connect and power on the board. This assumes you're using the
provided AxIDE utility (installed in the previous section) or a similar communications terminal
program on your PC. If you're using a different terminal program than the one provided, set
it's parameters to 9600 baud, N,8,1.
1. Make certain the CONFIG SWITCH is set as follows:
12345678
ONONONONOFFONOFFOFF
2. Connect one end of the supplied 9-pin serial cable to a free COM port on your PC.
Connect the other end of the cable to the COM1 port on the CME-12D60 board.
3. Apply power to the board by plugging in the power adapter that came with the system.
4. If everything is working properly, you should see a message to “PRESS KEY TO START
MONITOR…” in your terminal window. Press the ENTER key and you should see:
Axiom MON12 - HC12 Monitor / Debugger
> _
5. Your board is now ready to use! If you do not see this message prompt, or if the text is
garbage, see the TROUBLESHOOTING section at the end of this manual.
3
Support Software
There are many useful programs and documents on the included HC12 support CD that can
make developing projects on the CME-12D60 easier. You should browse the disk and copy
anything you want to your hard drive.
The flash programming utility (AxIDE) communicates with the board via its COM1 port and the
supplied cable. This program also includes a simple terminal for interfacing with other
programs running on the CME-12D60, such as Mon12, and information from your own
programs that send output to the serial port.
Also on the disk is a free assembler, example source code, and other tools to get you started.
Software Development
Software development on the CME12B32 can be performed using either the Mon12 monitor
utility installed in EPROM (sockets U6/U7), a third party debugger (NoICE, CodeWarrior, etc.)
or a Background Debug Module (BDM) connected to the BDM-IN 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 by changing the CONFIG SWITCH settings and programming it using one of
the included programming utilities. Your program will then run automatically whenever the
board is powered on or RESET is applied.
Option jumpers and switches on the board allow for easy transition from one memory type to
another and restoring an operating monitor or debugger.
4
TUTORIAL
This section was written to help you get started developing software with the CME-12D60
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 CME-12D60 board using any language that compiles to
Motorola 68HC12 instructions. Included on the software disk is a free Assembler.
You can write your source code using any ASCII text editor. You can use the free EDIT or
NOTEPAD programs that come with your computer. 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 CME-12D60 board.
It's important to understand your development board's use of Memory and Addressing when
writing source code so you can locate your code at valid addresses. For example, when in
debug mode, you should put your program CODE in External RAM. In assembly language,
you do this with ORG statements in your source code. Any lines following an ORG statement
will begin at that ORG location, which is the first number following the word ORG, for example:
ORG $1000. You must start your DATA (or variables) in a RAM location unused by your
program, for example: ORG $0000.
In “debug mode” you’ll be using a debugger utility (Mon12, NoICE, etc) which will handle both
interrupts (reset, timers, etc) and the STACK. When finished debugging, you must add code
to your application to handle the STACK and Interrupt vector initialization. Set the stack
somewhere at the top of your available RAM, for example $7FE, in assembly this would be
LDS #$7FE. Also define the RESET vector address, $FFFE, at the end of your program.
For example:
ORG $FFFE
FDB START ; where START is the beginning label of your program
A look at the example programs on the disk can make all of this clearer. If you're using a
compiler instead of an assembler, consult the compiler documentation for methods used to
locate your code, data and stack.
5
Assembling source code
An example program called “HELLO.ASM” is provided under the \EXAMPLES\D60 directory
of the CD and if you installed AxIDE, under that programs \EXAMPLE\HC12D60 directory.
You can assemble your source code using command line tools under a DOS prompt by typing:
AS12 HELLO.ASM –LHELLO
Most compilers and assemblers allow many command line options so using a MAKE utility or
batch file is recommended if you use this method. Run AS12 without any arguments to see all
the options, or see the AS12.TXT file on the disk.
The programming utility AxIDE provided with this board contains a simple interface to this
assembler. Use it by selecting "Build" from its menu. This will prompt you for the file to be
assembled. NOTE: You must select your board from the pull down menu first, or it may not
build correctly.
DO NOT use long path names (> 8 characters). The free assembler is an old DOS tool that
does not recognize them.
If there are no errors in your source code, 2 output files will be created:
HELLO.S19a Motorola S-Record file that can be programmed into memory
HELLO.LSTa common listing file which shows the relationship between source
and output
The listing file is especially helpful to look at when debugging your program. If your program
has errors, they will be displayed and no output will be generated, otherwise the listing file will
be displayed.
If you prefer a windows integrated programming environment, try the Motorola MCU-EZ tools.
Refer to the MCU-EZ documentation on the disk for more information.
Also, a port for the free GNU C compiler and tools for the HC12 is available on the CD under
\Shareware and also online at www.gnu-m68hc11.org.
6
Loading...
+ 13 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.