購買設計請充值后下載,,資源目錄下的文件所見即所得,都可以點開預覽,,資料完整,充值下載可得到資源目錄里的所有文件。。。【注】:dwg后綴為CAD圖紙,doc,docx為WORD文檔,原稿無水印,可編輯。。。具體請見文件預覽,有不明白之處,可咨詢QQ:12401814
Intelligent traffic light
With economic development, increased the number of vehicles, road congestion is becoming increasingly serious, intelligent traffic lights on the emerged. At present, the world's Intelligent Transportation System will be: a huge structure, management difficulties, such as the maintenance of large inputs. In order to improve the existing traffic conditions, and to overcome the existing shortcomings of intelligent transportation system I designed analog control traffic lights in urban and rural areas of small-scale smart traffic lights. It has small size, intelligence, maintenance into small, easy to install and so on. And other intelligent transportation system compared to the system to adapt to economic and social development, in line with the current status of scientific and technological development.
Intelligent traffic lights are a comprehensive use of computer network communication technology, sensor technology to manage the automatic control system of traffic lights. Urban traffic control system is used for urban traffic data monitoring, traffic signal control and traffic management computer system; it is the modern urban traffic control system command and the most important component. In short, how to use the appropriate control method to maximize the use of costly cities to build high-speed roads, trunk road and the ramp to alleviate urban areas with the neighboring state of traffic congestion has become more and more traffic management and urban planning departments need to address the main problem. To this end, this article on the urban traffic light control system analog circuit theory, design calculation and experimental testing and other issues to discuss specific analysis.
The General Situation of AT89C51
Microcontrollers are used in a multitude of commercial applications such as modems, motor-control systems, air conditioner control systems, automotive engine and among others. The high processing speed and enhanced peripheral set of these microcontrollers make them suitable for such high-speed. However, these critical application domains also require that these microcontrollers are highly reliable. The high reliability and low market risks can be ensured by a robust testing process and a proper tools environment for the validation of these microcontrollers both at the component and at the system level. Intel Platform Engineering department developed an object-oriented multi-threaded test environment for the validation of its AT89C51 automotive microcontrollers. The goals of this environment was not only to provide a robust testing environment for the AT89C51 automotive microcontrollers, but to develop an environment which can be easily extended and reused for the validation of several other future microcontrollers. The environment was developed in conjunction with Microsoft Foundation Classes (AT89C51). The paper describes the design and mechanism of this test environment, its interactions with various hardware/software environmental components, and how to use AT89C51.
1.1 Introduction
The 8-bit AT89C51 CHMOS microcontrollers are designed to handle high-speed calculations and fast input/output operations. MCS 51 microcontrollers are typically used for high-speed event control systems. Commercial applications include modems, motor-control systems, printers, photocopiers, air conditioner control systems, disk drives, and medical instruments. The automotive industry use MCS 51 microcontrollers in engine-control systems, airbags, suspension systems, and antilock braking systems (ABS). The AT89C51 is especially well suited to applications that benefit from its processing speed and enhanced on-chip peripheral functions set, such as automotive power-train control, vehicle dynamic suspension, antilock braking, and stability control applications. Because of these critical applications, the market requires a reliable cost-effective controller with a low interrupt latency needed in real time applications, and a CPU with above average processing power in a single package. The financial and legal risk of having devices that operate unpredictably is very high. Once in the market, particularly in mission critical applications such as an autopilot or anti-lock braking system, mistakes are financially prohibitive. Redesign costs can run as high as a $500K, much more if the fix means 2 back annotating it across a product family that share the same core and/or peripheral design flaw. In addition, field replacements of components are extremely expensive, as the devices are typically sealed in modules with a total value several times that of the component. To mitigate these problems, it is essential that comprehensive testing of the controllers be carried out at both the component level and system level under worst case environmental and voltage conditions. This complete and thorough validation necessitates not only a well-defined process but also a proper environment and tools to facilitate and execute the mission successfully. Intel Chandler Platform Engineering group provides post silicon system validation (SV) of various micro-controllers and processors. The system validation process can be broken into three major parts. The type of the device and its application requirements determine which types of testing are performed on the device.
1.2 The AT89C51 provides the following standard features:
4Kbytes of flash, 128 bytes of RAM, 32 I/O lines, two 16-bittimer/counters, a five vector two-level interrupt architecture, a full duplex serial port, on-chip oscillator and clock circuitry. In addition, the AT89C51 is designed with static logic for operation down to zero frequency and supports two software selectable power saving modes. The Idle Mode stops the CPU while allowing the RAM, timer/counters, serial port and interrupt sys -tem to continue functioning. The Power-down Mode saves the RAM contents but freezes the oscillator disabling all other chip functions until the next hardware reset.
1.3Pin Description
GND Ground.
Port 0:Port 0 is an 8-bit open-drain bi-directional I/O port. As an output port, each pin can sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be used as high impedance inputs .Port 0 may also be configured to be the multiplexed low order address/data bus during accesses to external program and data memory. In this mode P0 has internal pull-ups. Port 0 also receives the code bytes during Flash programming, and outputs the code bytes during program verification. External pull-ups are required during program verification.
Port 1:Port 1 is an 8-bit bi-directional I/O port with internal pull-ups. The Port 1 output buffers can sink/source four TTL inputs. When 1s are written to Port 1 pins they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port 1 pins that are externally being pulled low will source current (IIL) because of the internal pull-ups. Port 1 also receives the low-order address bytes during Flash programming and verification.
Port 2:Port 2 is an 8-bit bi-directional I/O port with internal pull-ups. The Port 2 output buffers can sink/source four TTL inputs. When 1s are written to Port 2 pins they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port 2 pins that are externally being pulled low will source current (IIL) because of the internal pull-ups. Port 2 emits the high-order address byte during fetches from external program memory and during accesses to Port 2 pins that are externally being pulled low will source current (IIL) because of the internal pull-ups. Port 2 emits the high-order address byte during fetches from external program memory and during accesses to external data memory that uses 16-bit addresses . In this application, it uses strong internal pull-ups when emitting 1s. During accesses to external data memory that uses 8-bit addresses, Port 2 emits the contents of the P2 Special Function Register. Port 2 also receives the high-order address bits and some control signals during Flash programming and verification. Output buffers can sink/source four TTL inputs. When 1s are written to Port 3 pins they are pulled high by the internal pull-ups and can be used as inputs. As inputs, Port 3 pins that are externally being pulled low will source current (IIL) because of the pull-ups. Port 3 also serves the functions of various special feature soft the AT89C51 as listed below:
RST:Reset input. A high on this pin for two machine cycles while the oscillator is running resets the device.
ALE/PROG:Address Latch Enable output pulse for latching the low byte of the address during accesses to external memory. This pin is also the program pulse input (PROG) during Flash programming. In normal operation ALE is emitted at a constant rate of 1/6 the oscillator frequency, and may be used for external timing or clocking purposes. Note, however, that one ALE pulse is skipped during each access to external Data Memory. If desired, ALE operation can be disabled by setting bit 0 of SFR location 8EH. With the bit set, ALE is active only during a MOVX or MOVC instruction. Otherwise, the pin is weakly pulled high. Setting the ALE-disable bit has no effect if the microcontroller is in external execution mode.
PSEN:Program Store Enable is the read strobe to external program memory. When the AT89C51 is executing code from external program memory, PSEN is activated twice each machine cycle, except that two PSEN activations are skipped during each access to external data memory.
EA/VPP:External Access Enable. EA must be strapped to GND in order to enable the device to fetch code from external program memory locations starting at 0000H up to FFFFH. Note, however, that if lock bit 1 is programmed, EA will be internally latched on reset. EA should be strapped to VCC for internal program executions. This pin all receives the 12-volt programming enable voltage (VPP) during Flash programming, for parts that require 12-volt VPP.
Chip erase
The power to erase the entire Flash array, through the appropriate combination of control signals and by holding ALE / 10 ms compiled low. "1" written in code array chip erase operation must be performed before the code memory can be reprogrammed. Byte of each code in the flash memory array can be written, and the entire array can be erased through the appropriate combination of control signals. Write cycle is self-timed, and once started, will be automatically done. Information between the computer interface into a computer electronic system to process the information outside the two forms. There is a physical signal, it represents the value of the plan. Any interface functions can be divided into the number of operations that modify data in some way, the conversion process between the internal and external form of a number of steps. Analog – digital converter for continuously variable signals into digital form, may be taken by a fixed binary value. If the discontinuous change in the output of the sensor, there is no ADC is necessary. In this case, the signal conditioning section must input signals into a direct connection to the part of the form next to the interface, input / output section of the output interface of the computer itself, takes a similar form, the obvious difference is that the information the flow in the opposite direction, it is through to the outside world, in this case, the program may call an output routine supervision and operator interface, and implementation ratio can be used for digital - analog converter digital . This subroutine in turn pass the information generated, it can be converted into a corresponding electrical signal output device using the DAC analog form. In the form of operating conditions of the last signal for the implementing agency. Almost always used in the microcomputer circuit signal is too small to connect directly to the outside world, you must use some kind of interface translation . they are a more appropriate form of interface circuit part of the design we have seen computer engineers who wish to apply for one of the most important task facing the form of this figure is only the most useful computer connected to the device can be turned on or off, in a discrete bit mode of the micro-computer, where each bit represents a switch or regulator in order to resolve the status of real-world problems, the microcontroller must be more than just a CPU, a program and data memory. in addition, it must include the hardware to allow the CPU to access information from the outside world. Once the CPU to gather information and processing data must be able to change on the outside of some parts of these hardware devices, peripherals, CPU outside the window.
The peripheral micro-controller provides the most basic form is a general-purpose I70ports, each I /O pins can be used as input or output. The function of each pin is set or clear the corresponding bit data direction register in the appropriate decisions in the initialization phase of the program, each output pin to drive the CPU instructions used by the pin can be considered to use the program instructions the CPU (or read). Some type of logic 1 or logic 0. Communication function of the serial unit includes a Microcontroller , CPU and external devices to communicate serial format, instead of using bit parallel format and require less I / O pins, which makes it cheaper, but slower The serial transmission synchronous or asynchronous
黃河科技學院畢業(yè)設計(文獻翻譯) 第 5 頁
智能交通燈簡述
隨著經濟的發(fā)展,車輛的數目不斷增加,道路堵車現象日益嚴重,智能交通燈就應運而生了。目前世界上的智能交通系統存在的問題是:系統結構龐大、管理困難、維護投入大等。為了改善現有的交通狀況,并克服現有智能交通系統的缺點我設計了城鄉(xiāng)交通燈模擬控制小型化的智能交通燈。它具有小型化、智能化、維修投入小、易于安裝等特點。與其他的智能交通系統相比該系統更適應經濟和社會的發(fā)展,符合目前科技發(fā)展的現狀。
智能交通燈是一項綜合運用網絡通訊計算機技術、感應技術來管理交通燈具的自動控制系統。城市交通控制系統是用于城市交通數據監(jiān)測、交通信號燈控制與交通疏導的計算機綜合管理系統,它是現代城市交通監(jiān)控指揮系統中最重要的組成部分??傊?,如何采用合適的控制方法,最大限度利用好耗費巨資修建的城市高速道路,緩解主干道與坡道、城區(qū)同周邊地區(qū)的交通擁堵狀況,越來越成為交通運輸管理和城市規(guī)劃部門亟待解決的主要問題。為此,本文就城鄉(xiāng)交通燈模擬控制系統的電路原理、設計計算和實驗調試等問題來進行具體分析討論。
AT89C51
AT89C51概況
單片機控制器被用來在眾多的商業(yè)應用,如調制解調器,電機控制系統,空調控制系統,汽車發(fā)動機和其他領域。高處理速度和增強型微控制器的外設集,使它們適合這樣高速的基于事件的應用程序。然而,這些關鍵的應用領域也需要這些單片機控制器性能是高度可靠的。可確保高可靠性和低市場風險由一個強大的測試過程和一個適當的工具,為這些微控制器在組件和系統級驗證環(huán)境。 Intel平臺工程部門開發(fā)驗證它的AT89C51的汽車微控制器面向對象多線程的測試環(huán)境。這種環(huán)境下的不僅為AT89C51的汽車微控制器提供一個寬廣的測試環(huán)境,而且發(fā)展的環(huán)境可以很容易地擴展和其他幾個未來的微控制器的驗證重用。環(huán)境與Microsoft基礎類(AT89C51)為共同發(fā)展。本文介紹了本次測試環(huán)境的設計和機制,與各種軟/硬件環(huán)境組成部分的相互作用,以及如何使用AT89C51的。
MCS - 51簡介
8位單片機AT89C51?CHMOS微控制器的設計用于處理高速計算和快速輸入/輸出的操作。MCS - 51單片機通常用于高速事件控制系統。商業(yè)應用包括調制解調器,電機控制系統,打印機,復印機,空調控制系統,磁盤驅動器,醫(yī)療器械。汽車行業(yè)使用MCS 51單片機在發(fā)動機控制系統,安全氣囊,懸架系統,防抱死制動系統(ABS)。 AT89C51從效益上特別適合于應用程序,其處理速度和增強型外設功能,如在汽車動力傳動控制,車輛動態(tài)懸架,防抱死制動,穩(wěn)定控制系統的應用。因為這些關鍵的應用,市場需要一個可靠的成本低的中斷延遲響應,服務能力大的需要驅動時間和事件在實時應用中的集成外設,以及一個高于平均處理能力水平的CPU控制器的軟件包。設備操作的財務和法律風險是很難預測的。一旦在市場上,尤其是在關鍵任務應用,如自動駕駛儀或防抱死制動系統的失誤將使財政望而卻步。為50萬美元的設計成本可以運行高得多,如果修復意味著2回注釋整個產品系列共享相同的核心和/或外圍設備的設計缺陷。此外,更換零部件領域是極其昂貴的,因為這些設備通常是密封模塊組件的幾次,總價值。為了減輕這些問題,單片機控制器是必不可少的,同時在最壞情況下的環(huán)境和電壓條件下的組件級和系統級進行全面的測試控制器。這種全面,徹底的驗證,不僅需要一個定義良好的過程,也需要一個適當的環(huán)境和工具,以方便和成功地執(zhí)行任務。英特爾錢德勒平臺工程組提供各種微控制器和處理器后硅系統驗證(SV)。系統驗證過程可分為三個主要部分。設備的類型及其應用的要求,確定在哪些類型的測試設備上進行。窗體頂端
AT89C51提供以下標準功能:
4KB的閃存,128字節(jié)RAM,32 條I / O線,兩個16位的定時器/計數器,一個兩級五向量中斷結構,一個完整的全雙工串行口,片上振蕩器和時鐘電路。此外,AT89C51的靜態(tài)邏輯運行可下降到零頻率,并支持兩種軟件可選的節(jié)電模式??臻e模式時CPU停止工作,同時允許的RAM,定時器/計數器,串口和中斷系統繼續(xù)運行。掉電模式保存RAM的內容,但凍結振蕩器,禁用所有其他芯片功能,直到下一次硬件復位。
1-3引腳描述
VCC電源電壓。
GND接地。
端口0:端口0是一個8位漏極開路雙向I / O端口。作為一個輸出端口,每個引腳可以驅動8個TTL輸入。當1寫入端口0引腳,引腳可以用作高阻抗輸入,為了在訪問外部程序和數據存儲器的地址/數據總線,這種模式下P0具有內部上拉電阻,端口0也可以被配置為低8位地址使用。端口0接收FLASH編程的代碼字節(jié)期間,方案論證過程中輸出代碼字節(jié)。外部上拉的過程中需要核查程序。
端口1:端口1是一個8位雙向內部上拉I / O端口。端口1的輸出緩沖器可以吸收來自四個TTL的輸入。當1寫入端口1他們會被內部上拉拉高,并可以用作輸入引腳。端口1,被外部拉低,因為低將會使電流源(IIL)引腳內部上拉。端口1還可以接收低地址字節(jié)的flash編程和校驗。
端口2:端口2是一個8位雙向內部上拉I / O的端口。端口2輸出緩沖器可以吸收來自四個TTL的輸入。當1寫入端口2他們會被內部上拉拉高,并可以用作輸入引腳。作為輸入,端口2引腳在外部被拉低將源電流(IIL)由于內部上拉。端口2發(fā)出的高階地址字節(jié)在從外部程序存儲器獲取和訪問端口2引腳被外部拉低時,低源電流(IIL)由于內部上拉。在從外部程序存儲器獲取和訪問外部數據存儲器時,端口2排放高階地址字節(jié),使用16位地址(MOVX @ DPTR)。在此應用中,它使用了強大的內部上拉發(fā)送1時。在訪問外部數據存儲器,使用8位地址,端口2發(fā)出的P2特殊功能寄存器的內容。 P2口也接收高地址位在flash編程和校驗和一些控制信號。
端口3:端口3是一個8位雙向I / O的端口內部上拉UPS。端口3輸出緩沖器可以吸收/源四個TTL輸入。當1寫入端口3他們拉高的內部上拉,并可以用作輸入引腳。低將作為輸入,3口被外部拉低的引腳源電流(IIL)的上拉。 端口3也有軟下面列出的AT89C51的各種特殊功能的功能。
RST:復位輸入。該引腳上高一兩個機器周期,而振蕩器運行的設備復位。
ALE / PROG:地址鎖存使輸出脈沖鎖存地址的低字節(jié)能訪問外部存儲器。該引腳也是方案在Flash編程脈沖輸入(PROG鍵)。在正常運作的ALE發(fā)出恒定速率的1/6振蕩器頻率,可以使用外部時鐘或定時。但是請注意,這一個ALE脈沖被跳過,在每次訪問外部數據存儲器。如果需要,可以禁止ALE操作設置位 0 SFR的位置8EH。位設置,ALE僅在執(zhí)行MOVX或MOVC指令。否則,腳弱拉高。設置的ALE禁止位有沒有效果,如果微處理器在外部執(zhí)行模式。
PSEN:程序存儲是外部程序存儲器的讀選通,當theAT89C51執(zhí)行代碼從外部程序存儲器時,除了兩個PSEN的激活在每次訪問外部數據存儲器跳過,PSEN是激活每個機器周期的兩倍。
EA / VPP:外部訪問啟用。 EA必須綁到GND為了使設備開始在0000H到FFFFH的外部程序存儲器位置獲取代碼。但是請注意,如果鎖定位1編程,EA將在內部復位鎖存。 EA應綁到VCC內部程序執(zhí)行。此引腳的所接收12伏的編程電壓(VPP),需要12伏VPP的零件,使Flash編程期間。
芯片擦除:
通過適當的控制信號組合,并通過控股的ALE / 10毫秒編低,電擦除整個Flash陣列。所有“1”寫的代碼陣列芯片擦除操作前必須執(zhí)行的代碼存儲器可以重新編程。
編程接口
閃存陣列中的每一個代碼的字節(jié)可以被寫入,并可以通過適當的控制信號組合擦除整個陣列。操作周期是自定時,而且一旦啟動,將由時間來自動來完成。微機接口之間的信息轉換微機電子系統處理的信息外兩種形式。存在一個物理信號,但該計劃之內,它代表的是數值。任何接口的功能可以分為以某種方式修改數據的操作的數量,這樣的內部和外部的形式之間的轉換過程中進行了一些步驟。模擬 - 數字轉換器,用于連續(xù)可變的信號轉換成相應的數字形式,可采取的任何一個可能的固定的二進制值。如果不是連續(xù)變化的傳感器的輸出,ADC是沒有必要的。在這種情況下,信號調理部分必須輸入信號轉換成一個可以直接連接到旁邊的接口部分的形式,微機本身的輸出接口輸入/輸出部分,采取了類似的形式,明顯的區(qū)別是,這里的信息是流在相反的方向,它是通過計劃從內到外界,在這種情況下,該程序可能調用一個輸出子程序監(jiān)督操作界面和執(zhí)行的比例可用于數字 - 模擬轉換器所需的數字。這個子程序依次傳遞的信息,可以被轉換成相應的電信號輸出設備使用DAC模擬形式。最后信號的條件適合的形式經營的執(zhí)行機構。在微電腦電路所使用的信號幾乎總是太小,直接連接到外界,必須使用某種接口翻譯。接口電路部分的設計是我們已經看到,找到更合適他們的一個形式,是在微型計算機的信息離散位模式表示有意申請微機的工程師面臨的最重要的任務之一,這個數字的形式是最有用的微機連接到設備只可以開啟或關閉,其中每個位代表一個開關或調??節(jié)器。為了解決現實世界問題的狀態(tài),有時微控制器必須超過只是一個CPU,一個程序和數據存儲器。此外,它必須包含硬件允許CPU訪問來自外界的信息。一旦CPU收集信息和處理數據,還必須能夠應對外界部分的某些的變化。
外設微控制器提供的最基本的形式是通用I70端口,每個I / O引腳可以作為輸入或輸出使用。每個引腳的功能是通過寄存器設置或清除相應的位在相應的決定數據方向。在程序的初始化階段,每個輸出引腳可驅動所使用的CPU指令引腳可以被視為使用程序指令的CPU。某種類型的邏輯1或邏輯0。串行單位包括微控制器,讓CPU與外部設備進行通信的串行格式,需要更少的I / O引腳進行的通信功能,串行傳輸進行同步或異步,這使得它更便宜,但速度較慢,而不是使用位并行格式。