10) Encoder Prac 10
10) Encoder Prac 10
10) Encoder Prac 10
Engineering
Encoders
APPARATUS
Power Supply Resistors LEDs Jumper wires DIP switches 4 bit Encoder (74LS148)
THEORY:
An Encoder is a combinational logic circuit that essentially performs a REVERSE decoder function. An Encoder accepts an active level on one of its inputs representing a digit, such as a decimal or octal digit, and converts it to a coded output, such as BCD or binary. Encoders can also be devised to encode various symbols and alphabetic characters. The process of converting from familiar symbols or numbers to a coded Format is called Encoding. An encoder can be a device used to change a signal (such as a bit-stream) or data into a code. The code serves any of a number of purposes such as compressing information for transmission or storage, encrypting or adding redundancies to the input code, or translating from one code to another. This is usually done by means of a programmed algorithm, especially if any part is digital, while most analog encoding is done with analog circuitry.
22
Encoders
This is the basic 10 to 4 line Encoder. The BCD code i.e. from MSB LSB (8421) is listed in below Table. From this we can examine the relationship between each BCD and Decimal Digits in order to analyze the Logic. The 74LS147 Encoder is Used for the Decimal to Binary Encoder.
Basic Logic Diagram of Decimal to Binary Encoder is As Follows. A 0-Digit input is not needed because the BCD outputs are all Low when there is no High Input.
Encoders
The 74LS148 can be expended to 16-to-4 line Encoder by connecting the EO of higher order encoder to the EI of Lower order encoder and Negative-ORing the corresponding outputs. The EO is used as the fourth and most significant bit. This particular configuration produces active High outputs for the 4-bit binary number.
22
Encoders
INPUTS 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0
Where, 1 = HIGH Voltage Level 0 = LOW Voltage Level
OUTPUTS 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1
EI D7 D6 D5 D4 D3 D2 D1 D0 GS A2 A1 A0 EO 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1
Circuit Diagram:
U5 0 28 0 0
10 11 12 13 1 2 3 4 5 8 D0 D1 D2 D3 D4 D5 D6 D7 EI GND VCC A0 A1 A2 GS EO 16 9 7 6 14 15
1 2 3 4
74LS148N
Encoders
PROCEDURE:
Construct the circuit as shown below. Now close the dip switch and power on the voltage source. Observe the status of the LED. Now open the dip switch and observe the status of the LED. Also try to obtain output waveform by connecting Oscilloscope probes across the resistor and quickly switching on & off the dip switch.
SIMULATION RESULTS:
Encoders
OBSERVATIONS:
We observe that the output comes in following the Truth Table given below:
INPUTS 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0
Where, 1 = HIGH Voltage Level 0 = LOW Voltage Level
OUTPUTS 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 1
EI D7 D6 D5 D4 D3 D2 D1 D0 GS A2 A1 A0 EO 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1 1 1 0 1 1 1 1
CONCLUSION:
The Encoders are very useful circuits to convert decimal inputs to Binary output and is used in Keypad circuits.