Code Converters Module M7.1 Section 6.5. Code Converters Binary-to-BCD Converters ABEL TRUTH_TABLE Command.

Slides:



Advertisements
Similar presentations
Adders Module M8.1 Section 6.2. Adders Half Adder Full Adder TTL Adder.
Advertisements

Modulo-N Counters Module M10.4 Section 7.2.
Encoders Module M9.3 Section 6.3. Encoders Priority Encoders TTL Encoders.
Demultiplexers Module M6.4 Section 6.4. Demultiplexers YIN 1 x 4 DeMUX d0d1 Y0 Y1 Y2 Y3 Y0 Y1 Y2 Y3 d1d0 0 0 YIN YIN YIN
Shift Registers Module M11.1 Section 7.3.
7-Segment Displays Lecture L6.1 Section 6.3. Turning on an LED.
Binary Counters Module M10.3 Section 7.2. Counters 3-Bit Up Counter 3-Bit Down Counter Up-Down Counter.
7-Segment Displays Lecture L6.7 Section 6.5. Turning on an LED.
Binary-to-BCD Converter Lecture L6.2 Section 6.5 pp
Using State Machines as Control Circuits Lecture L9.4.
Multiplier Lecture L7.3 Section 10.4 (p.276) Section 7.3 (Handout)
Multiplexers Lecture L6.4 Section 6.4.
Subtractors Module M8.2 Section 6.2. Subtractors Half Subtractor Full Subtractor Adder/Subtractor - 1 Adder/Subtractor - 2.
Designing State Machines Lecture L9.2 Handout Section 9.2.
Arbitrary Waveforms Lecture L8.5 Section 7.2. CLK DQ !Q CLK DQ !Q CLK DQ !Q Q0Q0.D Q1 Q2 Q1.D Q2.D s s s s3 0 1.
Counters as State Machines Lecture L9.1 Handout Section 9.1.
Equality Detector Lecture L6.1 Section 6.1. Equality Detector XNOR X Y Z Z = !(X $ Y) X Y Z
Flip-Flops Module M10.2 Section 7.1. D Latch Q !Q CLK D !S !R S R X 0 Q 0 !Q 0 D CLK Q !Q Note that Q follows D when the clock in high, and.
Binary Counters Lecture L8.3 Section 8.2. Counters 3-Bit Up Counter 3-Bit Down Counter Up-Down Counter.
Shifter Lecture L7.4 Group HW #4 Section 10.3.
Modulo-N Counters Lecture L8.4 Section 7.2. Counters Modulo-5 Counter 3-Bit Down Counter with Load and Timeout Modulo-N Down Counter.
Codes and Code Converters
Arbitrary Waveforms Module M10.5 Section 7.2. CLK DQ !Q CLK DQ !Q CLK DQ !Q Q0Q0.D Q1 Q2 Q1.D Q2.D s s s s3 0 1.
Arithmetic Logic Unit (ALU) Lecture L7.5 Section 7.5.
Pulse-Width Modulated DAC Lecture 11.3 Section 11.5.
Multiplexers Module M6.1 Section 6.4. Multiplexers A 4-to-1 MUX TTL Multiplexer A 2-to-1 MUX.
2’s Complement 4-Bit Saturator
Adders Lecture L7.1 Section 6.2 Section 10.4 (pp )
Shifters Lecture L7.4 Section 7.4. MODULE shift TITLE 'shifter' DECLARATIONS " INPUT PINS " D3..D0 PIN 11,7,6,5; D = [D3..D0]; s2..s0 PIN 3,2,1; S.
Flip-Flops Lecture L8.2 Section 8.1. Recall the !S-!R Latch !S !R Q !Q !S !R Q !Q X Y nand 1 0 Set 1 0.
Decoders Module M9.1 Section 6.3. Decoders TTL Decoders.
Shift Registers Lecture L6.6 Section Bit Shift Register.
Equality Detector Lecture L6.3 Section 6.1. Equality Detector XNOR X Y Z Z = !(X $ Y) X Y Z
7-Segment Displays Module M7.2 Section 6.5. Turning on an LED Common Anode.
Flip-Flops Lecture L8.2 Section 7.1 – Book Sect. 8.1– Handout.
Binary-to-BCD Converter
Binary-to-BCD Converter
Number System Conversions Lecture L2.2 Section 2.3.
Number Systems and Codes In PLC
ASCII & Gray Codes.
Number Systems.
Designing Combinational Logic Circuits in Verilog - 2
COMPUTER NUMBER SYSTEMS & DIGITAL DEVICES By: Sohaib Rehman.
ABCDNumber = Off 1 = On Binary Coded Decimal (BCD)
Binary-to-BCD Converter
A little bit of exercise.. ;). Exercise Given to you are some binary to decimal examples : Given to you are some binary to decimal examples : Tens Units.
Number System. Number Systems Important Number systems – Decimal – Binary – Hexadecimal.
Converting From decimal to Binary & Hexadecimal to Binary
Hexadecimal Data Representation. Objectives  Know how the Hexadecimal counting system works  Be able to convert between denary, binary & hexadecimal.
Introduction to Microprocessors Chapter 2. Decimal or Base 10 Numbers  Have ten different digits (0-9)  It is a weighted number system. Each position.
Company LOGO Edit your slogan here DKT 122/3 DIGITAL SYSTEM 1 WEEK #8 FUNCTIONS OF COMBINATIONAL LOGIC (ENCODER & DECODER, MUX & DEMUX)
Chapter 32 Binary Number System. Objectives After completing this chapter, you will be able to: –Describe the binary number system –Identify the place.
Decoders A decoder is a logic circuit that detects the presence of a specific combination of bits at its input. Two simple decoders that detect the presence.
Decoder Chapter 12 Subject: Digital System Year: 2009.
Programmable Logic Controller
Counters as State Machines
BCD = Binary Coded Decimal
Digital Electronics Ms. Deepa Mehta.
Chapter 4 Number Systems.
Shift Registers Lecture L8.6 Section 8.3.
Designing Digital Circuits Using Hardware Description Languages (HDLs)
Homework Reading Tokheim, Section 5-10, 7-4.
There are 10 types of people of people in this world…
Chapter 1 Number System RGGP, Narwana.
شبکه آموزشی پژوهشی ایران - مادسیج
Magnitude Comparator Lecture L6.2 Section 6.1.
Remember the 10 types of people of people in this world…
Number Systems.
Computer Science 1 Review and finish Number base conversion
Interface ckt for demo Outputs Inputs V PIN 0 10K PIN 4 GND GND
Presentation transcript:

