Question: Come up with a C for MSP430g2553 launch pad Started on a30second longGreen signal, then cycled to the Yellow signal for4seconds and then for20seconds
Come up with a C for MSP430g2553 launch pad" Started on a30second longGreen signal, then cycled to the Yellow signal for4seconds and then for20seconds on the Red signal. This pattern repeated continuously until a crosswalk request was initiated using the crosswalk push button. A visual signal will flash during the crosswalk to signal to the hearing impaired it is safe to cross the intersection.Also during the crosswalk time period, a buzzer was energized for the entire signalto signal to the visually impaired it is safe to proceed across the street. Once the crosswalk signal expired after 10 seconds, the traffic light operation resumed as described above." 1.Utilizethree(3)output pinsconnected to theG2553MCUto control the LEDS(Green, Yellow, Red).2.Utilize theon-board S1 push-buttonto request a crosswalk signalusing aninterruptcommand.During this interruptan LED should flash.3.Timer Amust be used in some part of the program. Whether it is to control thetraffic lightsorthecrosswalk functionis up to you.4.Also during the crosswalk a tone must be generated. (This can be accomplished with Timer
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
