3-Digit Odd Counter Using D-FLip Flops IC's, Digital Logic Design Project
by fahadqalbi in Circuits > Electronics
1138 Views, 1 Favorites, 0 Comments
3-Digit Odd Counter Using D-FLip Flops IC's, Digital Logic Design Project
In this digital logic design project, I have made a 3-digit odd counter using D-Flip Flops. This counter has features like:
- User desired input
- Pause option
- Reset option
Warning/Note
Note: always use resistors to apply active ground at pins of the ICs which require active low logic or at all the inputs to provide zero. Otherwise, ICs will put out garbage values.
Note: please use a proper 5V power supply that has plenty of juice in it so that all the logic ICs perform as intended. I used a bread board power supply to provide power.
Supplies
Things required for this project are:
- D-Flip Flop ICs
- AND Gate ICs
- OR Gate ICs
- NOT Gate ICs
- 555 timer IC
- Resistors for generating Clock and for providing active ground
- Capacitors for generating Clock
- 4-bit Bit Switches
- 7-Segment Displays
- Binary to Seven Segment Decoder ICs
- BCD Counter ICs
- Push Button (toggle)
- ON/OFF slide Button
- Jumper Wires
- Bread Boards
- Bread Board Power Supply
Note: You can use 3-way AND & OR gates, they weren't available for me so i use the 2-input ones.
States
First of all we will write down all the states for our counter. That is how our odd counter using D-Flip Flops will initiate and continue. To make a 3-digit odd counter we only need to change the 1st digit on ones decimal place to odd number. That is the counter starts from 0 and then goes to 1,3,5,7,9 and then again at 1 not zero i.e. because its an odd counter. Now for the tens and hundreds decimal place we will use simple BCD counter IC to count from 0 to 9, the clock for this IC will come from the odd counter, basically we will cascade 2 BCD counters with the ODD counter.
Truth Table
Now the next step is writing the truth table and logic to make the ODD counter work. We achieved this goal as shown in the picture above. Now we know what the inputs for the D-Flip Flops should be.
Karnaugh Map
In this next step we will use the truth table to write down the Karnaugh map to get the logic gate equations so that we can implement our counter using the ICs. K-map is solved in the picture above.
Simulation
The best way to check if we have done the above calculation right is to implement this circuit on simulation software, also it's a good practice to check working behavior of our circuit design before moving to hardware. I used Proteus 8 for this purpose. As you can see in the schematic. Once the simulation works, you can go ahead and implement it on a PCB or Bread Board.
Note: always use resistors to apply active ground at pins of the ICs which require active low logic or at all the inputs to provide zero. Otherwise, ICs will put out garbage values.
Note: please use a proper 5V power supply that has plenty of juice in it so that all the logic ICs perform as intended. I used a bread board power supply to provide power.
The simulation file and other data can be found on this GitHub link:
https://github.com/fahadqalbi/3-Digit-ODD-counter-using-D-flip-flop