Question: Create a traffic light with your launchpad (MSP430G2553, assembly language) with the following specifications: 1) It will operate like a regular traffic light, cycling from

Create a traffic light with your launchpad (MSP430G2553, assembly language) with the following specifications:

1) It will operate like a regular traffic light, cycling from green to yellow to red and back to green.

2) The timing of each light: green and red lights will be one for 10 seconds each. The yellow light will be active for 5 seconds

3) Green LED = Green light; Red LED = red light; Both LEDs = yellow light

4) Add a "sensor" input (button push), that will simulate crosswalk signal. When the button is pushed, the system will wait 1 second, then transisition to yellow and then to red.

5) The sensor input should only be recognized 1 time per minute and must not cause a transition within that time.

Helpful guidelines: You should use interrupts and a Low power mode for this project, do not use delay cycles You should use at least 1 TimerA for the light cycles You can change the number in CCRO when the timer is stopped, or setup multiple interrupts with CCR1 and CCR2. There is no power requirement, so you may choose the SMCLK or ACLK for your timers Since button bounce should have no impact on the performance, you can probably ignore it.

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!