Mahmood619
Member • Sep 2, 2011
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
Yellow light - p1.2
Green light - p1.3
[FONT="][/FONT]
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