Professional Documents
Culture Documents
Chapter 6
Chapter 6
Outline:
§ Introduction
§ Registers
§ Shift Registers
§ Counters
§ Summary
o Parallel communications:
n Provides a binary number through multiple data lines at the same
time.
o Count-down counter
n Also counter, but in reverse direction
4/19/23 AURAK ECE Department 13
ECE331
Ripple Counter
o Circuit with T flip-flops
n Are flip-flops positive or negative edge
triggered?
n Count signal toggles (changes state) A0
n Low-order flip flop provides trigger for
adjacent flip flop
n Not all flops change value
simultaneously
o Lower-order flops change first
o Example:
n Current state: A3A2A1A0 =1011
n Count toggles A0, falling edge
n Falling Edge A0 toggles A1
n Falling Edge A1 toggles A2
n Rising edge A2 – no change on A3
n New state: A3A2A1A0 =1100
o Similar with D flip-flop
4/19/23 AURAK ECE Department 14
ECE331
Ripple Counter another example
o Similar to T flop previous example.
o Circuit:
n AND gates test which bits will
roll over
4/19/23 AURAK ECE Department 17
ECE331
Binary Counter (Synchronous)
o The least significant bit is
complemented for every pulse
o A flip flop in any other position is
complemented when all the other
LSBs are complemented.
o Example
n A3A2A1A0=0011 to A3A2A1A0=0100
count
o A0 changes for each clock pulse as
long as count is enabled.
o A1 changes since A0 was
previously 1
o A2 changes since A1 & A0 were
previously 1
o A3 doesn’t changes since A2 wasn’t
previously 1 like A1 and A0.