【正文】
控制系統(tǒng) 單片機(jī) AT89C51 數(shù)碼管 LED II Abstract When you pass an intersection, have you noticed that vehicles and pedestrians through the intersection methodical .Such an orderly situation rely on to achieve it? Rely on the traffic light control system. This paper will introduce a singlechip microputer ATC89C51 as the main control unit system. Through the STC89C51 microcontroller chip P1 and P2 port respectively control the eastwest and northsouth direction red yellow green light. Through STC89C51 microcontroller RXD and TXD control digital tube display time. Light emitting diode is used to realize traffic lights lit, achieved by the digital time display. The system not only has the basic function of the traffic lights and the countdown, you can also through the buttons in the event of an emergency is set to four directions for the red light in emergency mode, can also through the buttons in the night is set to the four directions of yellow light night mode, of course, also can through the button to set the countdown time of traffic light, make the system more in line with the actual situation. I design the traffic light control system can better simulate the crossroads of traffic, the pedestrians and vehicles to orderly designed the system of low cost, simple operation, stable performance, strong practicability. Keywords: Traffic Light Control System SCM AT89C51 Digital pipe LED 目 錄 摘要 ............................................................... I Abstract ........................................................................................................................ II 緒論 ............................................................................................................................... 5 1 系統(tǒng)設(shè)計(jì)方案論證 .................................................................................................... 7 設(shè)計(jì)方案 ................................................................................................................ 7 功能概述 ................................................................................................................ 8 2 系統(tǒng)硬件設(shè)計(jì) ........................................................................................................... 8 交通燈控制系統(tǒng)組成 ............................................................................................ 8 ATC89C51 芯片 .................................................................................................. 8 交通燈控制系統(tǒng)構(gòu)成 .......................................................................................11 各單元電路模塊功能 .......................................................................................... 12 時(shí)鐘電路模塊 .................................................................................................. 12 復(fù)位電路模塊 .................................................................................................. 12 主控制系統(tǒng)模塊 .............................................................................................. 13 信號(hào)燈輸出控制模塊 ...................................................................................... 14 時(shí)間顯示電路模塊 .......................................................................................... 14 系統(tǒng)電源模塊電路 .......................................................................................... 15 按鍵輸入模塊 ................................................................................................. 15 3 系統(tǒng)軟件設(shè)計(jì) ......................................................................................................... 16 軟件總體流程圖 ................................................................................................. 16 延時(shí)的設(shè)定 .......................................................................................................... 17 計(jì)數(shù)器初值計(jì)算 .............................................................................................. 17 相應(yīng)程序代碼 .................................................................................................. 18 4 系統(tǒng)調(diào)試分析及結(jié)果 ............................................................................................. 23 電路板實(shí)物的制作 .............................................................................................. 23 印制電路板 PCB 圖的繪制 .............................................................................. 23 實(shí)物的制做 ...................................................................................................... 23 系統(tǒng)硬件調(diào)試 ...................................................................................................