* * The assembler in AsmIDE will generate s19 file, lsiting file, symbol file * and parameter file. Only s19 file is used for debugging under BUFFALO monitor, * other files are not needed. * * Test.asm ------- Test program for FOX11 board with BUFFALO 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 BUFFALO 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 BUFFALO monitor * * Function: Makes port B as a binary counter. * * * * Ex5.asm --------- Example program 5 for FOX11 board with BUFFALO 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 BUFFALO monitor * * Function: Plays a song via OC3 (PA5) * * ; Kpad4X4.asm ---- keypad demo program for FOX11 board with BUFFALO 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 with BUFFALO 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 for FOX11 board with BUFFALO 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 display are needed, see the LCD2.asm * * * * Lcd2.asm -------- 16X2 LCD sample program for FOX11 board with BUFFALO monitor * * Function: This program displays a message on a 16X2 LCD display module * by calling sel_inst(instruction), sel_data wrt_nibble and wrt_byte * subroutines. These subroutines are used for controlling * a different type of LCD display. * * *