Answered You can hire a professional tutor to get the answer.
An automaic traffic light. When the traffic light does not detect a vehicle (using infrared transceiver), the traffic light (RGB LED) will...
An automaic traffic light. When the traffic light does not detect a vehicle (using infrared transceiver), the traffic light (RGB LED) will continuously display RED.When a vehicle is detected, the traffic light will blink RED 3 times. before turning to GREEN. By the time it is GREEN, the 7segment DSP1 and DSP2 will display '10' and counting down each second. By the time the counting reaches 5, the traffic light turns form GREEN to YELLOW. The YELLOW will blinks each second until the count reaches 0 and turns RED. The code blow is by MiniIDE software, using Dragon 12 board. We need to change the code that do the same thing by using freecale codewarrior software in c language or assembly language with dragon 12 plus board. We transiformed some of them but not working well, please help us find out what's wrong with our code or give us new code that work well in c or assembly language in codewarrior, appreciate for help!