310 likes | 657 Views
System Digital. Enco der , Deco der , and Contoh Penerapanya. Encoder/Decoder Vocabulary. ENCODER- a digital circuit that produces a binary output code depending on which of its inputs are activated. .
E N D
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 Masukan berupa kode biner Keluaran berupa kode biner Hanya satu keluaran yang aktif pada satu waktu
2-to-4 Decoder: NAND implementation Decoder is enabled when E=0 and an output is active if it is 0
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 A2=0, upper is enabled; if A2=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 49264 9 2 6 8421 BCD coded number0100 10010010 0110
3 ELECTRONIC ENCODER - DECIMAL TO BCD BCD output Decimal input 0 0 0 0 0 1 0 1 0 1 1 1 0 0 1 1 Decimal to BCD Encoder 7 5 0 • Encoders are available in IC form. • This encoder translates from decimal input to BCD output.
DECODERS: BCD TO 7-SEGMENT DECODER/DRIVER Decimal output LED BCD input 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 BCD-to- 7-Segment Decoder/ Driver • 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.
TEST Q #5- What is the decimal output from the decoder that appears on the 7-segment display? Q #4- What is the decimal output from the decoder that appears on the 7-segment display? Q #1- What is the decimal output from the decoder that appears on the 7-segment display? Q #2- What is the decimal output from the decoder that appears on the 7-segment display? Q #3- What is the decimal output from the decoder that appears on the 7-segment display? Answer: 3 Answer: 9 Answer: 0 Answer: 6 Answer: 7 BCD input Decimal output 1 0 0 1 0 1 1 1 0 0 0 0 0 1 1 0 0 0 1 1 BCD-to- 7-Segment Decoder/ Driver ?
TEST 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 also MUX.