techonicals: Difference between Latch and Flip-Flop

Difference between Latch and Flip-Flop

Understanding the basic difference between Latch and Flip-Flop. Electronics students and some ready for their interviews would agree me on this about this question being most common and confusing in viva's and interview. I have here tried to differentiate it.


Latches and flip-flops are the basic elements for storing information. One latch or flip-flop can store one bit of information. The main difference between latches and flip-flops is that for latches, their outputs are constantly affected by their inputs as long as the enable signal is asserted. In other words, when they are enabled, their content changes immediately when their inputs change. Flip-flops, on the other hand, have their content change only either at the rising or falling edge of the enable signal. This enable signal is usually the controlling clock signal. After the rising or falling edge of the clock, the flip-flop content remains constant even if the input changes.


LATCH

Latches are level sensitive.
Latch is sensitive to duration of pulse and can send or receive the data when the switch is on.
Latch is a device which continuously checks all its input and correspondingly changes its output, independent of the time determined by clocking signal.
It is based on enable function input
It is a level trigerred , it mean that the output of present state and input of the next state depends on the level that is binary input 1 or 0.

FLIP-FLOP

Flip-Flop are edge sensitive.
Flipflop is sensitive to signal change and not on level. They can transfer data only at the single instant and data cannot be changed until next signal change. Flipflops are used as a register.
A flip-flop continuously checks its inputs and correspondingly changes its output only at times determined by clocking signal.
It work's on the basis of clock pulses.
It is a edge trigerred , it mean that the output and the next state input changes when there is a change in clock pulse whether it may a +ve or -ve clock pulse.


So commonly Flip- Flop and latches are..... 
Flip flops are edge-triggered devices whereas latches are level triggered devices.
latch does not have clock signal whereas flip flop does.
Flip flop has two values while latch has only one value.

Related Posts Plugin for WordPress, Blogger...