CME-12B32 AXIOM, CME-12B32 Datasheet - Page 7

Microprocessor Development Tool

CME-12B32

Manufacturer Part Number
CME-12B32
Description
Microprocessor Development Tool
Manufacturer
AXIOM
Datasheet

Specifications of CME-12B32

Silicon Manufacturer
Freescale
Kit Contents
Board
Silicon Core Number
68HC12B32
Memory Organization - Flash
32 KB
Development Tool Type
Hardware - Eval/Demo Board
Clock Frequency
16MHz
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Switch back to the BDM program and select GO. To see the result of the program, switch back to the Terminal program,
you should see the message "Hello World" displayed there.
Writing to Internal Flash Memory using the BDM
The example program above is a simple one, but the procedures are the same for any size program. When you're
finished modifying and debugging your application software, you will probably want to write it to internal flash memory so
that it runs whenever power is applied to the board.
To do this you should modify your program to initialize all vectors and peripherals necessary to operate. Make sure you
put a reset vector in your program, such as follows:
This will put the address of the label RESET at the reset vector address $FFFE so that it will start there when power is
applied.
Also, don't forget to either Disable or Update the Watch Dog Timer peripheral in your software. This is important because
the HC12B32 enables it by default, but it is automatically disabled when debugging in BDM mode. If you forget to do this,
your software will RESET every couple of milliseconds.
To program your software into Flash memory, install the VPP_EN jumper on the development board to supply power to
erase and program the flash memory.
You should also turn off all Reset macros from loading and configure the BDM software to reset in Single Chip mode. Do
this in the Config menu.
Next, select Erase B32 Flash EEPROM from the Debug menu. Check enable to erase boot area, which will allow the
Reset Vector to be written. Select start to erase the internal flash memory.
You can now program your code into flash memory. Select Program B32 Flash EEPROM from the Debug menu. Select
the Browse button and locate your application program. Since your program will usually be located above $8000, you
should select Upper Memory. Enable program boot area if you are changing the reset or other interrupt vectors, then
select "Start to Program" button.
After programming is complete, you can remove the BDM module and your program should start whenever the
CME12B32 board is powered on.
WARNING
being accidentally erased or damaged.
ORG
DW
: As a safety precaution, ALWAYS remove the VPP_EN jumper after programming to protect the micro from
$FFFE
RESET
; Your reset vector to start your software
7

Related parts for CME-12B32