Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

enable interuupt change state tu use keypad with pic16f876 and lcd

Status
Not open for further replies.

Fatima Zahra Serji

Newbie level 4
Joined
Sep 8, 2013
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
46
hello every one,
my objectif is to write a program with mikroC pro for un pic16F876,LCD and keypad...i tried to use the library keypad earldy existed in mikroC pro when i simultated in ISIS is working perefectly but when i put my program in hardware is not work i don't know why so i tried to look for an other solution by using interrupt PortB change state (RB4, RB5,RB6,RB7) but when i similated the program in ISIS i don't see any change of state at this four Ports.
to be more clear i enable bit INTCON.RBIE, INTCON.GIE at function main
i tried to test INTCON.RBIF in onother function called void interrupt() if is true that mean i recieve an interrupt
but nothing work so can i any one give my any advice or show me where i made mistake ????
 

Did you use pull down resistors in hardware??
MikroC Pro keypad libraries are 100% working.. I tried it in proteus and real hardware..

thank you for your answer...but what do you mean by using pull down resistors and where should i put it ?!!!
 

thank you soo much for your answer is herpfull and my keypad is working...

but i would like to see a series of number in my lcd so i noticed that when i pressed in first time the number appears but when i pressed for second time my last number removed and replaced by new one and when i pressed for third time nothing change i can see my series of number i pressed...

so do you have any idea , how can i hold the number of my first press !!!!!
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top