Homework 2

# Homework 2 - b 11101.1011 2 Convert the following...

This preview shows page 1. Sign up to view the full content.

-ELEC 2220 Homework #2 (Due Wednesday, May 26) A. Four light-emitting diodes (LEDs) are designated as LED0, LED1, LED2, and LED3. These LEDs are illuminated by applying a voltage to them corresponding to "logic 1", and darkened by applying a voltage to them corresponding to logic 0. A computer generates a 4-bit number A = a 3 a 2 a 1 a 0 . Design and sketch a digital logic circuit that will illuminate LED0 when A=0100, LED1 when A=0101, LED2 when A=0110, and LED3 when A=0111. For all other values of A, the LEDs should be dark. You may use logic gates and/or decoders for your circuit. Clearly label all LEDs and signal lines. B. Do the following “number format conversion” problems, as a review of number systems from ELEC 2200. 1. Convert the following binary numbers into decimal and hexadecimal. a. 1101010.011
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: b. 11101.1011 2. Convert the following hexadecimal numbers into binary and decimal. a. 4AF.2E b. B32D.11 3. Convert the following decimal numbers into binary and hexadecimal. a. 235.25 b. 1077.375 4. Convert the following decimal numbers into 8-bit signed binary (2’s complement number system). a.-89 b. +110 c.-120 5. Convert the following decimal numbers into 16-bit signed binary (2’s complement number system). a. +456 b.-21205 6. Convert the following signed binary numbers (2’s complement number system) into decimal. a. 10110101 b. 01010101 7. Write the list of ASCII codes (hexadecimal) representing the following character string (including the “quotes”). “This is a test?” 8. Convert the following decimal numbers into packed and unpacked BCD form. a. 1000 b. 456...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online