Unit 4,5
Unit 4,5
An S-R flip-flop (Set-Reset flip-flop) is one of the simplest types of bistable multivibrators
(circuits that have two stable states). It is a basic memory element used in sequential logic
circuits to store one bit of data—either 0 or 1.
• Two inputs:
o S (Set): Used to set the output to 1
o R (Reset): Used to reset the output to 0
• Two outputs:
o Q: The main output
o Q̅: The complement of the main output (Q̅ = NOT Q)
(A) Using NOR Gates (Active HIGH inputs) : Built using two cross-coupled NOR
gates
(B) Using NAND Gates (Active LOW inputs): Uses cross-coupled NAND gates, but
here inputs are active low (S̅, R̅)
Applications of SR Flip-Flop
• Basic memory storage (1-bit)
• Control systems
• Debouncing switches
Q24) .Draw and explain the operation of SR LATCH?
An SR latch is a basic digital circuit made using logic gates (usually NOR or NAND) that
can store 1 bit of information. It has two inputs:
• S (Set)
• R (Reset)
• Q (Main output)
• Q̅ (Opposite of Q
Operation:
1. S = 0, R = 0 → No change
a. The latch remembers its last state.
2. S = 1, R = 0 → Set state
a. Output Q = 1, Q̅ = 0
3. S = 0, R = 1 → Reset state
a. Output Q = 0, Q̅ = 1
4. S = 1, R = 1 → Invalid
a. Both Q and Q̅ = 0, which is not valid, because Q and Q̅ should always be
opposites.
It is used to avoid timing problems (like race conditions) and ensures the
output changes only at the edge of the clock signal.
Applications:
• Registers
• Counters
• Timing circuits
• State machines
Q26) .Write the differences between latches and flip flops?
Basic Components:
Type Description
1. SISO (Serial-In Serial-Out) Data enters and exits one bit at a time
Data enters serially, output appears all at
2. SIPO (Serial-In Parallel-Out)
once in parallel
Data is loaded in parallel, then shifted out
3. PISO (Parallel-In Serial-Out)
serially
4. PIPO (Parallel-In Parallel- Data is loaded and output in parallel (no
Out) shifting needed)
5. Bidirectional Can shift data left or right
6. Universal Shift Register Can perform all of the above operations
• Data storage
• Data transfer (serial-to-parallel or parallel-to-serial conversion)
• Delay elements
• Counters
• LED patterns or control circuits
Q29) Explain about Ring counter?
Structure:
Applications:
Advantages:
• Simple design
• Easy to decode the output
• No extra logic needed for decoding states
Limitations:
Conclusion: A Ring Counter is a circular shift register where a single bit rotates
through flip-flops. It is useful in simple timing and control circuits where a known
fixed sequence is needed
Q30) Explain about ripple counter?
Working Principle:
Type Description
Up Counter Counts in increasing order (0, 1, 2, ...)
Down Counter Counts in decreasing order (..., 3, 2, 1, 0)
Up/Down Counter Can count both up and down (direction control)
Applications:
• Digital clocks
• Frequency counters
• Timers
• Event counting
Conclusion:
A Ripple Counter is an asynchronous counter where flip-flops are triggered one after
another. It is simple but has delays, so it's good for basic counting tasks but not high-
speed systems.
Q31) Explain about Johnson counter?
Structure:
Applications:
• Sequence generators
• Digital timing circuits
• LED chasers
• Pattern detection
• Divide-by-n counters
Conclusion:
Working Principle:
Applications:
Advantages: