AT89S51 中英文翻譯_第1頁
AT89S51 中英文翻譯_第2頁
AT89S51 中英文翻譯_第3頁
AT89S51 中英文翻譯_第4頁
AT89S51 中英文翻譯_第5頁
已閱讀5頁,還剩9頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、外文原文及中文翻譯外文原文at89s51the at89s51 is a low-power, high-performance cmos 8-bit microcontroller with 4k bytes of in-system programmable flash memory. the device is manufactured using atmels high-density nonvolatile memory technology and is compatible with the industry-standard 80c51 instruction set and

2、pinout. the on-chip flash allows the program memory to be reprogrammed in-system or by a conventional nonvolatile memory programmer. by combining a versatile 8-bit cpu with in-system programmable flash on a monolithic chip, the atmel at89s51 is a powerful microcontroller which provides a highly-flex

3、ible and cost-effective solution to many embedded control applications. 1. features: compatible with mcs.-51 products 4k bytes of in-system programmable (isp) flash memory endurance: 1000 write/erase cycles 4.0v to 5.5v operating range fully static operation: 0 hz to 33 mhz three-level program memor

4、y lock 128 x 8-bit internal ram 32 programmable i/o lines two 16-bit timer/counters six interrupt sources full duplex uart serial channel low-power idle and power-down modes interrupt recovery from power-down mode watchdog timer dual data pointer power-off flag fast programming time flexible isp pro

5、gramming (byte and page mode) green (pb/halide-free) packaging option2.dscriptionthe at89s51 provides the following standard features:4k bytes of flash, 128 bytes of ram, 32 i/o lines, watchdog timer, two data pointers, two 16-bit timer/counters, a five-vector two level interrupt architecture, a ful

6、l duplex serial port, on-chip oscillator, and clock circuitry. in addition, the at89s51 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 int

7、errupt system to continue functioning. the power-down mode saves the ram contents but freezes the oscillator, disabling all other chip functions until the next external interrupt or hardware reset. 3.pin description: vcc:supply voltage (all packages except 42-pdip). gnd:ground (all packages except 4

8、2一pdip; for 42-pdip gnd connects only the logic core and the embedded program memory). vdd:supply voltage for the 42-pdip which connects only the logic core and the embedded program memory. pwrvdd:supply voltage for the 42-pdip which connects only the i/o pad drivers. the application board must conn

9、ect both vdd and pwrvdd to the board supply voltage. pwrgnd:ground for the 42一pdip which connects only the i/o pad drivers. pwrgnd and gnd are weakly connected through the common silicon substrate, but not through any metal link. the application board must connect both gnd and pwrgnd to the board gr

10、ound. 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 can also be configured to be the multiplexed low-order address/data bus during accesses

11、to external program and data memory. in this mode, po 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 po

12、rt 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 (lip) because of the inte

13、rnal pull一ups. 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

14、being pulled low will source current (lip) 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 use 16-bit addresses. in this application, port 2 uses strong internal pull一ups when emitt

15、ing 1s. during accesses to external data memory that use 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. port 3:port 3 is an 8一bit bi-directional i/o po

16、rt with internal pull一ups. the port 3 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 (lip) because of the pull

17、-ups.port 3 receives some control signals for flash programming and verification.port 3 also serves the functions of various special features of the at89s51,as shown in the following table. rst:reset input. a high on this pin for two machine cycles while the oscillator is running resets the device.

18、this pin drives high for 98 oscillator periods after the watchdog times out. the disrto bit in sfr auxr (address 8eh) can be used to disable this feature. in the default state of bit disrto, the reset high out feature is enabled. ale/prog:address latch enable (ale) is an output pulse for latching th

19、e 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 beused for external timing or clocking purposes. note, however, that

20、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 eff

21、ect if the microcontroller is in external execution mode. psen:program store enable (psen) is the read strobe to external program memory.when the at89s51 is executing code from external program memory, psen is activated twice each machine cycle, except that two psen activations are skipped during ea

