Question

4) Convert the following binary values from 4 bit numbers to 7 bit values

a) 2s complement value: 0101

b) 2s complement value: 1010

c) Unsigned binary value: 0101

d) Unsigned binary value: 1010

e) Sign Magnititude value: 0101

f) Sign Magnititude value: 1010

Answer #1

(a) 0101 can be extended to 7 bits = 0000101

1’s complement of the number = 1111010

2’s complement of the number = **1111011**

(b) 1010 can be extended to 7 bits = 0001010

1’s complement of the number = 1110101

2’s complement of the number = **1110110**

(c) zero pad the given number 0101 =
**0000101**

(d) zero pad the given number 1010 =
**0001010**

(e) Extend the sign if sign bit is 0 (i.e. +ve) =
**0000101**

(f) Signed number is 1010 and hence its magnitude is found by taking its 2’s complement.

Hence magnitude is 0110, or the number is -6

We represent + 6 in 7-bit size = 0000110 and take 2’s complement to get 7-bit representation of -6

Hence the number is **1111010**

EE 263 Homework Assignment 1
Perform the following conversions:
Convert 51 (decimal) to binary and to hex
Convert 0xD1 (hexadecimal) to binary and to decimal
Convert 0b11001001 (binary) to hex and to decimal
Find the 2’s complement of the following 4-bit numbers
1101
0101
Perform the following 4-bit unsigned operations. For
each, indicate the 4-bit result and the carry bit, and indicate if
the answer is correct or not.
5 + 8
2 + 12
13 – 7
4...

2 Convert each of the following octal numbers to 10-bit binary,
hexadecimal, and decimal. Show your work.
(a) 368
(b) 7568
3 Convert the following binary values into Decimal, Octal and
hexadecimal. Show your work.
(a) 111010101011112
(b) 1010111011001102
(c) 1011101010001112
(d) 1111101011102
4 Convert the following hexadecimal numbers to 16-bit binary and
decimal numbers. Show your work.
(a) FE9816
(b) FCAD16
(c) B00C16
(d) FEDF16
5 Perform the addition on the following unsigned binary numbers.
Indicate whether or not...

A). Convert following decimal integers to 8-bit two's complement
binary numbers using any
method . Explain why, If decimal number cannot be represented
with 8 bits.
a. -46 b. -63 c. 118 d. -128 e. 128
B). Perform following operations by converting the decimal
numbers to 8-bit two’s complement
binary. Check results by converting final result to decimal
a. 94-53 b. 15–84

Convert each of the following decimal numbers to binary, octal,
and hexadecimal numbers. Only go to 7 bits to the right of the
decimal and be sure to appropriately round the 7th bit.
(f) 250.8

Design a 4-bit adder-subtractor circuit using the 4-bit binary
Full adders (74LS83) and any necessary additional logic gates. The
circuit has a mode input bit, M, that controls its operation.
Specifically, when M=0, the circuit becomes a 4-bit adder, and when
M=1, the circuit becomes a 4-bit subtractor that performs the
operation A plus the 2’s complement of B.Where A and B are two
4-bits binary numbers. That is,
* When M=0, we perform A+B, and we assume that
both...

Find the 2's complement of the following decimal numbers (You
must convert the number to binary and the answer has to be in
binary with the same number of bits as the conversion)?
a. 20
b. 15
c. 2126
d. 266
e. 466
please explain how you did it!

Find the two’s complement representation for the following
numbers, assuming they are represented as a 16-bit number. Write
the value in both binary and hexadecimal for full credit.
a. -72
b. 1314
c. 594
d. -1194

Question 6: Convert BCD 1001 0011 to decimal
Question 7: Convert hexadecimal AA to decimal
Question 8: What is the 2’s complement of (01001110)2?
Question 9: How is – 1510 represented in eight-bit 2’s
complement notation?
Question 10: How is – 11210 represented in eight-bit 2’s
complement notation?
Question 11: Solve the binary arithmetic problem: (00010111)2 +
(00101001)2
Question 12: Solve the binary arithmetic problem: (1010)2 -
(0100)2
Question 13: Solve the following problem: (01110000)2 -
(00011000)2
Question 14: Solve...

9)provide the binary and hexadecimal representations for the
integer -37 in the following forms.
a)Sign and Magnitude as an 8 bit value
b)8 bit 1’s complement as an 8 bit value
c)2’s complement as an 8 bit value
d)2’s complement as a 12 bit value

Given an 8-bit ADC receive analog inputs varying from (-5v to +5v)
determine:
A. Quantization levels
B. Resolution
C. Binary output for an input of 3,5v
D. Analog input when the output is 1010 0101

ADVERTISEMENT

Get Answers For Free

Most questions answered within 1 hours.

ADVERTISEMENT

asked 20 minutes ago

asked 30 minutes ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago

asked 1 hour ago