keypad programming

General discussion on mikroC.
Post Reply
Author
Message
ansiya
Posts: 3
Joined: 04 Dec 2010 13:30

keypad programming

#1 Post by ansiya » 04 Dec 2010 14:21

I was new in mikroc.I want a 4x3 keypad program in pic16f877a using interrupts and the key pressed will be displayed in the LCD.It will be more better if you provide necessary explanations.Keypad is connected to port d & LCD to port b.The hardware design is included here.
Hope anyone will help you,thank you

KaranSoin
Posts: 130
Joined: 07 May 2010 22:27
Location: Melbourne, Australia

Re: keypad programming

#2 Post by KaranSoin » 11 Dec 2010 23:56

briefly:

Keypad goes to PORTB (not PORTD)
LCD goes to PORTD

Kepad columns connect to PORTB_0 to PORTB_3
Kepad rows connect to PORTB_4 to PORTB_7 (these have internal pullup resistors on them).


libraries for both LCD & Keypad are provided in the MikroC (along with schematics & examples)



cheers

Post Reply

Return to “mikroC General”