8052.com SBC - Keypad Demo for SBCMON
SBC Hardware: Main
| SBC Schematic/Parts List
| Technical Details
| All pages in PDF format
SBC In-System Programming: Information
| VisISP-52 ISP Application
SBCMON Monitor/Operating System: Main Page |
Manual
SBCMON-based Software: SBCMON Monitor |
Keypad Demo
| LCD Echo Demo
| Hardware Clock
| Software Clock
SBCMON-based PS/2 Software:
PS/2 Comm Monitor
| PS/2 Keyboard
| PS/2 Mouse
ORDER 8052.com SBC: PCB, KIT OR BUILT SBC AVAILABLE FOR PURCHASE
Download Keypad Demo for SBCMON
You may download either the source code or the ready-to-use Intel-Hex version of the
keypad demonstration program. The Intel-Hex version may be loaded into SBCMON's
memory using the L or Q commands. Download the source ASM program if you'd
like to see the code that makes the keypad demo work.
What Does this Program Do?
This is a 4x4 keypad demonstration program which will read keypresses on the keypad
and echo them to the serial port where they may be viewed with the PC terminal
program. The code includes simple debounce logic to filter phantom keypresses that
would otherwise be observed due to the mechanical bounce of the key itself.
The routine will exit and return to SBCMON's main menu when the user presses any
key in the PC terminal program.
Concepts Demonstrated by Program
This program demonstrates the following concepts:
- Reading a 4x4 keypad.
- Memory-mapped device & memory-mapped I/O.
- Key debounce.
- Code look-up table.
- Delay based on instruction loops (1/20th of a second).
(C) Copyright 1997 - 2008 by Vault Information Services LLC. All Rights Reserved.
Information provided "as-is" without warranty. Please see details.
Contact us for usage and copy permission.
|