Tutorial 5: Custom Keypad

Customised Keypads are a good candidate for construction with an EXTERN component. This Keypad is a simple 4 row x 4 column keypad but can easily be expanded for other keypad configurations. The sample PIC Decoder scans the KEYPAD and outputs the currently depressed key on the DIGITAL8 component.

 Screenshot_1.gif (26734 bytes)

Download EXTERN_Tutorial5.zip and unzip into folder <your path>\Tutorial 5

Filename Version Description
keypad.pjt MPLAB Project of sample keypad decoder driver
keypad.asm PIC16F877 Assembler code of sample sample keypad decoder driver for the CustomKeypad component
keypad.bmp The bitmap used as the icon for the CustomKeypad  in a Virtual Breadboard.
keypad.lst Compiled LST of CustomKeypad sample driver
keypad.HEX Compiled HEX of CustomKeypad sample driver
CustomKeypad.vbp Visual Basic Project for building the CustomKeypad external component
CustomKeypad.exe CustomKeypad executable external component
frmCustomKeypad.frm The main Visual Basic form of the CustomKeypad Visual Basic Project.
frmCustomKeypad.frx The main Visual Basic form binary image property bag
tut5.vbb Virtual Breadboard example using the CustomKeypad component and the keypad sample driver

 Open tut5.vbb in Virtual Breadboard

Start Virtual Breadboard and open the <your path>\Tutorial 5\tut5.vbb file from Virtual Breadboard and click RUN

Code Walkthrough

Methods Demonstrated

PinsAreOpenCircuit

PinsAreLinked

ComponentIsAsynchronousActive

setIconImage

Project Idea's