Question

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 the sum overflows an 8-bit result. Show your work.

(a) 100110012 + 010001002

(b) 110100102 + 101101102.

Convert this floating point number in IEEE format to a real number. Show your work. 4070000016 10.

6 Convert the following decimal numbers to 16-bit signed binary numbers. Show your work.

(a) -8910

(b) -1510

Subject: Microcontroller Programming

Note- Please can you solve all the problem with step by step and solution also. Thanks

Answer #1

**Answer:**

**a) 368 , Convert from octal to binary : For this convert
each bit of octal number to 3 digit binary number as:**

**368 = 011 110 1000 is in binary**

**Conver octal to hexadecimal : 368 , first we convert it
into the decimal and then decimal to hexadecimal.**

**368 to convert it into the decimal by multiplying each
digit with 8^n-1 like :**

**3 * 8^2 + 6 *8^1 + 8*8^0 = 192 +48 +8 = 248 base
10**

**Now convert 248 to hexadecimal :**

**16 | 248
| 15 --1
= 151 in hexadecimal.**

**b) 7568 to convert it to binary , right each digit in
binary in 3 bits :**

**7568 = 111 101 110 1000 it is in binary.**

**Now to convert it into the hexadecimal, first convert it
in the decimal : -**

**7568 = 7*8^3 + 5*8^2 + 6*8^1 + 8*8^0 = 3960 base
10**

**Now to change it in hexadecimal divide 3960 by 16 and
take remainders = 278 is in hexadecimal**

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

Convert each of the following decimal numbers to octal,
hexadecimal, and decimal numbers using the most appropriate
conversion method.
(c) 0.375

Convert the following decimal numbers into IEEE single precision
format. Give your answer in hexadecimal. Show all
work
A) -15.5625
B) 10.9375

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...

Add decimal numbers using binary additions for 170 and 493.
Steps: Convert each number to binary first. Then add the two binary
numbers using binary addition. Make sure to keep track of the carry
bit and show the carry for each step even when it is zero. Please
show all work.

1-What is the decimal number of the binary numbers
(101111)2?
2-What is 123 in BCD code?
3-Convert the binary (10101011101)2 into octal and
hexadecimal?
4-What is 2's complement of (1101110)2?
5-Convert the decimal number 152.25 into
binary?

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

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

1. (10 pts) Apply Booth's Algorithm to multiply the following
6-bit unsigned numbers, showing the contents of the A, Q, M
registers and the C bit, through the 6 steps: 100110 and 111001
(i.e., decimal 38 and 57)
2 Assuming single-precision (i.e., 32-bits) IEEE 754 standard,
unpack the following 32- bit string into decimal floating-point
form: 11001110100001000110010000110100

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!

ADVERTISEMENT

Get Answers For Free

Most questions answered within 1 hours.

ADVERTISEMENT

asked 3 minutes ago

asked 5 minutes ago

asked 7 minutes ago

asked 11 minutes ago

asked 14 minutes ago

asked 25 minutes ago

asked 54 minutes ago

asked 54 minutes ago

asked 57 minutes ago

asked 57 minutes ago

asked 57 minutes ago

asked 58 minutes ago