User`s manual
2.3 Test Hardware:
To help users up and running, the MiniDragon-Plus3 board comes with many fully debugged,
ready-to-run sample programs including source code. The hardware test program,
test16_P3.asm, simultaneously scans the keypad, plays a song, senses ambient light, changes
7-segment display brightness by adjusting the trimmer pot and vary music playing tempo
according to temperature change.
All sample programs must be run from RAM in EVB mode. In order to run the test program in
EVB mode, the two DIP switches of S7 must be set in the “low” positions.
The steps to run your first sample program are as follows:
1. Click the File button to open the test.asm from c:\MiniDragonP3\D-Bug12_examples.
After the test.asm is loaded into the top window, you can view instructions of how to test
all hardware on the MiniDragon-Plus3 board.
2. Click the Build button to assemble code and generate the test16_P3.s19 file. This is how
you normally generate an s19 file. You can omit this step, because the test16_P3.s19 is
already on your hard disk.
3. Press the reset button on the board, you will see:
D-Bug12 v4.0.0b32
Copyright 1996 - 2005 Freescale Semiconductor
For Commands type "Help"
>
4. Type “LOAD” <Enter>.
5. Click the Build button. Select Download option and browse to the file ‘test16_P3.s19’ for
downloading. If it prompts you with the “save changes?” message, you can ignore that
message and click the “No” answer.
6. After download is done, type “G 2000” <Enter> to run the test program.
All sample programs are developed in RAM. You can try to run a different example program later
after you have finished reading this manual. You should always press the reset button before
downloading a new program, because the new program may not work if an interrupt was enabled
by a previous program.
All example programs are fully debugged, so the assembler won’t generate an error. If you have
an error, even a warning error, in your program, you must correct it before it can generate an s19
file.
16