# what is flip-flop and how does it work?

## what is a flip-flop?

Do you know what is a flip-flop? How does flip-flop work? What are the types of flip-flops? And what are the flip-flops functions in digital circuits? How to make a flip-flop using NAND gates

The first you must know the flip-flop definition. Need you know the flip-flop is a series of logic gates that serves to store a state in a semi-permanent or temporary

the state in question is the state of logic high and low or commonly called logic 1 and 0. A flip-flop can be used to store 1-bit data

The situation is semi-permanent because if the current source is disconnected or shut down then the data on the flip-flop will be lost

If a flip-flop is connected to a current source then the data on the flip-flop will remain until there is a command to change it or delete it

so essentially the flip-flop is a circuit that serves to store data temporarily

The flip-flop consists of several types. In this article the admin will share the types of flip-flops simply and how does the flip-flop work in digital circuit

## Flip-flop component

The main component to make a flip-flop is NAND gate or NOR gate. In this article, admin will discuss how to make a flip-flop using NAND gates

## the types of flip-flops and how does flip-flop work?

How does flip-flop work? Or what are the types of flip-flop?

Before you know how does flip-flop work, firstly you must know what the types of flip-flop

The flip-flop consists of several types? The flip-flop types are as follows

• RS flip-flop (set and reset flip-flop)
• D flip-flop (data or delay flip-flop)
• JK flip-flop (universal flip-flop)

### RS flip-flop

The simplest type of flip-flop is RS flip-flop or SR flip-flop or Set-Reset flip-flop

RS flip-flop has 2 inputs that are called by name Set and reset

• Set functions to set flip-flop output or Flip-flop output to logic 1 (store 1-bit data)
• Reset functions to reset the flip-flop output to logic 0 (remove or reset data)

so essentially this type of flip-flop works is to store and delete data via pin set and reset

Here’s a simple flip-flop circuit

The above circuit is the base of the flip-flop. For an explanation on another article about RS flip-flop please read on RS flip-flop circuit

In the above circuit, the output Q is the main output of the flip-flop

Whereas Output Q’ is a complementary output that has a value in contrast to Q output

The above circuit can be enhanced by adding clock as below so that it becomes perfect flip-flop RS

The function of the clock is to permit the incoming signal

• When clock is low or logic 0 then any Input given on pin R and S will not affect the flip-flop output
• When the clock is high value or logic 1 then the new insert will be passed to the flip-flop output

the RS flip-flop using NAND gates is as follow

Here are some conditions that occur on the RS flip-flop

The flip-flop RS will operate when the clock signal is of high value

In the digital circuit, the flip-flop RS is symbolized as follows

### When the RS is worth 00

This means no triggers are applied. In this case, the Flip-flop output will retain the last value it has

### When the RS is worth 01

This means a trigger is applied to the input S this will change the flip-flop value so that the Q output becomes logic 1 (Set condition)

### When the RS is worth 10

This means a trigger is applied to the input R this will change the flip-flop value so that the Q output becomes logic 0 (Reset condition)

### When the RS is worth 11

This is a forbidden or impossible condition. It’s indetermined condition

In that sense, we are trying to set and reset simultaneously

For example in everyday life we ​​are trying to turn the gas and do the brakes simultaneously

And the above should be avoided

Because of the forbidden conditions the RS flip-flop is rarely used in digital circuits but we can use other flip-flops that are better than rs flip-flop

However, any RS flip-flop is the core of all flip-flops

### D flip-flop

D flip-flop or flip-flop data is a development of the flip-flop RS. The D flip-flop can be build using either Nand gate or Nor gate

In D flip-flop the forbidden enter condition is no longer found because it has been modified so that it has only 1 input

D flip-flop can be created by adding note gates on rs flip-flop. For the full flip-flop D article, the admin will share it on the d-flip-flop circuit

D flip-flop symbol

### JK flip-flop

JK flip-flop is a Universal flip-flop because JK flip-flop have all the other flip-flop properties

On JK flip-flop if all input (J and K) with value 1 then it will serve as toggle or T flip-flop

A flip-flop jk can be built using either a NOR gate or NAND gate. How to make a JK flip-flop using NAND gates?

Here’s a JK flip-flop circuit diagram using NAND gates

For the flip-flop T circuit, you can read the post about JK flip-flop

In the digital circuit, the flip-flop jk symbol is as follows

## flip-flop function in digital circuits

flip-flop function is very important in digital circuits. A flip-flop usually used to save 1-bit memory

Another flip-flop function is as follows

Some flip-flop can be arranged with another flip-flop to make a shift register, running led, and so on. Read also other articles about clock generator using 555