- Asked 5/22
- 2080 Baisakh · 6+2 marks
Mod-5 synchronous up counter using SR
Short answer
Three SR flip-flops with common clock. Equations: S2=Q1·Q0, R2=Q0'; S1=Q1'·Q0, R1=Q1·Q0; S0=Q2'·Q0', R0=Q0. Sequence: 000→001→010→011→100→000. Unused states 101→110→010 and 111→100 ensure self-starting operation.
Design a synchronous mod-5 up-counter using SR flip-flops and draw its timing diagram.
A synchronous mod-5 up counter counts 000 → 001 → 010 → 011 → 100 → 000 with all flip-flops on one clock. Three SR flip-flops () are needed (); states 101, 110, 111 are don't cares.
Step 1: SR excitation
| Q → Q+ | S | R |
|---|---|---|
| 0 → 0 | 0 | X |
| 0 → 1 | 1 | 0 |
| 1 → 0 | 0 | 1 |
| 1 → 1 | X | 0 |
Step 2: Excitation table
| Present Q2Q1Q0 | Next Q2Q1Q0 | S2 | R2 | S1 | R1 | S0 | R0 |
|---|---|---|---|---|---|---|---|
| 000 | 001 | 0 | X | 0 | X | 1 | 0 |
| 001 | 010 | 0 | X | 1 | 0 | 0 | 1 |
| 010 | 011 | 0 | X | X | 0 | 1 | 0 |
| 011 | 100 | 1 | 0 | 0 | 1 | 0 | 1 |
| 100 | 000 | 0 | 1 | 0 | X | 0 | X |
Step 3: K-maps
| S0: Q2 / Q1Q0 | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 0 | 1 | 0 | 0 | 1 |
| 1 | 0 | X | X | X |
| R0: Q2 / Q1Q0 | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 0 | 0 | 1 | 1 | 0 |
| 1 | X | X | X | X |
| S1: Q2 / Q1Q0 | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 0 | 0 | 1 | 0 | X |
| 1 | 0 | X | X | X |
| R1: Q2 / Q1Q0 | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 0 | X | 0 | 1 | 0 |
| 1 | X | X | X | X |
| S2: Q2 / Q1Q0 | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 |
| 1 | 0 | X | X | X |
| R2: Q2 / Q1Q0 | 00 | 01 | 11 | 10 |
|---|---|---|---|---|
| 0 | X | X | 0 | X |
| 1 | 1 | X | X | X |
For , both and cover the 1-cell. With the unused state 110 would hold itself forever (lock-out), so is chosen.
Step 4: Equations
S and R of each flip-flop are never 1 together in any state, so the forbidden input S = R = 1 never occurs.
Step 5: Circuit diagram
+-----+ +-----+ +-----+
S0>|S Q|-Q0 S1>|S Q|-Q1 S2>|S Q|-Q2
| FF0 | | FF1 | | FF2 |
R0>|R | R1>|R | R2>|R |
+--o--+ +--o--+ +--o--+
| | |
CLK---+-------------+-------------+
S0 = Q2'.Q0' R0 = Q0
S1 = Q1'.Q0 R1 = Q1.Q0
S2 = Q1.Q0 R2 = Q0'
Unused states: 101 → 110 → 010, 111 → 100, so the counter is self-starting.
Step 6: Timing diagram
CLK __|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾|_|‾
Q2 ________________|‾‾‾|___________
Q1 ________|‾‾‾‾‾‾‾|___________|‾‾‾
Q0 ____|‾‾‾|___|‾‾‾|_______|‾‾‾|___
Cnt 0 1 2 3 4 0 1 2
is high for one clock period in every five ().
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Mod-6 synchronous up counter using T · Digital Logic, chapter 8 · asked 4×
- Counter; MOD-6 synchronous counter · Digital Logic, chapter 8 · asked 3×
- SR equation; mod-5 counter using D flip-flops · Digital Logic, chapter 8
- Mod-5 Gray code synchronous up counter · Digital Logic, chapter 8
- BCD synchronous counter using T flip-flops · Digital Logic, chapter 8
- Mod-5 synchronous counter using JK · Digital Logic, chapter 8 · asked 4×
- Sync vs async; mod-6 synchronous counter (JK) · Digital Logic, chapter 8
- Asynchronous mod-12 up counter using JK · Digital Logic, chapter 8