Question: 3 . 1 2 HOMEWORK PROBLEMS 3 . 1 Convert the following binary patterns to hexadecimal: 1 1 0 1 0 1 0 1 0

3.12 HOMEWORK PROBLEMS
3.1 Convert the following binary patterns to hexadecimal:
1101
01010
10011
11001100
110011000001
3.2 Construct a comparison expression that will test if bits 0,2, and 4 in a byte are all in the high state
without altering the state of the byte.
3.3 Construct an expression that will clear bits 1,3, and 5 in a byte-sized variable called Bumpers
while not altering any of the other bits.
3.4 Construct an expression that will set bit 1 in a byte-sized variable called PortA without affecting
any of the other bits in the variable.
3.5 Write out the 16-bit hexadecimal representation of the following signed decimal numbers
(assume the representation is 2's complement):
10-17-27-45-128127
3.6 Construct an expression that will test if either bit 0 or bit 3 in a byte-sized variable is in the high
state without altering the state of the byte.
3.7 Construct an expression that will test if either bit 1 or bit 3 in a byte-sized variable is in the low
state without altering the state of the byte.
3.8 What result would you expect from the following expressions if all values were contained in
byte-sized variables?
24024
240210
(24010)2
(2404)2
3.9 Construct an expression that will clear bit 1 in a byte-sized variable called PortA without alter-
ing any of the other bits.
3 . 1 2 HOMEWORK PROBLEMS 3 . 1 Convert the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!