Presentation on theme: "System Digital Encoder, Decoder, and Contoh Penerapanya."— Presentation transcript:
System Digital Encoder, Decoder, and Contoh Penerapanya
Encoder/Decoder Vocabulary ENCODER- a digital circuit that produces a binary output code depending on which of its inputs are activated. DECODER- a digital circuit that converts an input binary code into a single numeric output.
ENCODERS AND DECODERS Hanya Satu masukan yang aktif pada satu waktu Keluaran berupa kode biner Masukan berupa kode biner Hanya satu keluaran yang aktif pada satu waktu
The truth table of 2-to-4 Decoder
The truth table of 3-to-8 Decoder A2A1A0D0D1D2D3D4D5D6D
3-to-8 Decoder with Enable
2-to-4 Decoder: NAND implementation Decoder is enabled when E=0 and an output is active if it is 0
2-4 Decoder with 2-input and Enable
Decoder Expansion Decoder expansion Combine two or more small decoders with enable inputs to form a larger decoder 3-to-8-line decoder constructed from two 2-to-4-line decoders The MSB is connected to the enable inputs if A 2 =0, upper is enabled; if A 2 =1, lower is enabled.
Combining two 2-4 decoders to form one 3-8 decoder using enable switch The highest bit is used for the enables
THE 8421 BCD CODE BCD stands for Binary-Coded Decimal. A BCD number is a four-bit binary group that represents one of the ten decimal digits 0 through 9. Example : Decimal number BCD coded number
ELECTRONIC ENCODER - DECIMAL TO BCD 0 Decimal to BCD Encoder BCD output Decimal input Encoders are available in IC form. This encoder translates from decimal input to BCD output.
10 line to 4 line Encoder
4 line to 10 line Decoder
BCD-to- 7-Segment Decoder/ Driver DECODERS: BCD TO 7-SEGMENT DECODER/DRIVER BCD input 0 0 Decimal output LED Electronic decoders are available in IC form. This decoder translates from BCD to decimal. Decimals are shown on an 7-segment LED display. This IC also drives the 7-segment LED display.
BCD-to- 7-Segment Decoder/ Driver BCD input Decimal output ? Q #1- What is the decimal output from the decoder that appears on the 7-segment display? Answer: 3 Q #2- What is the decimal output from the decoder that appears on the 7-segment display? 0 0 Answer: 0 Q #3- What is the decimal output from the decoder that appears on the 7-segment display? Answer: 9 Q #4- What is the decimal output from the decoder that appears on the 7-segment display? Answer: Q #5- What is the decimal output from the decoder that appears on the 7-segment display? Answer: TES T
ANSWER THE FOLLOWING QUESTIONS WITH ONE OR MORE OF THESE WORDS: MUX, DEMUX, ENCODER, DECODER. A. Has more inputs than outputs. ENCODER, MUX B. Uses select inputs.MUX, DEMUX C. Can be used in parallel-to-serial conversion.MUX D. Produces a binary code at its output.ENCODER E. Only one of its outputs is activated at one time.DEMUX, DECODER F. Used to route input signals to one of several outputs.MUX G. Used to generate arbitrary logic functions.MUX, DEMUX H. 3 line-to-8 line or binary to octal.DECODER I. Data Selectors are alsoMUX.