Question: please solve it in assembly using HCS12 dragon board Controlling the traffic lights on the intersection of N Dixie Ave. and E 1st St. [25

please solve it in assembly using HCS12 dragon boardplease solve it in assembly using HCS12 dragon board Controlling the traffic

Controlling the traffic lights on the intersection of N Dixie Ave. and E 1st St. [25 Marks] For each direction of these two streets, three lights (green, yellow, and red) are used to control the traffic. Assume that the RGB-LED on the DragonBoard is used to represent the traffic lights on N Dixie Ave., while the LEDs connected to pins 0, 1, and 2 of PORTB are used to represent the green, yellow, and red light on E 1st St., respectively. Based on traffic occurrence, we need to be able to change the duration of the green phases on the intersection. Therefore, your program should read a binary value 'n' from the DIP-switches connected to PTH0~2, and use n as a multiplier for the delays of the green phases, if n is 0, consider it as n 1. Write an assembly program to control the traffic lights on this intersection based on the aforementioned description. Your program should have 6 states and each state should have a different delay as shown in the table. State N Dixie Ave E 1st St. Delay [sec.] 1 Green (RGB green Red (PB2) 2 Yellow (RGB blue) 4 3n Red (RGB red) Red Red Red Red Red Green (PB0) Yellow (PB1) Red 3n The following figure shows an example of the first state in the table where the two directions of N Dixie Ave. are GREEN while the two directions of E 1st St. are RED

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!