0% found this document useful (0 votes)
2 views3 pages

Encoder

An encoder is a logic circuit that converts numbers from various bases (like octal, base four, and hexadecimal) into binary form. It utilizes input lines and OR gates to produce the binary output corresponding to the input number. Encoders have applications in converting codes and linear motion into digital form.

Uploaded by

sr8114634
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views3 pages

Encoder

An encoder is a logic circuit that converts numbers from various bases (like octal, base four, and hexadecimal) into binary form. It utilizes input lines and OR gates to produce the binary output corresponding to the input number. Encoders have applications in converting codes and linear motion into digital form.

Uploaded by

sr8114634
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

ENCODER

The computer works on the binary form of numbers. Hence, the number entered in
decimal or any other numeral form needs to be converted into binary. An encoder is
used to serve the purpose.
(Alogic circuit that is used to convert a number from any base to binary is known as
an encoder. 0

1
2
3
Encoder Output in binary
Input in any base 4
5
6

Block diagram of encoder

Octal to Binary Encoder (Three bits Encoder)


in writting
An octal number is represented in base 8 (i.e. digits from 0 to 7 are involved
any octal number). In order to design an encoder to convert an octal digit into
binary, you
The highest octal digit7
need to draw eight input lines (0 to 7) through various switches. to any octaldigit
has its binaryvalue as 111. It shows that the binary output corresponding output.
can be atmost in three bits. Therefore, we use three OR gates to provide the binary
below:
Input connection to the gates can be made as shown binary of 3 is 011.
() Get binary equivalent number of an octal digit. For example,
Computer Hardware 81
(ii) Give input connections to the gates B and C ( i.e. gates corresponding to the high
bits) from line representing octal 3.
(i) Similarly, you can repeat from step 1 for other connections.
1
2

4
5
6
7

A B
Logic diagramof octal to binaryencoder
Truth table representing Octal number to Binary:
Octal Number Binary Output
000
001
2 0 10
3 011
4 100
5 101
6 110
111
Truth table of octal to binary encoder

Base Four to Binary Encoder


Anumber in base four uses digits from 0 to
3. Hence, in order to design an encoder to
convert a number from base four to binary,
use the following steps:
• Draw four signal lines extended from
four switches.
• Mark them numerically from 0
to 3.
Convert each number into binary (e.g., 00 for 0, 01
binary equivalent of each number is in two for 1, 10 for 2 and 11 for 3). As
to provide the output. bits, you will need only two OR gates
The input lines to the gates can be
drawn as shown below:
0.
1/
2
3

Base 4 to binary
Understanding ISC Computer encoder
ehug
Similarly, an encoder circuit can be drawn for conversion from hexadecimal number
to binary as shown below:
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F

B C D
A

Logic diagram of hexadecimal to binary encoder

Working Principle of Encoder


binary, then put on the switch
If you want to convert a hexadecimal number 9 into be 1001. You may observe that
marked with 9, whose binary equivalent number should
only gates A andD will get a high (1) Ainput signal. All other input signals to the gates
will remain low (0). Hence, only gates and D will result in high (1) which represent
digit 9.
the binary pattern 1001 of the hexadecimal
applications of Encoder
Ayncoder has the following applications: another.
to convert the codes from one form to
An encoder is used acceleration
LAn encoder can also be used to convert linear motion (1.e., speed, velocity,
etc.) into digital form.

You might also like