Question: Basic Assignment (80 points) Create a Traffic light with your Launchpad with the following specifications: . It will operate like a regular traffic light, cycling
Basic Assignment (80 points) Create a Traffic light with your Launchpad with the following specifications: . It will operate like a regular traffic light, cycling from GREEN to YELLOW to RED and Back to GREEN . The timing of each light GREEN AND RED lights will be on for 10 seconds each. The Yellow light will be active for 5 seconds GREEN LED = GREEN LIGHT, RED LED = RED LIGHT, BOTH LEDs LIGHT YELLOW Additional Tasks: 10 points: Add a "sensor' input (buton push), that will simulate crosswalk signal. When the button is pushed, the system will wait 1 second, then transition to yellow and then to red. 10 points: The sensor input should only be recognized not cause a transition within that time 1 time per minute and must Details: . Code must be well commented to receive full credit. Code must be written in assembly language . 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
Get step-by-step solutions from verified subject matter experts
