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.

Help me design a 2bit up/down counter using only gates

Status
Not open for further replies.

santumevce1412

Junior Member level 2
Joined
Jan 8, 2008
Messages
24
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,445
Design a 2bit up/down counter with clear using only with gates

Pls dont write verilog or vhdl code...
 

updown counter

try google image search engine
 

Re: updown counter

My idea is:

First, a DFF with its reverse output feeding back into its data input forms a frequency divider by two.

Put two such divider in serial gives you a two bit counter, counting in one direction (the data output of 1st DFF should be connected the the 2nd DFF, and both DFF's data output will be the 2 bits output of the counter).

Reset should be connected to both DFF's reset.

To make it counter backward, my suggestion is to invert the output (so that 00 01 10 11 will be 11 10 01 00).
 
Re: updown counter

Equations:

Q0 = CLEAR' Q0'

Q1 = (CLEAR' UP' Q1' Q0') + (CLEAR' UP' Q1 Q0) + ( CLEAR' UP Q1' Q0) + (CLEAR' UP Q1 Q0')
 
Re: updown counter

Here is a 4 bit counter. No problem to remove the two lower flipflops to get a 2 bit counter.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top