22、ch 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 ooooh up to ffffh. note, however, that if lock bit 1 is programmed, ea will be internally latched on reset.ea sh

23、ould be strapped to vcc for internal program executions.this pin also receives the 12-volt programming enable voltage (vpp) during flash programming. xtal1:input to the inverting oscillator amplifier and input to the internal clock operating circuit. xtal2:output from the inverting oscillator amplif

24、ier 4.special function registers:note that not all of the addresses are occupied, and unoccupied addresses may not be implemented on the chip. read accesses to these addresses will in general return random data, and write accesses will have an indeterminate effect.user software should not write 1 s

25、to these unlisted locations, since they may be used in future products to invoke new features. in that case, the reset or inactive values of the new bits will always be 0. interrupt registers:the individual interrupt enable bits are in the ie register. two priorities can be set for each of the five

26、interrupt sources in the ip register. dual data pointer registers:to facilitate accessing both internal and external data memory, two banks of 16-bit data pointer registers are provided: dpo at sfr address locations 82h-83h and dp1 at 84h-85h.bit dps=0 in sfr auxr1 selects dpo and dps=1 selects dp1.

27、 the user should always initialize the dps bit to the appropriate value before accessing the respective data pointer register. power off flag:the power off flag (pof) is located at bit 4 (pcon.4) in the pcon sfr. pof is set to 1”during power up. it can be set and rest under software control and is n

28、ot affected by reset. 5.memory organization:mcs-51 devices have a separate address space for program and data memory. up to 64k bytes each of external program and data memory can be addressed. program memory:if the ea pin is connected to gnd, all program fetches are directed to external memory. on t

29、he at89s51,if ea is connected to vcc, program fetches to addresses ooooh through fffh are directed to internal memory and fetches to addresses 1000h through ffffh are directed to external memory. data memory:the at89s51 implements 128 bytes of on-chip ram. the 128 bytes are accessible via direct and

30、 indirect addressing modes. stack operations are examples of indirect addressing, so the 128 bytes of data ram are available as stack space. 6.watchdog timer (one-time enabled with reset-out):the wdt is intended as a recovery method in situations where the cpu may be subjected to software upsets. th

31、e wdt consists of a 14一bit counter and the watchdog timer reset (wdtrst) sfr. the wdt is defaulted to disable from exiting reset. to enable the wdt, a user must write 01 eh and oe1 h in sequence to the wdtrst register (sfr location oa6h). when the wdt is enabled, it will increment every machine cycl

32、e while the oscillator is running. the wdt timeout period is dependent on the external clock frequency. there is no way to disable the wdt except through reset (either hardware reset or wdt overflow reset). when wdt overflows, it will drive an output reset high pulse at the rst pin. 7.timer 0 and 1:

33、timer 0 and timer 1 is a 16-bit timer/counter.8.interrupts:the at89s51 has a total of five interrupt vectors:two external interrupts,two timer interrupts,and the serial port interrupt.these interrupts are all shown in figure 8.1.each of these interrupt sources can be individually enabled or disabled

34、 by setting or chearing a bit in special function register ie.ie also contains a global disable bit,ea,which disables all interrupts at once.note that table 8.1 shows that bit positions ie.6 and ie.5 are unimplemented.user software should not write 1s to these bit positions,since they may be used in

35、 future at89 products.the timer 0 and timer 1 flags, tf0 and tf1,are set at s5p2 of the cycle in which the timers overflow.the values are then polled by the circuitry in the next cycle.table 8.1:interrupt enable(ie) registerfigure 8.1:interrupt sources9.idle mode:in idle mode ,the cpu puts itself to

36、 sleep while all the on-chip peripherals remain active.the mode is invoked by software.the content of the on-chip ram and all the special function registers remain unchanged during this mode.the idle can be terminated by any enabled interrupt or by a hardware reset.中文翻譯at89s51 at89s51是美國atmel公司生產(chǎn)的低功

