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.

Designing a 2 bit digital updown counter using D flip flops

Status
Not open for further replies.

alicia

Newbie level 3
Joined
Oct 28, 2007
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,304
i want to design a 2 bit digital updown counter using D flip flops.
this problem is about designing a volume control which can detect whether it is increasing volume or decreasing volume.
 

alicia

Newbie level 3
Joined
Oct 28, 2007
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,304
Re: up down counter

i want to design 2 bit digital updown counter using D flip flops first .

plusminus, yes it is something like that.
 

plusminus

Full Member level 1
Joined
Jul 27, 2007
Messages
96
Helped
15
Reputation
30
Reaction score
3
Trophy points
1,288
Location
the Netherlands
Activity points
1,804
Re: up down counter

So you're helped or do you need more information?

Make a good debounce circuit (RC network and / or schmitt trigger) from your encoder to the flipflops.
 

alicia

Newbie level 3
Joined
Oct 28, 2007
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,304
Re: up down counter

you helped me a little bit...
but how to use AND gate and OR gate in the circuit?
and if i not mistaken 2 D flip flops are needed..
can you help me...
 

plusminus

Full Member level 1
Joined
Jul 27, 2007
Messages
96
Helped
15
Reputation
30
Reaction score
3
Trophy points
1,288
Location
the Netherlands
Activity points
1,804
Re: up down counter

You need only one D-FF to detect the direction. You can use for example an CD4013 wired as a D-FF. (as in the drawing)
With one of the encoder pulses as a clock and a direction (from the FF) you can make a circuit to count up/down. If you want to control volume use a controller, connect the controller to a digital volume regulator (for example a digital potentiometer with SPI bus) and write some code.

You can offcourse make the FF with logic components like ORs and ANDs.
And also the volume regulator can be made with discrete components.

Can you make more clear what you want to build?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top