* * Test.asm ------- Test program for FOX11 board with Wytec Phantom Monitor * * Function: This is the factory test program for checking on-board * hardware. It reads the DIP switch of port C, displays its * status on the PB0-PB7 LEDs of port B. It tests the pusubuttons * PC0,PC1,PA0 and the LCD display. * It scans a keypad and output the key number in binary * format on the PB0-PB4 LEDs while playing a song. It changes * display's brightness by adjusting the trimmer pot. * * Instructions: If you have a 4 x 4 keypad, connect it to the keypad header J6. * Before running the test program, place all individual DIP * switches at the upper positions. * * 1. After running the test program, test each individual switch on the * DIP switch and observe the LED status on the PB0-PB7. * LCD display shows: "PRESS PA0 SWITCH" * "TO CONTINUE TEST" * * 2. Test the pushbutton switches PC0 and PC1 only when the * PC0 and PC1 switches of the DIP switch are in upper position. * LCD display shows: "PRESS PA0 SWITCH" * "TO CONTINUE TEST" * * 3. Press the pushbutton switch PA0 and music should come out. * The PB0-PB7 LEDs should chase. * * 4. Adjust the trimmer pot VR1 to change PB0-PB7 LEDs' brightness. * If you press any key on the keypad, the LEDs should show * the key number that you pressed in binary format. Key number 00 * is shown as $10. * * * Ex1.asm ------- Example program 1 for FOX11 board with Wytec Phantom Monitor * * Function: Reads the DIP switch via port C and displays its status * on the PB0-PB7 LEDs. * * * Ex2.asm -------- Example program 2 for FOX11 board with Wytec Phantom Monitor * * Function: Makes port B as a binary counter. * * * * Ex5.asm -------- Example program 5 for FOX11 board with Wytec Phantom Monitor * * Function: Adjust the trimmer pot VR1 to vary the voltage on the PE7 * of the ADC and to change brightness of the PB0-PB7 LEDs * * * * Ex6.asm -------- Example program 6 for FOX11 board with Wytec Phantom Monitor * * Function: Plays a song via OC3 (PA5) * * ; Kpad4X4.asm --- keypad demo program for FOX11 board with Wytec Phantom Monitor ; ; Function: It scans a keypad and outputs the key number in binary ; format on the PB0-PB4 LEDs ; ; Instructions: If you have a 4 x 4 keypad, connect it to the keypad header J6. ; If you press any key on the keypad, the LEDs should show ; the key number that you pressed in binary format. Key number 00 ; is shown as $10. * * 5s_delay.asm --- 5 second delay timer for FOX11 board with Wytec Phantom Monitor * * Function: 5 second delay routine using output comparator OC2 * The PB5 LED will be turned on immediately after running * the program. It will be turned off after 5 second delay. * Change the DELAY_TIME to 18000 will delay 3 minutes * * * * Lcd1.asm ------- 16X2 LCD sample program 1 for FOX11 board with Wytec Phantom Monitor * * Function: This is the simplest way to displays a message on a * 16X2 LCD display module. The cursor is off. * If more controls to the display are needed, see the LCD2.asm * * The LCD driver source code is included in the example program * c:\Ep2IDE\Ex_BUFFL\ LCD2.asm. * * * * Lcd2.asm ------- 16X2 LCD sample program 2 for FOX11 board with Wytec Phantom Monitor * * Function: This program displays a message on a 16X2 LCD display module * by calling sel_inst(instruction), sel_data and wrt_pulse * subroutines. These subroutines are used for controlling * a different type of LCD display. * * The LCD driver source code is included in this program * * * * Echo.asm ------ Test BUFFALO I/O for FOX11 board with Wytec Phantom Monitor * * Function: Reads keyboard input and output it to PC's CRT screen. * works like a typewriter. * * When a BUFFALO output routine is called by user program, * the PC's CRT will switch to a new output screen to display * the characters. It will restore the debugger screen when the * program is stopped. * * After user program is stopped by esc key, it must be * re-started from the beginning in order to show the new * output screen. * * All EVB/EVBU BUFFALO I/O routines are located at $0FA0-$0FCF * in stead of $FFA0-$FFCF. * * * * Tutor1.asm ------ Tutorial program 1 for FOX11 board with Wytec Phantom Monitor * * Function: This program sums up 4 numbers and store the sum * at the RAM locations \sum (0 and 1), its average at * the RAM locations \average (2 and 3). * * Instructions: 1. Use P command to enter the addresses to be * monitored, such as p \sum, \average. * 2. Use B command to set breakpoints at addresses * \next and \finish, such as B \next, B \finish. * For your convenience, we did above 2 steps for you * * 3. Enter G \start command to run the program * until it stops at a breakpoint address, then enter * G command to run and until it stops at another * breakpoint address. Repeat the G command until it * stops at \finish. * when it stops at each breakpoint address, you can * watch the values at the locations \sum and \average. * * You can also verify the result using the F7 math * function key at each stop. * * * * Tutor2.asm ------ Tutorial program 2 for FOX11 board with Wytec Phantom Monitor * * Function: This program flashes the PB5 LED when the PA0 switch is down. * It shows how to use a subroutine call and change the contents * of the RAM location \fls_rate to vary flash rate. * * Instructions: 1. Use B \pa0_low command to set a breakpoint at the address * \pa0_low. * 2. Enter G \start command to run the program * and nothing should happen. Then press and hold down the * switch PA0, the program should stop at the * address \pa0_low, because the PA0 is normally high, * it becomes low when it's down. * 3. Remove the breakpoint address \pa0_low by using K * command, such as K \pa0_low. After the breakpoint is * removed, then enter G command to run the program again. * 4. At this time, the PB5 LED should flash when the pa0 switch * is down. * 5. Stop the program by ESC key and use E command to * change the value of the \fls_rate from $8B to $FF, * such as E \fls_rate. * 6. Run the program by entering G command and the LED should * flash slower when the PA0 switch is down. * 7. Repeat the steps 5 and 6 to change the fls_rate from * $FF to $40, and the LED should flash faster. *