37、耗,高性能cmos 8位單片機(jī),片內(nèi)含4k bytes的可系統(tǒng)編程的flash只讀程序存儲器,器件采用atmel公司的高密度、非易失性存儲技術(shù)生產(chǎn),兼容標(biāo)準(zhǔn)8051指令系統(tǒng)及引腳。它集flash程序存儲器既可在線編程(isp)也可用傳統(tǒng)方法進(jìn)行編程及通用8位微處理器于單片芯片中,atmel公司的功能強(qiáng)大,低價(jià)位at89s51單片機(jī)可為您提供許多高性價(jià)比的應(yīng)用場介,可靈活應(yīng)用于各種控制領(lǐng)域。 1.主要性能參數(shù): 與mcs-51 產(chǎn)品指令系統(tǒng)完全兼:容 4k字節(jié)在線系統(tǒng)編程(isp) flash閃速存儲器 1000次擦寫周期 4. 0-5. 5v的工作電壓范圍 全靜態(tài)工作模式:0hz-33mhz

38、三級程序加密鎖 1288字節(jié)內(nèi)部ram 32個(gè)可編程i/o口線 2個(gè)16位定時(shí)/計(jì)數(shù)器 6個(gè)中斷源 全雙工串行uart通道 低功耗空閑和掉電模式 中斷可從空閑模式喚醒系統(tǒng) 看門狗(wdt)及雙數(shù)據(jù)指針 掉電標(biāo)識和快速編程特性 靈活的在線系統(tǒng)編程(isp一字節(jié)或頁寫模式) 2.功能特性概述: at89s51提供以下標(biāo)準(zhǔn)功能:4k字節(jié)flash閃速存儲器,128字節(jié)內(nèi)部ram, 32個(gè)i/o口線,看門狗(wdt),兩個(gè)數(shù)據(jù)指針,兩個(gè)16位定時(shí)/計(jì)數(shù)器,一個(gè)5向量兩級中斷結(jié)構(gòu),一個(gè)全雙工串行通信口,片內(nèi)振蕩器及時(shí)鐘電路。同時(shí),at89s51可降至0hz的靜態(tài)邏輯操作,并支持兩種軟件可選的節(jié)電工作模式

39、??臻e方式停止cpu的工作,但允許ram,定時(shí)/計(jì)數(shù)器,串行通信口及中斷系統(tǒng)繼續(xù)工作。掉電方式保存ram中的內(nèi)容,但振蕩器停止工作并禁止其它所有部件工作直到下一個(gè)硬件復(fù)位。引腳功能說明:3.引腳功能 vcc: 電源電壓 gnd:地 p0口:p0口是一組8位漏極開路型雙向i/o口,也即地址/數(shù)據(jù)總線復(fù)用口。作為輸出口用時(shí),每位能驅(qū)動8個(gè)ttl邏輯門電路,對端口寫1可作為高阻抗輸入端用。 在訪問外部數(shù)據(jù)存儲器或程序存儲器時(shí),這組口線分時(shí)轉(zhuǎn)換地址(低8位)和數(shù)據(jù)總線復(fù)用,在訪問期間激活內(nèi)部上拉電阻。 在flash編程時(shí),p0 口接收指令字節(jié),而在程序校驗(yàn)時(shí),輸出指令字節(jié),校驗(yàn)時(shí),要求外接上拉電阻。

40、p1口:p1是一個(gè)帶內(nèi)部上拉電阻的8位雙向i/o口,p1的輸出緩沖級可驅(qū)動(吸收或輸出電流)4個(gè)ttl邏輯門電路。對端口寫1,通過內(nèi)部的上拉電阻把端口拉到高電平,此時(shí)可作輸入口。作輸入口使用時(shí),囚為內(nèi)部存在上拉電阻,某個(gè)引腳被外部信號拉低時(shí)會輸出一個(gè)電流(in)。 flash編程和程序校驗(yàn)期間 p 1接收低8位地址。 p2口:p2是一個(gè)帶有內(nèi)部上拉電阻的8位雙向i/o口,p2的輸出緩沖級可驅(qū)動(吸收或輸出電流)4個(gè)ttl邏輯門電路。對端口寫1,通過內(nèi)部的上拉電阻把端口拉到高電平,此時(shí)可作輸入口,作輸入口使用時(shí),囚為內(nèi)部存在上拉電阻,某個(gè)引腳被外部信號拉低時(shí)會輸出一個(gè)電流(in)。在訪問外部程序

