An encoder is a type of digital circuit that converts the language of the user into machine-readable language.
Encoder


Encoder

In an encoder, we have to give a 2n input line and from this, we will get n output line.


8 to 3 line encoder

In every situation in this table, we see only a single output 1, and others are 0. For 8 line input, we get 3 line outputs.

Encoder table


Inputs
Outputs
Q₀
Q₁
Q₂
Q₃
Q₄
Q₅
Q₆
Q₇
A
B
C
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
1
0
0
0
0
1
0
0
0
0
0
1
1
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
1
0
0
1
0
1
0
0
0
0
0
0
1
0
1
1
0
0
0
0
0
0
0
0
1
1
1
1


Here we get 3 Equations from the output

  1. A = Q₄+Q₅+Q₆+Q₇
  2. B = Q₂+Q₃+Q₆+Q₇
  3. C = Q₁+Q₃+Q₅+Q₇

Block diagram of an encoder

Block diagram of encoder



Circuit diagram of encoder

Use of encoder

  • Can covert Alphanumeric letters to BCD, ASCII, and UNICODE, etc
  • In controlling the IRQ( Interrupt Request ) in the microprocessor
  • In robotics