Question: In a traffic signal, three LED lights (Red, Yellow, and Green) are operated at busy intersections to regulate traffic flow. Assuming the LEDs are

In a traffic signal, three LED lights (Red, Yellow, and Green) are operated at busy intersections to regulate traffic flow. Assuming the LEDs are connected to the 2nd, 5th. and 7th pin of port 1 of an 8051 microcontroller respectively, for a smooth programmed operation. In that order, the LEDs must be ON for 20 mS, 5 mS, and 35 mS duration one after the other and will be OFF otherwise. Design a flowchart and write an assembly language program for this scenario. Assume XTAL values as 15MHz.
Step by Step Solution
3.40 Rating (169 Votes )
There are 3 Steps involved in it
Here is a flowchart that outlines the steps involved in programming the 8051 microcontroller to oper... View full answer
Get step-by-step solutions from verified subject matter experts