41、存儲器或16位地址的外部數(shù)據(jù)存儲器(例如執(zhí)行movx dptr指令)時(shí),p2口送出高 8位地址數(shù)據(jù)。在訪問8位地址的外部數(shù)據(jù)存儲器(如執(zhí)行movx ri指令)時(shí),p2口線卜的內(nèi)容(也即特殊功能寄存器(sfr)區(qū)中p2寄存器的內(nèi)容),在整個(gè)訪問期間不改變。 flash編程或校驗(yàn)時(shí),p2亦接收高位地址和其它控制信號。 p3口:p3口是一組帶有內(nèi)部上拉電阻的8位雙向i/o口。p3口輸出緩沖級可驅(qū)動(吸收或輸出電流)4個(gè)ttl邏輯門電路。對p3 口寫入“1”時(shí),它們被內(nèi)部上拉電阻拉高并可作為輸入端口。作輸入端時(shí),被外部拉低的p3 口將用上拉電阻輸出電流(in)。p3口除了作為一般的i/o口線外,更重要

42、的用途是它的第二功能。p3 口還接收一些用于flash閃速存儲器編程和程序校驗(yàn)的控制信號。第二功能如下表:p3口引腳第二功能p3.0rxd(串行輸入)p3.1txd(串行輸出)p3.2/into(外部中斷0輸入)p3.3/int1(外部中斷1輸入)p3.4t0(定時(shí)/計(jì)數(shù)器0外部輸入)p3.5t1(定時(shí)/計(jì)數(shù)器1外部輸入)p3.6/wr(外部數(shù)據(jù)存儲器寫信號)p3.7/rd(外部數(shù)據(jù)存儲器讀信號)rst:復(fù)位輸入。當(dāng)振蕩器工作時(shí),rst引腳出現(xiàn)兩個(gè)機(jī)器周期以上高電平將使單片機(jī)復(fù)位。wdt溢出將使該引腳輸出高電平,設(shè)置sfr auxr 的disrto位(地址8eh)可打開或關(guān)閉該功能。disrt

43、o位缺省為reset輸出高電平打開狀態(tài)。 ale/prog:當(dāng)訪問外部程序存儲器或數(shù)據(jù)存儲器時(shí),ale(地址鎖存允許)輸出脈沖用于鎖存地址的低8位字節(jié)。即使不訪問外部存儲器,ale仍以時(shí)鐘振蕩頻率的1/6輸出固定的正脈沖信號,囚此它可對外輸出時(shí)鐘或用于定時(shí)目的。要注意的是:每當(dāng)訪問外部數(shù)據(jù)存儲器時(shí)將跳過一個(gè)ale脈沖。對flash存儲器編程期間,該引腳還用于輸入編程脈沖(prog)。如有必要,可通過對特殊功能寄存器(sfr)區(qū)中的8eh單元的d0位置位,可禁正ale操作。該位置位后,只有一條movx和movc指令ale才會被激活。此外,該引腳會被微弱拉高,單片機(jī)執(zhí)行外部程序時(shí),應(yīng)設(shè)置ale無效。 psen:程序儲存允許(psen)輸出是外部程序存儲器的讀選通信號,當(dāng)at89s51由外部程序存儲器取指令(或數(shù)據(jù))時(shí),每個(gè)機(jī)器周期兩次psen有效,即輸出兩個(gè)脈沖。當(dāng)訪問外部數(shù)據(jù)存儲器,沒有兩次有效的psen信號。 ea/vpp:外部訪問允許。欲使cpu僅訪問外部程序存儲器(地址為0000h-ffffh), ea端必須保持低電平(接地)。需注意的是:如果加密位lb

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論