【正文】
. 67P 1 . 78P 3 .0 /R X D10P 3 .1 /T X D11P 3 .2 /I NT 012P 3 .3 /I NT 113P 3 .4 /T 014P 3 .7 / R D17P 3 . 6 / W R16P 3 .5 /T 115P 2 .7 /A 1 528P 2 .0 / A 821P 2 .1 / A 922P 2 .2 /A 1 023P 2 .3 /A 1 124P 2 .4 /A 1 225P 2 .5 /A 1 326P 2 .6 /A 1 427U1A T 8 9 C5 1P RO G RA M = 0 0 . H E XX1CR Y S T A LC41 0 0 uC12 2 0 nC22 2 0 nR11 0 kD1L E D R E DD2L E D Y E L L O WD3L E D G RE E ND4L E D G RE E ND5L E D Y E L L O WD6L E D R E DD7L E D R E DD8L E D G RE E ND9L E D Y E L L O WD 1 0L E D R E DD 1 1L E D G RE E ND 1 2L E D Y E L L O W1 2U 2 : A7 4 S 0 53 4U 2 : B7 4 S 0 55 6U 2 : C7 4 S 0 598U 2 : D7 4 S 0 51110U 2 : E7 4 S 0 51312U 2 : F7 4 S 0 5 圖 1 整體實(shí)驗(yàn)連接電路圖 程序流程圖 開(kāi) 始 設(shè)置定時(shí),顯示初始化 是否到 1s? 秒值減 1,并顯示時(shí)間, LED 秒值是否為 0? 顯示下一個(gè)狀態(tài) 主程序 運(yùn)行過(guò)程 SN:綠燈 (20), EW:紅燈 是否到 1 秒 SN:黃燈亮, EW:紅燈 Count10? SN:黃燈滅, EW:紅燈 是否到 0 秒 N Y Y N N EW:綠燈 (20), SN:紅燈 是否到 3 秒 EW:黃燈亮, SN:紅燈 Count10? EW:黃燈滅, EW:紅燈 是否到 1 秒 Y Y Y N N N LED 顯 示 區(qū) Y LED 顯示程序 ay 獲取當(dāng)前通行剩余時(shí)間 E/S/W/N 狀態(tài)送 P1 口 位選碼送 P2 口 倒計(jì)時(shí)個(gè) /十位送 P2 口 調(diào)用 Delay 延時(shí) 加 1 兩 位顯示完? Y N 返回主程序 五 、心得體會(huì) 通過(guò)這次交通燈的課程設(shè)計(jì),使我得到了一次用專(zhuān)業(yè)知識(shí)、專(zhuān)業(yè)技能分析和解決現(xiàn)實(shí)問(wèn)題的能力。20 秒初值 LCALL STATE1 LCALL COUNT 。狀態(tài) 5,東西方向紅燈亮 ,南北方向綠燈閃 。到 1 秒則秒值減 1 DJNZ R3,WAIT1 。東西方向紅燈亮,南北方向黃燈閃 CLR H_GREEN SETB H_YELLOW SETB L_RED CLR L_YELLOW RET 。s 21 win. Michel Platini, president of European football39。s time, your ideas are always special to clear. Want, want, line is clear, as if nothing could shake his. Also once seemed to be determined to do something, but more often is he backed out at last. Dislike his cowardice, finally found that there are a lot of love, there are a lot of miss, like shadow really have been doomed. Those who do, just green years oneself give oneself an arm injection, or is a selfrighteous spiritual. 一個(gè)人的時(shí)候,自己的想法總是特別地清晰。ll be traveling fast, so despite the distance, it will not be like diving into the deep end of a pool. It will be like he is diving into the shallow end. Skydiver preps for the big jump When he jumps, he is expected to reach the speed of sound 690 mph (1,110 kph) in less than 40 seconds. Like hitting the top of the water, he will begin to slow as he approaches the more dense air closer to Earth. But this will not be enough to stop him pletely. If he goes too fast or spins out of control, he has a stabilization parachute that can be deployed to slow him down. His team hopes it39。t want to give vent to out your inner voice can be in the high school children of the feelings in a period, but was eventually infarction when graduation party in the throat, later again stood on the pitch he has sweat profusely, looked at his thrown a basketball hoops, suddenly found himself has already can39。s antiracism taskforce, is in London for the Football Association39。東西方向綠燈閃,南北方向紅燈亮 CLR H_YELLOW CLR L_RED CLR L_GREEN CLR L_YELLOW RET STATE3: CLR H_RED 。定時(shí)器 50ms 未到 ,則等待 CLR TF0 。狀態(tài) 4,東西方向紅燈亮 ,南北方向綠燈亮 。首先關(guān)閉顯示 MOV P3,A 。具有一個(gè)數(shù)據(jù)指針 DPTR。 設(shè)計(jì) 思路 本程序的設(shè)計(jì)思路是 :首先東西方向綠燈亮, 南北方向紅燈亮,同時(shí)開(kāi)始倒計(jì)時(shí) 20s , 在 7 段數(shù)碼管上顯示時(shí)間。 測(cè)控技術(shù)與儀器 專(zhuān)業(yè)課程設(shè)計(jì) 題 目 : 模擬交通燈的設(shè)計(jì) 系 別 : 機(jī)電工程系 班 級(jí) : 162902 姓 名 : 劉康 張羽翔 趙尉翔 教 師 : 王斌 李建勇 目 錄 一、 設(shè)計(jì)任務(wù) ...................................................................................................... 3 二 、 模擬交通燈控制系統(tǒng)工作原理 ....................................................................... 3 模擬交通燈控制系統(tǒng)的工作原理 .......................................................................... 3 三 、設(shè)計(jì)基本要求和步驟 ..................................................................................... 4 基本要求 .................................................................................................................. 4 設(shè)計(jì) 思路 ......................................