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
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
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.
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.
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: