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.

counter in 7segment display(common cathode)

Status
Not open for further replies.

suvaraj

Member level 2
Joined
Dec 24, 2010
Messages
50
Helped
4
Reputation
8
Reaction score
4
Trophy points
1,298
Location
erode
Activity points
1,580
hi to all
i'm using pic16f873a for counter in 7segment display in c language(common cathode).use 4017 and 2003 ic for segment glow(to giv a clock signal and reset signal to 4017).then 5 keys are series connection and connected to RA2
(key1:viewkey, key2:segment moving,key3:incrementkey,key4:decrement key,key4:reset).
but i have a doubt.that is if i press a first key means first segment displays like s,l,r.then 2nd key press means segment moving,3rd key for inc&4th key for decrement,5th key for reset.but the hardware consists of one line for keys.
how to i write program?pls help me

thanks to all
 
Last edited by a moderator:

hi suvaraj,

can't you use other port pins of microcontroller for other keys...?

or you can post your circuit diagram here.
 
Here is the schematic:
 

Attachments

  • untitled.bmp
    3 MB · Views: 141
  • counter.txt
    991 bytes · Views: 130

why dont you use other port pins of microcontroller like the diagram i have shown here?
 

Attachments

  • untitled.zip
    20.9 KB · Views: 125
suvaraj, the controller will not differentiate between the keys because, all keys are connected to a single input pin. Thus, regardless which key is pressed, the same task will always execute.
As I can see from the schematics, you have many unused input/output pins. So, why don't you use 5 inputs for the 5 keys?!!
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top