Problems: Cameron Hulse
Problems: Cameron Hulse
Cameron Hulse
1. What is the minimum number of bits needed to represent 76810 using unsigned
binary representation?
512 + 256 = 768 768 = 1100000000 = 10 bits
2. What is the largest possible integer that can be represented with a 6-bit unsigned
binary number?
111111 = 32+16+8+4+2+1 = 63 OR 26-1 = 63
3. Convert each of the following values to decimal.
a. 100111012
1 + 4 + 8 + 16 + 128 = 157
b. 101012
1+4+16 = 21
c. 1110011012
1+4+8+64+128+256 = 461
d. 011010012
1+8+32+64 = 105
4. Convert each of the following values to an 8-bit unsigned binary value.
a. 3510
32+2+1 = 35 = 00100011
b. 10010
64+32+4 = 100 = 01100100
c. 22210
128+64+16+8+4+2 = 222 = 11011110
d. 14510
128+16+1 = 145 = 10010001
5. If an 8-bit binary number is used to represent an analog value in the range from 010
to 10010, what does the binary value 011001002 represent?
011001002 represents 100
6. If an 8-bit binary number is used to represent an analog value in the range from 32
to 212, what is the accuracy of the system? In other words, if the binary number is
incremented by one, how much change does it represent in the analog value?
m = (212-32) / (28 - 1) m = 180/255
m = 0.705882 analog value /per binary increment
7. Assume a digital to analog conversion system uses a 10-bit integer to represent
an analog temperature over a range of -25o F to 125o F. If the actual temperature
being read was 65.325o F, what would be the closest possible value that the
system could represent?
m = (125 + 25) / (210 - 1) = 250/1023 = 0.244379 F / binary increment
65.325o F / 0.244379 increment = 267.310 increments
267.310 increments * 0.244379 F / binary increment = 65.324o F
Problems
Cameron Hulse
12. Determine which of the following binary patterns represent valid BCD numbers
(signed or unsigned). Convert the valid ones to decimal. (Unsure)
a. 0101 0111 1001 0110 0011
5 7 9 6 3
b. 1001 0101 0010 0110 1001
9 5 2 6 9
c. 0110 1101 0010 1001 1001
Not Valid
d. 1100 0110 0100 0001 0000
Not Valid
e. 1101 1001 0111 0010
Not Valid
f. 1111 0001 0010 0101 0110 1000
Not Valid
g. 0010 1011 0010 0010
Not Valid
13. Convert the decimal number 9640410 to BCD.
9640410
1001 0110 0100 0000 0100 0001 0000