# Design A counter

## Homework Statement

1)Design a counter that counts from 0 to 23 Then resets???
2)design a counter that counts as shown below:
(1)to(5)to(7)to(8)to(2)to(3)to(6)to(4)
in another way:
1-5-7-8-2-3-6-4

## Homework Equations

I didn't know weather to use:
1)5-bit synchronous binary counter
3)5-bit asynchronous binary counter

## The Attempt at a Solution

Q1)using a 5-bit binary counter and an AND gate on the outputs to detect when the count of 23 (10111) is reached
Q2)3-bit binary counter

Last edited:

Related Engineering and Comp Sci Homework Help News on Phys.org
berkeman
Mentor

## Homework Statement

1)Design a counter that counts from 0 to 23 Then resets???
2)design a counter that counts as shown below:
(1)to(5)to(7)to(8)to(2)to(3)to(6)to(4)
in another way:
1-5-7-8-2-3-6-4

## Homework Equations

I didn't know weather to use:
1)5-bit synchronous binary counter
3)5-bit asynchronous binary counter

## The Attempt at a Solution

Q1)using a 5-bit binary counter and an AND gate on the outputs to detect when the count of 23 (10111) is reached
Q2)3-bit binary counter
You have the right approach for both. In the 2nd one, you will want to use gates to convert the output of the 3-bit counter to the desired numbers. Write a table of the conversion values, do the K-maps, and make the gate logic for the bits of the final output values.

Well I have just solved the first question but I'm having trouble with the second one...
Thanks A lot :)

berkeman
Mentor
BTW, on the first question. Remember that FFs reset input is asynchronous, so you don't want to reset on the count of 23...