What is a Flip Flop?
A flip flop is an important basic memory element for the digital circuit. Flip-flop is designed by assembling different logic gates. The single logic gate does not have any information storing capacity but by combining different such gates one can make such a digital circuit that can store digital information. A flip flop is such a circuit.
There are different types of flip flops with different characteristics for different applications. Flip-flop is the basic building block of most sequential circuits. Flip-flop (FF), is also known as a bistable multivibrator because it has two stable states.
It can remain in either of the states indefinitely. Its state can be changed by applying the proper triggering signal. A flip flop is a one-bit memory element. There are two outputs in a flip-flop generally marked as Q and . Either of Q and
can be used as output but normal practice is to take Q as output port and
as an inverted output port.
It is to be noted here that a flip flop has always one out the complement of other output. The state of a flip-flop is normally determined by the condition of output Q. If Q = 1 the flip-flop is said to be in HIGH state or logic 1 state or SET state. When, Q = 0 the state of the flip flop is said to be in the LOW state or logic 0 state or RESET state or CLEAR state.
The figure below shows a block diagram of a flip flop. It shows a flip-flop may have one or more inputs but only two outputs. The combination of inputs that alter the outputs or state of the flip flop is referred to as excitation.

The excitation is used to switch the flip flop from one state to another. But the typical feature of the flip flop is that once the state of the flip flop is changed by applying, excitation, it remains unaltered even the excitation is removed from input ports.
Hence, momentary application of excitation is enough to change the state a flip-flop. This is how a flip flop behaves like a memory element. When, Q = 1 it stores a 1 and when, Q = 0, it stores a 0. Flip-flops are the basic components of shift registers and counters.
A flip flop is a sequential circuit hence it can be either synchronous or asynchronous. When inputs are controlled by clock pulse it is normally referred to as a flip flop. Here the inputs are applied but not acted until clock pulse appears and enables the inputs.
When the same circuit is made asynchronous that is its inputs is not controlled by clock pulse, it is called latch. It is SET or RESET instantaneously on receiving the input signal. A latch can act independently of the clock signal.
Types of Flip Flops
The types of flip flops and latches include:
You can learn more about latches and flip flops by checking out our full list of logic gates questions.