BCD Counter Using D Flip Flops

This BCD counter uses d-type flip-flops, and this particular design is a 4-bit BCD counter with an AND gate. BCD counters usually count up to ten, also otherwise known as MOD 10. Since a 4-bit counter counts from binary 0 0 0 0 to binary 1 1 1 1, which is up to 16, we need a way to stop the count after ten, and we achieve this using an AND gate to initiate a reset. The 4-bit binary pattern for decimal ten is 1 0 1 0, and this is the only time when we see this pattern, therefore we can use the 1’s and feed them into an AND gate, which should produce a HIGH output, which can then reset all the flip-flops simultaneously, thereby stopping the count.

Understanding MSB and LSB

Decimal8421
OutputsQ3Q2Q1Q0
PositionMSB  LSB
Binary1010

The first thing to identify is the most significant bit (MSB), and least significant bit (LSB) concerning the outputs Q0, Q1, Q2, Q3. If you do not get this part right, then you will trip-up when it comes to connecting the AND gate.

The way I remember it is that this counter always starts with the smallest number, which appears first at Q0, therefore it has to be the LSB end.

As you can see from the table above, the outputs Q3 and Q1 contain the 1’s and therefore we connect these outputs to the AND gate.

4-bit BCD Counter Truth Table

Decimal8421
OutputsQ3Q2Q1Q0
Count 
00000
10001
20010
30011
40100
50101
60110
70111
81000
91001
101010
RESETzerozerozerozero