Dragon-12P tutorial
This tutorial will guide through the steps required to get Dragon-12P board (further referenced as D12P) working with Code Warrior through HCS12 serial monitor.
We will not use DBug12 or BDM interfaces to the board. In any documentation that you find, including the textbook, only information about using HCS12 serial monitor is relevant.
D12P information:
Ø Here is the Web page describing the D12P board.




If your computer does not have a serial port:
Ø Use a computer in CAMP195
Ø Get a serial-to-USB adapter




Click Ok and set the proper COM
port number in the Monitor Setup window.
Note: your COM port number may be other
than COM1





Name the project as you like, for example, test
Ø Select MC9S12DG256B
Ø Assembly language
Ø Absolute assembly
Ø Full chip simulation and HCS12 serial monitor

When you edit the
code make sure that everything between ifdef
_HCS12_SERIALMON
and endif is not changed!!! This is true for all
future projects as well.


Start the Debugger. Run the program.
Now every change in the state of the DIP switches should be reflected on the LEDs.

Problems???
Remember that I have an open door policy and you do not have wait until office hours to ask questions.