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 Bit 2-0 are unused
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
