Question
Consider a complex patient health monitoring system which is made up of eight units that are independently busy (active) or available (inactive). One can keep
Consider a complex patient health monitoring system which is made up of eight units that are independently busy (active) or available (inactive). One can keep track of these eight units with an eight bit binary BUSYNESS pattern, where a bit is 1 if the unit is active and 0 if the unit is inactive. Given this composite bit pattern of eight bits one can find the status of an individual unit by using a mask and a bitwise logical operation. Explain for each:
a. What mask value and what operation would one use to indicate that unit 2 is active?
b. What mask value and what operation would one use to indicate that units 2 and 6 are no longer active?
c. What mask value and what operation would one use to indicate that all units are active?
d. What mask value and what operation would one use to indicate that all units are inactive?
Please show work.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started