Question: Problem 2. Consider an 8-light lighting system that is controlled by an array of 8-bit registers. The first element of the array controls light #1,


Problem 2. Consider an 8-light lighting system that is controlled by an array of 8-bit registers. The first element of the array controls light #1, the second element of the array controls light #2, and so on. We call these registers Light Status Register or LSR. For each LSR, the bits control the light based on the below specification . Bit 7-6: control the light intensity: 00 off, 01 low, 10 medium, 11 high. . Bit 5-4: control the color: blue 00, green 01, red 10, yellow 11 . Bit 3 controls whether the light flickers: 0 no flicker, 1 flicker. o Bit 2-0 are unused. Examples: If we write 0x0 to an LSR, it means that the corresponding light should be off. If we write 0xFF to an LSR, it means that the corresponding light should be yellow with the highest intensity and it should flicker. . . If we write 0x68 to an LSR, it means that the corresponding light should be low intensity red with flicker
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
