Question
Please use only C (not C++) 1. Create a RIBS simulation that repeatedly blinks an LED on for 800 ms and off for 200 ms.
Please use only C (not C++)
1. Create a RIBS simulation that repeatedly blinks an LED on for 800 ms and off for 200 ms. Capture the behavior as a synchSM. Use a timer period of 100 ms for TimerISR. Create for-loop style processing using states for the LEDon and LEDoff states. 2. A festive light display controls 8 light bulbs (B7-B0). A0 activates the system. A1 chooses a mode. When A1=0, the lights blink all-on and all-off 1 second each. When A1=1, the lights move each second giving the illusion of a ball bouncing back and forth: 10000000, 01000000, ...., 00000001, 00000010, ..., 1000000, repeat. Use bit manipulation methods for the bouncing ball mode, rather than separate states for different output combinations. Hint: Use transitions for bit manipulation states. Bit manipulation initialization actions can take place on entry transitions.
2. A festive light display controls 8 light bulbs (B7-B0). A0 activates the system. A1 chooses a mode. When A1=0, the lights blink all-on and all-off 1 second each. When A1=1, the lights move each second giving the illusion of a ball bouncing back and forth: 10000000, 01000000, ...., 00000001, 00000010, ..., 1000000, repeat. Use bit manipulation methods for the bouncing ball mode, rather than separate states for different output combinations.
Hint: Use transitions for bit manipulation states. Bit manipulation initialization actions can take place on entry transitions.
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