According to the characteristics and the traffic lights in the actual control characteristics of the AT89S52 microcontroller, this paper proposes a microcomputer to control to a traffic light and time displaying the time. Also giving the hardware and software design methods, design process, including hardware design and programming are two steps in the MCU application may encounter the important design issues are involved. This state of default could be divided two parts on the crossroads, one is the normal state, and the other one is the state of emergency. While using the red, yellow, green light to direct the two different directions, showing the time by the LED digital tube,and the real-time control of the current traffic light LED display counts down the time to work in sync with the status lights, in order to maintaining maximum safety for traffic to alternate running smoothly. This article describes the basic principles of control and control performance, at the same time transporting the background of traffic system and the development and significance.
Keywords: microcontroller, control, time display, external interrupt, delay.