How to Design Various 4-bit Counters with Directional Inputs?

  • Thread starter olimain
  • Start date
In summary: Hope this helps.Thanks, that does help a little. In the second design, how would you make it so that it counts up instead of down?
  • #1
olimain
8
0
Please help me urgently - D-Type Latch problem

Hi all,

I have just descovered this wonderful forum and am hoping you can save my degree! I have to have this problem finished in a matter of hours and just can't figure out the schematics/truth tables. Please please please take the time to help in any way with any part if you can - it shouldn't be too hard for some of you experts and I would be eternally grateful. Thanks in advance,

Oliver

Here are the tasks:

Design 1
Design a 4-bit BCD counter that counts from 0 to 9. After 9 the counter should cycle through the same sequence again.

Design 2
Design a 4-bit binary counter which counts in binary from 0 to 15 then cycles through the same sequence again.

Design 3
Design a 4-bit BCD counter that has a direction input (which determines the direction of the count). If direction = 0 the counter should count down, alternatively if direction = 1 then the counter counts up. The input may change at any time and the count must change appropriately at the next clock edge.

Design 4
Design a 4-bit binary counter that has a direction input (which determines the direction of the count). If direction = 0 the counter should count down, alternatively if direction = 1 then the counter counts up. The input may change at any time and the count must change appropriately at the next clock edge.
 
Engineering news on Phys.org
  • #2
Hi,

Have you no ideas what so ever?

Do you have to use d-types for the assignment?

Are the counters synchronous or asynnchronous (do they need a clock input) ?

Try researching D Type and JK counter circuits online, there's plenty of examples out there.
 
  • #3
Thanks for your reply, sorry, they are synchronous (do require a clock input) and all have to use D-Type latches, not JK flipflops. I have searched the net and come up with nothing which seems to help but this website. And no, I really don't know what to do - starting to get distraught about it all!

O
 
  • #4
This is not that bad, follow the procedure in your book word for word.

draw the state diagram, and use the excitation table for D latch to derive your equations.
 
  • #5
For 1. - just think, you need to count from binary 0000 to 1001. After this count sequence the counter should reset. Couldn't the two outputs that are high (that represent decimal 9) be used to reset the count?
 
  • #6
Thank you for your reply, and I would imagine this is how one would do it however I am stuck as to how one would draw the circuit as a schematic as digital electronics is not my strongest subject! Would anyone be able to show me an example please?

Thanks in advance.

Oliver
 
  • #7
Right, managed to do design 1. Any ideas on the second?

Thanks
 
  • #8
In the first counter you have to use four D- flip-flops which reset after 1001, that is as it reaches 1010 it is made into reset condition. For that you can pass the MSB flip-flop and 2 flip-flop output into a AND filter whose output is put into clear of all the flip-flops. In that way as the both the flip-flops output is 1 AND gate will pass 1 to clr of all flip-flops thus the counter is reset.
 
  • #9
For the second counter make a simple counter using 4 flip-flops without reset condition and yu get the counter that counts upto 15.
 

FAQ: How to Design Various 4-bit Counters with Directional Inputs?

What is a D-Type Latch?

A D-Type Latch is a type of digital logic circuit that is used to store and transfer binary data. It is made up of two cross-coupled NOR gates, with one gate acting as the "set" input and the other acting as the "reset" input. The output of the latch will either be a 1 or 0, depending on the inputs and the current state of the latch.

What is the purpose of a D-Type Latch?

The purpose of a D-Type Latch is to store and transfer binary data in a digital system. It can be used to hold a single bit of information, such as a 1 or 0, until it is needed for further processing. It is commonly used in applications such as memory storage and data transfer.

What is a "ly" in the context of a D-Type Latch problem?

In the context of a D-Type Latch problem, "ly" most likely refers to a typo or misspelling of the word "logic." It is possible that the person asking for help is having trouble with the logic of their D-Type Latch circuit and needs assistance in troubleshooting or understanding its operation.

What are some common problems with D-Type Latches?

Some common problems with D-Type Latches include unstable outputs, timing issues, and incorrect logic levels. These can be caused by issues such as incorrect wiring, faulty components, or incorrect design. It is important to carefully check the circuit and troubleshoot any potential problems to ensure proper operation.

How can I resolve a D-Type Latch problem?

To resolve a D-Type Latch problem, it is important to carefully analyze the circuit and identify any potential issues. This may involve checking for correct wiring, testing components, and verifying the logic levels. If necessary, the circuit may need to be redesigned or modified. It can also be helpful to seek assistance from other experts or resources, such as online forums or textbooks.

Back
Top