# what is encoder and how does it work?

## what is encoder?

what is encoder and how does encoder work. Encoder is an equipment used to shorten the initially large number of inputs into outputs with fewer amounts. The working principle of the encoder is the opposite of the decoder

Encoder can be interpreted as an equipment used to change the condition of the input into a certain condition and the condition can be restored again by using the original circuit decoder

Encoder is used because with encoder we can save path or to adjust input to be processed by next circuit

More about what is encoder and how does encoder work as follows

## how does encoder work?

There are many types of encoder between is encoder 16 to 4, encoder 8 to 3, keypad or keypad encoder and so forth

The opposite of the encoder circuit is the decoder circuit

Also read the article what is gray code and how does it work?

There are actually many types of key encoders but the simplest and easiest to learn are as follows ## working principle of key encoder

A simple example of using a key encoder is on a calculator

The key encoder circuit consists of various but the simplest encoder is as above

The key encoder circuit in the above image will encode a 10-lane switch into 4 binary paths

so the above circuit can save the path used

Here is the encoder truth table above the key encoder circuit as above is often found in the microcontroller circuit

to decode the above code to be like the original then needed decoder circuit

read also the what is multiplexer and demultiplexer?

encoder circuit can be made by using combination of logic gate

A series of logic gates is arranged in such a way that it can encode the input code

in general the encoder circuit has a large number of inputs and has fewer outputs