- Asked 3/22
- 2082 Baisakh · 5 marks
- 2078 Kartik · 7 marks
- 2076 Asoj · 5 marks
Asynchronous mod-12 up counter, positive edge
Short answer
Use four T flip-flops with T = 1. Clock FF0 directly, FF1 from Q0', FF2 from Q1', FF3 from Q2'. Detect state 1100 (12) with a NAND gate to clear all flip-flops, giving a modulo-12 up counter (0-11).
Construct asynchronous T flip-flopped mod-12 up-counter and use positive edge triggered clock.
A mod-12 asynchronous (ripple) up counter counts 0 to 11 (0000 to 1011) and then resets to 0000. Since , 4 T flip-flops are needed. Each flip-flop has T = 1, so it toggles at every active clock edge it receives.
Clock connections for positive edge triggering
In an up counter, a flip-flop must toggle when the previous output goes 1 to 0. With positive (rising) edge triggered flip-flops, this 1-to-0 change of Q is the same instant as the 0-to-1 change of . So:
- FF0 is clocked by the external CLK.
- FF1 is clocked by , FF2 by , FF3 by .
Reset logic
The count must stop at 11, so the first unwanted state 12 = 1100 is detected. In 1100 only Q3 and Q2 are 1 (and no earlier count 0 to 11 has both Q3 and Q2 = 1), so
A 2-input NAND gate drives the active-low CLEAR inputs of all flip-flops. As soon as 1100 appears, the NAND output goes 0 and all flip-flops clear to 0000 (state 1100 exists only for a few ns).
Circuit
T=1 T=1 T=1 T=1
+------+ +------+ +------+ +------+
CLK>|> FF0 | +-->|> FF1 | +-->|> FF2 | +-->|> FF3 |
| Q0'|-+ | Q1'|-+ | Q2'|-+ | |
| CLR' | | CLR' | | CLR' | | CLR' |
+------+ +------+ +------+ +------+
Outputs: Q0 (LSB), Q1, Q2, Q3 (MSB)
Q3 --+
+-->[NAND]--> CLR' of all four flip-flops
Q2 --+
Count sequence
| CLK | Q3 | Q2 | Q1 | Q0 | Count |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 0 | 0 | 1 | 1 |
| 2 | 0 | 0 | 1 | 0 | 2 |
| 3 | 0 | 0 | 1 | 1 | 3 |
| 4 | 0 | 1 | 0 | 0 | 4 |
| 5 | 0 | 1 | 0 | 1 | 5 |
| 6 | 0 | 1 | 1 | 0 | 6 |
| 7 | 0 | 1 | 1 | 1 | 7 |
| 8 | 1 | 0 | 0 | 0 | 8 |
| 9 | 1 | 0 | 0 | 1 | 9 |
| 10 | 1 | 0 | 1 | 0 | 10 |
| 11 | 1 | 0 | 1 | 1 | 11 |
| 12 | 0 | 0 | 0 | 0 | 0 |
At the 12th clock the counter reaches 1100 for a moment and is immediately cleared to 0000.
Timing diagram
1 2 3 4 5 6 7 8 9 10 11 12
CLK _|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|
Q0 _|‾‾‾|___|‾‾‾|___|‾‾‾|___|‾‾‾|___|‾‾‾|___|‾‾‾|__
Q1 _____|‾‾‾‾‾‾‾|_______|‾‾‾‾‾‾‾|_______|‾‾‾‾‾‾‾|__
Q2 _____________|‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾|__________________
Q3 _____________________________|‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾|__
Q0 toggles at every rising edge of CLK; Q1 toggles when Q0 falls; Q2 when Q1 falls; Q3 when Q2 falls. Q3 is high for counts 8 to 11, so Q3 has frequency . (In a real ripple counter each change is delayed by one flip-flop delay from the previous stage.)
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Asynchronous mod-12 up counter using JK · Digital Logic, chapter 8
- Asynchronous mod-12 down counter · Digital Logic, chapter 8
- Ripple counter; asynchronous mod-11 up counter · Digital Logic, chapter 8
- Comb vs seq; asynchronous mod-12 counter · Digital Logic, chapter 8 · asked 3×
- Synchronous circuits; asynchronous mod-12 counter · Digital Logic, chapter 8 · asked 2×
- MOD-6 synchronous counter, negative edge JK · Digital Logic, chapter 8 · asked 4×
- Edge triggered D flip-flop with preset, clear · Basic Electronics Engineering, chapter 6