Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

1292107634, 978-1292107639

More Books

Students also viewed these Databases questions