Dragon 12 Plus Sample Programs and Support

Which one to buy?

You have two options for Dragon12-Plus board:
1)Dragon12-Plus Kit pre-installed with D-Bug12 for AsmIDE or MiniIDE [DRAGON12P-USB-DB] Part Number DVB-007DB
Trainer/Development kit for students and schools. It is preinstalled with Bootloader and the D-Bug12 monitor for ASCII based terminal programs. It will not work with Code Warrior and Matlab http://www.evbplus.com/hcs12_9s12_store/students.html
Use this trainer if you want to program the HCS12 in Assembly Language only. In that case you must use AsmIDE or MiniIDE assemblers. Click here for tutorials and sample programs.

2)Dragon12-Plus Kit for CodeWarrior, Matlab, and Simulink [DRAGON12P-USB-SM] Part Number DVB-007SM
Trainer/Development kit for students and schools. It is preinstalled with the serial monitor for working with CodeWarrior, Matlab, and Simulink. It does not work with any ASCII based terminal programs http://www.evbplus.com/hcs12_9s12_store/students.html

We are committed to support both of the above boards since they have great features and excellent price.

Dragon 12 Plus User Manual (pdf)
Dragon 12 Plus Schematic (zip)

Using CodeWarrior

In CodeWarrior when you create a new project in Assembly, it looks intimidating. Delete everything and copy and paste this Generic Shell or this Dragon12 Shell

Assembly Programs for Testing Dragon12 on-board Peripherals Using CodeWarrior

Open CodeWarrior and Create a New project in Assembly. Under Sources Click on main.asm and bring up the main.asm. Make sure you are in HCS12 Serial Monitor mode. Now:
a) Delete everything in main.asm,
b) Copy and paste any of the following programs into main.asm,
c) F7(to make), F5(to download), and F5(to run) to execute the program.

Timer Sample Programs:

Interrupt Sample Programs:

For Programming of RTC (DS1307, I2C device) and DAC (LTC1661, SPI device) on Dragon12 board see the following link:
http://quantumfuture.dyndns-web.com/projects/dragon

C Programs for Testing Dragon12 on-board Peripherals Using CodeWarrior

Open CodeWarrior and Create a New Project in C (use options minimum startup code and small). Under Sources Click on main.c and bring up the main.c Make sure you are in HCS12 Serial Monitor mode. Now:
a) Delete everything in main.c,
b) copy and paste any of the following programs into main.c,
c) F7(to make), F5(to download), and F5(to run) to execute the program.

Timer Sample Programs:

Interrupt Sample Programs:

For Programming of RTC (DS1307, I2C device) and DAC (LTC1661, SPI device) on Dragon12 board see the following link:
http://quantumfuture.dyndns-web.com/projects/dragon


If you are running the codes on Dragon-12 Plus board with CodeWarrior click on the source code for the textbook.


Using AsmIDE and MiniIDE

The Dragon12 plus with D-Bug12 comes with a CD. It has AsmIDE. For MiniIDE you can download it from http://www.mgtek.com/miniide/. Use this shell program for AsmIDE.

Assembly Programs for Testing Dragon12 on-board Peripherals Using AsmIDE and MiniIDE

The following sample programs are modified for AsmIDE and MiniIDE Assemblers. They must be run on the Dragon12 Plus board with the D-Bug12 Monitor program.

Timer Sample Programs:

Interrupt Sample Programs:

Click Here for AsmIDE/MiniIDE versions of text programs