Skip to main content

Posts

Showing posts from 2012

PIC 4x4 Keypad Interfacing Tutorial - MikroC

Keypad Library The mikroC PRO for PIC provides a library for working with 4x4 keypad. The library routines can also be used with 4x1, 4x2, or 4x3 keypad. For connections explanation see schematic at the bottom of this page. External dependencies of Keypad Library The following variable must be defined in all projects using Keypad Library: Description : Example : extern sfr char keypadPort; Keypad Port. char keypadPort at PORTD; Library Routines Keypad_Init Keypad_Key_Press Keypad_Key_Click Keypad_Init Prototype void Keypad_Init( void ); Returns Nothing. Description Initializes port for working with keypad. Requires Global variable : keypadPort - Keypad port must be defined before using this function. Example // Keypad module connections char keypadPort at PORTD; // End of keypad module connections ... Keypad_Init();