;; Test.asm --- Test program for the MiniDRAGON+ Rev. D board ; ; Function: This is the factory test program for checking on-board ; hardware. It checks the 2-pos DIP switches AN5-AN6, ; 2 pushbuttons AN3-AN4 and the LCD display. ; It scans the switches and keypad. Shows their functions and ; displays the key number on the 7-segment LED display while ; playing a song. It allows to adjust the trimmer pot to change ; LED display's brightness. ; ; The switches are software de-bounced for better reliability ; ; Instructions: ; If you have a 4 x 4 keypad, connect it to the keypad header J22. ; The middle 8 pins of the 10-pin keypad cable are keypad connections. ; The pin 1 and pin 10 are not used. ; ; 1. After running the test program, the 7-segment LED display will ; count up from hex number 0 to F and the music will come out. ; LCD display shows: " S1=UP, S2=DOWN " ; "S3=FAST, S4=SLOW" ; 2. press the S1 pushbutton, the number counts up from hex 0 to F. ; press the S2 pushbutton, the number counts down from hex F to 0. ; ; 3. Short the S3, the count speed is 250ms per count (fast). ; Short the S4, the count speed is 750ms per count (slow). ; ; 4. Adjust the trimmer pot, the 7 segment LED display's brightness ; should change. ; ; 5. Press the keypad, the 7-segment LED display will show key number. ; ; Ex1.asm ---- Example program 1 for the MiniDRAGON (c)2002, EVBplus.com ; ; Function: Reads 2-position DIP switch and 2 pushbutton switches ; via analog port ATD0 and displays the results on the 7-segment ; LED at port H ; The LED is normally off. ; When the sw1 is down the segment a is lit ; When the sw2 is down the segment g is lit ; When the sw3 is short the segment e is lit ; When the sw4 is short the segment c is lit ; ;; The switches are not software de-bounced for simplicity. The switches are ; software de-bounced in the TEST.ASM for better reliability. ; ; ; ; Ex2.asm ---- Example program 2 for the MiniDRAGON (c)2002, EVBplus.com ; ; Function: Flash the word "HELP" on the 7-segment LED ; ; Ex3.asm and ex4.asm are not available on the MiniDRAGON board ; ; Ex5.asm ---- Example program 5 for the MiniDRAGON (c)2002, EVBplus.com ; ; Function: User can adjust the trimmer pot VR1 to vary the voltage on ; the AN7 (PAD07) of the ADC and to change brightness of the ; 7 segment LED display ; ; Ex6.asm ---- Example program 6 for the MiniDRAGON (c)2002, EVBplus.com ; ; Function: Plays a song via timer5 (PT5) ; ; ; ;5s_delay.asm 5 second delay timer for the MiniDRAGON (c)2002, EVBplus.com ; ; Function: 5 second delay routine using output comparator 6 ; The 7-segment LED will be turned on immediately after running ; the program. It will be turned off after 5 second delay. ; Change the DELAY_TIME to 60000 will delay 1 minute ; 500Hz.asm --- Square wave generator for the MiniDRAGON (c)2002, EVBplus.com ; ; Function: 500 Hz square wave routine using output comparator 6 ; The PH0 LED (segment a) is repeatedly turned on for 1 ms ; and then turned off for 1 ms. ; User can use a scope to observe the 500Hz square wave ; on the PH0 (pin 52 of the MCU). ; The PH3 LED (segment d) is repeatedly turned on for 250 ms ; and then turned off for 250 ms ; User can use a scope to observe the 2Hz square wave ; on the PH3 (pin 49 of the MCU). ; ; upcase.exe -- converts a text file from lower case to upper case. ; Format: upcase input_file output_file ; lowcase.exe - converts a text file from upper case to lower case. ; Format: lowcase input_file output_file ;