Code Converters Module M7.1 Section 6.5

Code Converters Binary-to-BCD Converters ABEL TRUTH_TABLE Command

Binary-to-BCD Converter

bin2bcd.abl MODULE bin2bcd TITLE 'Binary to binary coded decimal, A. Student, 7/12/02' DECLARATIONS " INPUT PINS " I3..I0 PIN 6,7,11,5;“ Switch 1..4 I = [I3..I0];" 4-bit input vector " OUTPUT PINS " [E,D,C,B,A] PIN 40,39,37,36,35 ISTYPE 'com';" LED 4..8 BCD = [E,D,C,B,A]; EDCBA I =

16;" Identify the Hex Base truth_table ( I -> BCD )" Binary to BCD Code Converter 0 -> 00; 1 -> 01; 2 -> 02; 3 -> 03; 4 -> 04; 5 -> 05; 6 -> 06; 7 -> 07; 8 -> 08; 9 -> 09; 0A -> 10; 0B -> 11; 0C -> 12; 0D -> 13; 0E -> 14; 0F -> 15; END bin2bcd bin2bcd.abl (cont’d)

Gray Code Conversion Gray Code Decimal equivalent G_in = [G2..0]; G_out = [B2..0]; Truth_table (G_in => G_Out) Fill in this TRUTH_TABLE Command so as to convert the Gray code input, [G2..0], to the binary output, [B2..0]

Gray Code Conversion Gray Code Decimal equivalent G_in = [G2..0]; G_out = [B2..0]; Truth_table (G_in => G_Out) 0 -> 0; 1 -> 1; 3 -> 2; 2 -> 3; 6 -> 4; 7 -> 5; 5 -> 6; 4 -> 7; Fill in this TRUTH_TABLE Command so as to convert the Gray code input, [G2..0], to the binary output, [B2..0]