150 likes | 525 Views
Counter. Section 6.3. Types of Counter. Binary Ripple Counter Synchronous Counter. Binary Ripple Counter. Respond to negative edge of the clock. Reset. 0. Binary Ripple Counter. D 0 (n+1) =A 0 (n) ’ The first flip-flop always toggles itself. 1. 1. 0. 2. 1.
E N D
Counter Section 6.3
Types of Counter • Binary Ripple Counter • Synchronous Counter
Binary Ripple Counter Respond to negative edge of the clock Reset
0 Binary Ripple Counter D0(n+1)=A0(n)’ The first flip-flop always toggles itself. 1 1 0 2 1 Each D flip-flop is designed to flip Itself. 0 3 1 0 4 1 Each D flip-flop is triggered by the output of the previous DFF. Reset
0→1 Binary Ripple Counter 1 1→0 0 →0 2 1 1→1 0 →0 3 1 →1 0 →0 4 1 →1 Reset
0→1 → 0 Binary Ripple Counter 1 1→0 → 1 0 →0 →1 2 1 1→1 →0 0 →0 →0 3 1 →1 →1 0 →0 →0 4 1 →1 →1 Reset
Binary Ripple Counter 1 Each DFF is triggered by the previous DFF. 2 3 Respond to negative edge of the clock 4 Reset
Sequence Start from 0, advance to 15, go back to 0.
Count Down It is the rising edge that triggers the flip-flop. So remove the bubble. Make the DFF positive edge triggered.
Synchronous Counters • Synchronous counters are different from ripple counters in that clock pulses are applied to the input of all flip-flops.
Binary Counter 1 0 1 0 0 2 0 0 3 0 0 4
Binary Counter 1 0→1 1 0 →0 0→1 2 0 →0 0 →0 3 0 →0 0 →0 4
1 0→1 →0 1 0 →0 →1 0→1 → 0 2 0 →0 →0 0 →0 →0 3 0 →0 →0 0 →0 →0 4