Question: Please only use #include RIMS.h Do not contain other module Consider a simple crosswalk system. The system initially illuminates a don't-walk symbol (B0-1). When a

 Please only use "#include "RIMS.h" Do not contain other module Consider

Please only use "#include "RIMS.h"

Do not contain other module

Consider a simple crosswalk system. The system initially illuminates a don't-walk symbol (B0-1). When a pedestrian presses button A0, the system illuminates a walk symbol (B1-1) for 10 seconds. The system can be captured as the following synchSM. We choose a period of 500 ms to detect button presses (meaning a button press should be at least 500 ms long to be consistently detected). We use a cnt variable to stay in state Walk for 10 seconds, by counting to 20 (20 500 ms 10 seconds). Crosswallk Period: 500 ms unsigned char cnt; cnt

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!