1. MSI Shift Registers
• 74LS194 4-Bit
Bidirectional Universal
Shift Register
• may be used in the
following data register
transfers
– serial-serial,
– shift left,
– shift right,
– serial-parallel,
– parallel-serial,
– and parallel-parallel
1
14. Ring Counter
• A ring counter is a loop of flip-flops interconnected in such
a manner that only one of the devices may be in a specified
state at one time
• If the specified state is HIGH, then only one device may be
HIGH at one time.
• As the clock, or input, signal is received, the specified state
will shift to the next device at a rate of 1 shift per clock, or
input, pulse.
14
22. States of an 4-bit Johnson counter
State Q3 Q2 Q1 Q0 Decoding
Name
S1 0 0 0 0 Q3’•Q0’
S2 0 0 0 1 Q1’•Q0
S3 0 0 1 1 Q2’•Q0
S4 0 1 1 1 Q3’•Q2
S5 1 1 1 1 Q3•Q0
S6 1 1 1 0 Q1•Q0’
S7 1 1 0 0 Q2•Q1’
S8 1 0 0 0 Q3•Q2’
* Can be decoded with 2-input gates
23. Self correcting Johnson Counter
• n-bit counter
• 2n - 2n unused states
• 0x…x0 → 00…01
• 2 input NOR gate
performs correction
23
24. Linear Feedback Shift Register Counter
• n-bit shift register counters have far less than the
maximum number of 2n normal states
• n states for ring counter, 2n states for Johnson counter
• An n-bit LFSR counter can have 2n – 1 states
also called as maximum length sequence generator
• Design is based on the theory of finite fields
• Developed by French mathematician Evariste Galois
• Serial input is connected to the sum modulo 2 of a
certain set of output bits
• These feedback connections determine the state
sequence of the counter
• By convention, outputs are always numbered and
shifted in the direction shown in figure on next slide
25. • There exists at least one equation which makes the counter go
through all the 2n - 1 states before repeating
• It can never cycle through all 2n states
• Regardless of the connection pattern 0…0 → 0…0
25
28. Modified LFSR Counter
• An LFSR can be modified to have 2n states including the
all 0’s state
• In an n-bit LFSR counter, an extra EXOR gate and an n
– 1 input NOR gate connected to all the shift register
outputs except X0 accomplishes the task
• The states are not visited in binary order
• Usually used where this characteristic is an advantage
- Generating test inputs for logic circuits
- Encoding and decoding circuits for certain error-
detecting and error-correcting codes including
CRC codes
- Scrambling and descrambling data patterns in data
communications
- Pseudo random binary sequence generator