畢業(yè)設(shè)計(jì)論文 外文文獻(xiàn)翻譯 單片機(jī)類 AT89C2051 中英文對(duì)照
《畢業(yè)設(shè)計(jì)論文 外文文獻(xiàn)翻譯 單片機(jī)類 AT89C2051 中英文對(duì)照》由會(huì)員分享,可在線閱讀,更多相關(guān)《畢業(yè)設(shè)計(jì)論文 外文文獻(xiàn)翻譯 單片機(jī)類 AT89C2051 中英文對(duì)照(8頁(yè)珍藏版)》請(qǐng)?jiān)谘b配圖網(wǎng)上搜索。
1、AT89C2051 Author:Yuan Zhenming,Zhang Liang,Zhan Guohua; From: http://www.webCT.com AT89C2051 is made in the ATMEL Corporation, which is the low-voltage, high-performance CMOS8-bit microcontroller, Tablets containing repeated 2k bytes of program memory erasable read-only (PEROM) and random 128byt
2、es data memory (RAM), device using ATMELs high density, non-volatile memory technology, Compatible with the standard of MCS-51 instruction set, built-chip 8-bit general-purpose central processing unit and repeatedly write the Flash memory, which can effectively reduce the development costs. AT89C205
3、1 features a powerful single-chip can provide cost-effective in many Applications. Main features: Compatible the MCS51 command system; Contains the 2KB memory re-programming FLASH (1000); 2.7 ~ 6V voltage range; the whole Static work: 0Hz ~ 24KHz; Secrets 2 Program Memory Lock 128 8-bit int
4、ernal RAM 15 programmable I / O lines Two 16-bit timer / counter 6 interrupt sources, two external interrupt sources Programmable Serial Channel High Precision Voltage Comparator (P1.0,P1.1,P3.6); Have the output port of the LED direct drive Low-power idle and power-down mode The pin Pictu
5、re of AT89C2051 Picture one the pin of AT89C2051 AT89C2051’s functional description: VCC: Power Supply Voltage GND: land P1 port: P1 mouth is a group of 8-bit bi-directional I / O interface, P1.2 ~ P1.7 provide internal pull-up resistor,P1.0 and P1.1 internal s
6、upreme pull-up resistor. P1 mouth output buffer can absorb the current 20mA and direct-drive LED.When Programming and calibration, P1 mouth as the eighth address receive. P3 mouth: P3 port P3.0 ~ P3.5, P3.7 is the internal pull-up resistor with the seven bi-directional I / O interface. Did not brin
7、g out the P3.6,It as a generic I / O port, but can not visit. Can be used as a fixed-chip input comparator output signal. when P3 write 1, they were highed the internal pull-up resistor can be raised as an input port. P3 port special function as shown in table 1: Table 1 P3 mouth’s special feat
8、ures 引腳 功能特性 P3.0 RXD (串行輸入口) P3.1 TXD (串行輸出口) P3.2 (外中斷0) P3.3 (外中斷1) P3.4 T0 (定時(shí)/計(jì)數(shù)器0外部輸入) P3.5 T1 (定時(shí)/計(jì)數(shù)器1外部輸入) RST:Reset output. When the oscillator device reset, RST pin to maintain the high level of two machine cycle time. XTAL1: the RP-oscillator amplifier and internal cloc
9、k generator input. Timer Overview of the Timer 89C2051 single-chip-chip has two 16-bit timer / counter, That is the timer 0 (T0) and Timer 1 (T1). They all have from time to time and event count function, Can be used for timing control, delay of external events, such as counting and testing occa
10、sions. Timer’s T0 and T1—— two 16-bit timers in fact is 16-bit counter plus 1. Among them, T0 compositioned by the two 8-bit special function registers TH0 and TL0; T1 posed by the TH1 and TL1. These functions were controled by the special function registers TMOD and TCON When set to the work in
11、the timing, Through the pin count of the external pulse signal. When the input pulse signal generated by the falling edge of 1-0, The value of timer plus 1. At of every machine cycle during the S5P2 sampling pin T0 and T1 the input level, if a machine cycle before sample value of 1, The next machine
12、 cycle sampling value is 0, The counter plus 1. Since then during S3P1 of the machine cycle, New value will into the counter.so Detection of a 1-0 transition of the two machine cycles,So The maximum count frequency of oscillation frequency of 1 / 24. In addition to the option of work from time to ti
13、me or count, Each timer / counter have four kinds of work mode, That is, each of timer circuit kinds of four constitute a structural model Two low-power mode Idle mode In idle mode, CPU to maintain sleep and all-chip peripherals remain active, this way generated in Software, At this point, Chip
14、RAM and all the contents of special function registers remain unchanged. Idle mode was terminated by any interrupt request permission to or hardware reset. P1.0 and P1.1 ,in the non-use of external pull-up resistor on the case should be set to "0", Or in the use of pull-up resistor is set to "1."
15、It should be noted that: when uses of hardware reset Termination idle mode, AT89C2051 is usually stopped from the program until the internal reset control of the two machine cycles before the restore procedure Service. In this case the hardware within the prohibition of the reading and writing of i
16、nternal RAM, However, to allow access to ports, To eliminate the Hardware reset in the idle mode of port accidents may write, In principle, to enter the idle mode of instruction should not be under the command of a pin or an external memory port for a visit. Power-down mode In power-down mode, the
17、 oscillator to stop working, enter the power-down mode ,Instructions, who was the last one, the implementation of the Directive, Chip RAM and all the contents of special function registers the termination of the previous power-down mode be frozen. To withdraw from power-down mode is the only way to
18、reset the hardware, Reset will redefine all the Special Function Registers but Does not change the contents of RAM before the the Vcc work returned to normal levels Shall be null and void and must be reset to maintain a certain period of time in order to restart and oscillator stability P1.0 and P1
19、.1 in the non-use of external pull-up resistor on the case should be set to "0", Or in the use of pull-up resistor is set to "1." Oscillator Oscillator connected client XTAL1: RP-oscillator amplifier and internal clock generator input XTAL2: RP-oscillator amplifier output Characteristics of Osc
20、illator XTAL1, XTAL2 ware the RP-chip oscillator amplifier inputs and outputs, Quartz crystal can be composed of the clock oscillator or ceramic oscillator, For more information from the external input clock driver AT89C2051, XTAL1 input clock signal from, XTAL2 should be left vacant.As the input
21、to the internal circuit is a 2-flip-flop, Therefore, the external clock signal input without special requirements, However, it must comply with the maximum level and minimum norms and timing AT89C2051 作者:Yuan Zhenming, Zhang Liang, Zhan Guohua; 來(lái)自:http://www.webCT.com AT89C2051
22、是美國(guó)ATMEL公司生產(chǎn)的低電壓、高性能CMOS8位單片機(jī),片內(nèi)含2k bytes的可反復(fù)擦寫的只讀程序存儲(chǔ)器(PEROM)和128bytes的隨機(jī)數(shù)據(jù)存儲(chǔ)器(RAM),器件采用ATMEL公司的高密度、非易失性存儲(chǔ)技術(shù)生產(chǎn),兼容標(biāo)準(zhǔn)MCS-51指令系統(tǒng),片內(nèi)置通用8位中央處理器和可反復(fù)擦寫的Flash存儲(chǔ)器,可有效地降低開(kāi)發(fā)成本。功能強(qiáng)大AT89C2051單片機(jī)可提供許多高性價(jià)比的應(yīng)用場(chǎng)合。 3.2主要功能特性: *兼容MCS51指令系統(tǒng); *2KB可重編程FLASH存儲(chǔ)器(1000次); *2.7~6V電壓范圍; *全靜態(tài)工作:0Hz~24KHz; *2級(jí)程序存儲(chǔ)器保密鎖定;
23、 * 1288位內(nèi)部RAM; *15條可編程I/O線; *兩個(gè)16位定時(shí)器/計(jì)數(shù)器; *6個(gè)中斷源,兩個(gè)外部中斷源; *可編程串行通道; *高精度電壓比較器(P1.0,P1.1,P3.6); *直接驅(qū)動(dòng)LED的輸出端口; *低功耗空閑和掉電模式 AT89C2051的管腳引腳圖如圖2所示。 圖1 AT89C2051封裝管腳引腳圖 AT89C2051引腳功能說(shuō)明: VCC:電源電壓 GND:地 P1口:P1口是一組8位雙向I/O接口,P1.2~P1.7提供內(nèi)
24、部上拉電阻,P1.0和P1.1內(nèi)部無(wú)上拉電阻。P1口輸出緩沖器可吸收20mA的電流并可直接驅(qū)動(dòng)LED。編程和校驗(yàn)時(shí), P1口作為第八位地址接收。 P3口:P3口的P3.0~P3.5、P3.7是帶有內(nèi)部上拉電阻的7個(gè)雙向I/O接口。P3.6沒(méi)有引出,它作為一個(gè)通用的I/O口,但是不可訪問(wèn)??勺鳛楣潭ㄝ斎氲钠瑑?nèi)比較器的輸出信號(hào)。當(dāng)P3口寫入1時(shí),它們被內(nèi)部的上拉電阻拉高并可作為輸入端口。P3口的特殊功能如表1所示: RST:復(fù)位輸出。當(dāng)振蕩器復(fù)位器件時(shí),要保持RST腳兩個(gè)機(jī)器周期的高電平時(shí)間。 XTAL1:振蕩器的反相放大器及內(nèi)部時(shí)鐘發(fā)生器的輸入端。 XTAL2:振蕩器反相放大器的輸出端。
25、 表1 P3口的特殊功能 引腳 功能特性 P3.0 RXD (串行輸入口) P3.1 TXD (串行輸出口) P3.2 (外中斷0) P3.3 (外中斷1) P3.4 T0 (定時(shí)/計(jì)數(shù)器0外部輸入) P3.5 T1 (定時(shí)/計(jì)數(shù)器1外部輸入) 定時(shí)器 定時(shí)器概述 89C2051單片機(jī)片內(nèi)有兩個(gè)16位定時(shí)器/計(jì)數(shù)器,即定時(shí)器0(T0)和定時(shí)器1(T1)。它們都有定時(shí)和事件計(jì)數(shù)功能,可用于定時(shí)控制、延時(shí)、對(duì)外部事件計(jì)數(shù)和檢測(cè)等場(chǎng)合。 定時(shí)器T0和T1兩個(gè)16位定時(shí)器實(shí)際上都是16位加1計(jì)數(shù)器。其中,T0由兩個(gè)8位特殊功能寄存
26、器TH0和TL0構(gòu)成;T1由TH1和TL1構(gòu)成。這些功能都由特殊功能寄存器TMOD和TCON所控制。 設(shè)置為定時(shí)工作方式時(shí),定時(shí)器計(jì)數(shù)AT89C2051片內(nèi)振蕩器輸出的經(jīng)12分頻后的脈沖,即每個(gè)機(jī)器周期使定時(shí)器的數(shù)值加1直至計(jì)滿溢出。當(dāng)AT89C205采用12MHz晶振時(shí),一個(gè)機(jī)器周期為1s,計(jì)數(shù)頻率為1MHz。 設(shè)置為計(jì)數(shù)工作方式時(shí),通過(guò)引腳對(duì)外部脈沖信號(hào)計(jì)數(shù)。當(dāng)輸入脈沖信號(hào)產(chǎn)生由1至0的下降沿時(shí),定時(shí)器的值加1。在每個(gè)機(jī)器周期的S5P2期間采樣T0和T1引腳的輸入電平,若前一個(gè)機(jī)器周期采樣值為1,下一個(gè)機(jī)器周期采樣值為0,則計(jì)數(shù)器加1。此后的機(jī)器周期S3P1期間,新的數(shù)值裝入計(jì)數(shù)器
27、。所以,檢測(cè)一個(gè)1至0的跳變需要兩個(gè)機(jī)器周期,故最高計(jì)數(shù)頻率為振蕩頻率的1/24。除了可以選擇定時(shí)或計(jì)數(shù)工作方式外,每個(gè)定時(shí)器/計(jì)數(shù)器還有4種工作模式,也就是每個(gè)定時(shí)器可構(gòu)成4種電路結(jié)構(gòu)模式。 兩種低功耗模式 空閑模式 在空閑模式下,CPU保持睡眠狀態(tài)而所有片內(nèi)的外設(shè)仍保持激活狀態(tài),這種方式有軟件產(chǎn)生。此時(shí),片內(nèi)RAM和所有特殊功能寄存器的內(nèi)容保持不變??臻e模式可由任何允許的中斷請(qǐng)求或者硬件復(fù)位終止。 P1.0和P1.1在不使用外部上拉電阻的情況下應(yīng)設(shè)置為“0”,或者在使用上拉電阻的情況下設(shè)置為“1”。 應(yīng)注意的是:在用硬件復(fù)位終止空閑模式時(shí), AT89C2051通常從
28、程序停止一直到內(nèi)部復(fù)位獲得控制之前的兩個(gè)機(jī)器周期處回復(fù)程序執(zhí)行。在這種情況下片內(nèi)硬件禁止對(duì)內(nèi)部RAM的讀寫,但允許對(duì)端口的訪問(wèn),要消除硬件復(fù)位終止空閑模式對(duì)端口意外寫入的可能,原則上進(jìn)入空閑模式指令的下一條指令不應(yīng)對(duì)端口引腳或外部存儲(chǔ)器進(jìn)行訪問(wèn)。 掉電模式 在掉電模式下,振蕩器停止工作,進(jìn)入掉電模式的指令是最后一條被執(zhí)行的指令,片內(nèi)RAM和所有特殊功能寄存器的內(nèi)容在終止掉電模式前被凍結(jié)。退出掉電模式的唯一方法是硬件復(fù)位,復(fù)位后將重新定義全部特殊功能寄存器但不改變RAM中的內(nèi)容在Vcc恢復(fù)到正常工作電平前,復(fù)位應(yīng)無(wú)效且必須保持一定時(shí)間以使振蕩器重啟動(dòng)并穩(wěn)定工作。P1.0和P1.1在不使用外部上拉電阻的情況下應(yīng)設(shè)置為“0”,或者在使用上拉電阻的情況下設(shè)置為“1”。 振蕩器----振蕩器連接端 XTAL1:振蕩器反相放大器以及內(nèi)部時(shí)鐘發(fā)生器的輸入端 XTAL2:振蕩器反相放大器的輸出端 振蕩器特征 XTAL1、XTAL2為片內(nèi)振蕩器的反相放大器的輸入和輸出端,如圖3所示。可采用石英晶體或者陶瓷振蕩器組成時(shí)鐘振蕩器,如需從外部輸入時(shí)鐘驅(qū)動(dòng)AT89C2051,時(shí)鐘信號(hào)從XTAL1輸入,XTAL2應(yīng)懸空。由于輸入到內(nèi)部電路是經(jīng)過(guò)一個(gè)2分頻觸發(fā)器,所以輸入的外部時(shí)鐘信號(hào)無(wú)需特殊要求,但它必須符合電平的最大和最小值及時(shí)序規(guī)范。
- 溫馨提示:
1: 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 市教育局冬季運(yùn)動(dòng)會(huì)安全工作預(yù)案
- 2024年秋季《思想道德與法治》大作業(yè)及答案3套試卷
- 2024年教師年度考核表個(gè)人工作總結(jié)(可編輯)
- 2024年xx村兩委涉案資金退還保證書
- 2024年憲法宣傳周活動(dòng)總結(jié)+在機(jī)關(guān)“弘揚(yáng)憲法精神推動(dòng)發(fā)改工作高質(zhì)量發(fā)展”專題宣講報(bào)告會(huì)上的講話
- 2024年XX村合作社年報(bào)總結(jié)
- 2024-2025年秋季第一學(xué)期初中歷史上冊(cè)教研組工作總結(jié)
- 2024年小學(xué)高級(jí)教師年終工作總結(jié)匯報(bào)
- 2024-2025年秋季第一學(xué)期初中物理上冊(cè)教研組工作總結(jié)
- 2024年xx鎮(zhèn)交通年度總結(jié)
- 2024-2025年秋季第一學(xué)期小學(xué)語(yǔ)文教師工作總結(jié)
- 2024年XX村陳規(guī)陋習(xí)整治報(bào)告
- 2025年學(xué)校元旦迎新盛典活動(dòng)策劃方案
- 2024年學(xué)校周邊安全隱患自查報(bào)告
- 2024年XX鎮(zhèn)農(nóng)村規(guī)劃管控述職報(bào)告