Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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; cntStep 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