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.

Push Button Counter and LCD display PIC16F872

Status
Not open for further replies.

Pagli007

Newbie level 3
Joined
Jul 1, 2013
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
33
Hey Guys. I need to program a PIC16F872. I have a vague idea of how to program a PIC. I need to increment count when a button is pushed, there are three buttons, the "count"/amount of pushes should be displayed on an LCD. Then I need a toggle switch to display the total count (on an LCD) of that button which is stored in EEDATA memory. The hardware has been done by somebody else, I'm using PORT B, preferable to use only one port. Thank you for all help that I get. Also, I'd prefer visual or c programming.
 

first of all you have to detect the switch press
you can use polling method for it
ur code may have a line like it
Code:
while(input available on input pin)
{
_delay_ms(20);
if(input available on input pin)
count++;
}
& then you can write code for display count on lcd
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top