need help for 8051 progrramming question

Red light - p1.1
Yellow light - p1.2
Green light - p1.3

Assuming the crystal frequency used is 12MHz, write a program:
i) without using Timer, ii) using Timer 0 to run the traffic light with the sequence of Green à Yellow à Red continuously. The delays are specified as below: RED 7 seconds YELLOW 3 seconds
GREEN 6 seconds


  • simplycoder
    @#-Link-Snipped-#: Please show your work, then only we can help you to either write or debug.
    Please remember here, we are there to help you, only when in following cases.
    1)You have worked on the problem,but cannot get the logic.
    2)You have worked on the problem,and you want to optimize it.
    3)You have worked on the problem,you have the logic correct, yet you have difficulties in syntax.
    4)You have worked on the problem,and you cannot program.

    All the above points start with "You have worked on the problem..."
    I hope you have tried to work it out by yourself, so kindly show us the work, we dont mind to see work done by paper and pencil.
  • Harshad Italiya
    Harshad Italiya
    As said by Simplycoder first atleast give a try to make code then post it here for review then if there is anything wrong we will let you know. isn't this good idea?

You are reading an archived discussion.

Related Posts

Check out the small talk here: K. S. Pua – The Engineer Behind Pen Drive - CrazyEngineers Looking forward to your comments in this thread.
[HR][/HR]National programme is the first of its kind to put 3D printers in high school students’ hands FRANKFURT 2nd September 2011 – (NASDAQ: SSYS) Stratasys today announced that it has...
I am unable to understand what is cloud computing and a man called Vishwa Bandhu Dasgupta is confusing me more. How can rains affect the working of computers? I am...
Why cant we use a single voltage stabilizer for a house? is it necessary to use different stabilizers for different equipments.
Hi all, I am Roshan Aithal, an MCA final year student. Thought Works company is visiting our campus on 7th September, Kindly help me by mailing me the previous placement...