Datasheet

KEYPAD LIBRARY
The mikroC PRO for AVR provides a library for working with 4x4 keypad. The library
routines can also be used with 4x1, 4x2, or 4x3 keypad. For connections explana-
tion see schematic at the bottom of this page.
Note: Since sampling lines for AVR MCUs are activated by logical zero Keypad
Library can not be used with hardwares that have protective diodes connected with
anode to MCU side, such as mikroElektronika's Keypad extra board HW.Rev v1.20
External dependencies of Keypad Library
Library Routines
- Keypad_Init
- Keypad_Key_Press
- Keypad_Key_Click
299
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
The following variable must
be defined in all projects
using Keypad Library:
Description : Example :
extern sfr char
keypadPort;
Keypad Port.
sfr char keypadPort
at PORTB;
extern sfr char
keypadPort_Direction;
Direction of the Key-
pad Port.
sfr char
keypadPort_Direction
at DDRB;