中国地质大学长城学院本科毕业设计外文资料翻译学院工程技术学院学生姓名张三专业电气工程及其自动化学号0432432022020年3月15日外文翻译译文Stc89c52rc单片机的功能介绍Stc89c52rc单片机是由宏晶体技术引入的新一代高速/低功耗/超抗干扰单片机。该指令码与传统的8051单片机完全兼容。12时钟/机器周期和6时钟/机器周期可任意选择。增强型8051单片机,可任意选择6时钟/机周和12时钟/机周,指令码与传统8051完全兼容。一、以下是他的参数工作电压:5.5v-3.3v(5v单片机)/3.8v-2.0v(3v单片机)工作频率范围:0-40mhz,相当于普通8051的0-80mhz,实际工作频率可达48mhz•8K字节的用户应用程序空间集成512字节片上ram一般I/O端口(32),复位后:P1/P2/P3/P4为准双向端口/弱上拉,P0为开漏输出,用作总线扩展时,不需要拉电阻,用作I/O端口时,需要拉电阻。ISP(系统内可编程)/IAP(应用内可编程),无专用编程器,无专用仿真器,用户程序可通过串行口(RXD/P3.0,TXD/P3.1)直接下载,一件可在数秒内完成具有EEPROM功能•具有看门狗功能•总共3个16位定时器/计数器。定时器T0、T1、T2•4个外部中断、下降沿中断或低电平触发电路,可通过外部中断低电平触发中断模式唤醒掉电模式•通用异步串行端口(UART)和定时器软件也可用于实现多个UART工作温度范围:-40~+85℃(工业级)/0~75℃(工业级)•PDIP封装二、c52单片机两端口的作用P0端口(P0.0-P0.7,39-32针):P0端口是一个8位双向I/O端口,具有开放漏极。作为输出端口,每个管脚可驱动8个TTL负载。当将“1”写入端口P0时,它可以用作高阻抗输入。在访问外部程序和数据存储器时,端口P0还可以提供低8位地址和8位数据的多路复用总线。此时,端口P0的内部上拉电阻是有效的。在flashROM编程中,端口P0接收指令字节,而在程序验证中,端口P0输出指令字节。验证时,需将拉电阻接在外部。P1端口(P1.0-P1.7,引脚1-8):P1端口是一个具有内部上拉电阻的8位双向I/O端口。P1的输出缓冲器可驱动(吸收或输出电流模式)4个TTL输入。向端口写入1时,内部上拉电阻器将端口拉至高电位,该电位可用作输入端口。当P1端口用作输入端口时,由于存在内部上拉电阻,由外部下拉的引脚将输出电流()。此外,P1.0和P1.1还可以用作定时器/计数器2的外部技术输入(P1.0/T2)和定时器/计数器2的触发输入(P1.1/t2ex)。P2端口(P2.0-P2.7,21-28针):P2端口是具有内部上拉电阻的8位双向I/O端口。P2的输出缓冲器可驱动(吸收或输出电流模式)4个TTL输入。当端口写入1时,内部上拉电阻器将端口拉到高电平,该电平可用作输入端口。当使用P2作为输入端口时,由于内部上拉电阻,由外部信号下拉的管脚将输出电流()。当使用16位地址(例如执行“MOVX@dptr”指令)访问外部程序存储器和外部数据存储器时,P2发送高8位地址。当访问8位地址的外部数据存储器(如执行“MOVX@R1”指令)时,P2端口pin的内容(即特殊寄存器(SFR)区域中P2寄存器的内容)在整个访问期间不会改变。外文翻译原文Stc89c52rcsinglechipmicrocomputerintroductionStc89c52rcsinglechipmicrocomputerisanewgenerationofhigh-speed/Low-Power/superanti-interferencesinglechipmicrocomputerintroducedbymacrocrystaltechnology.Theinstructioncodeisfullycompatiblewiththetraditional8051singlechipmicrocomputer.The12clock/machinecycleand6clock/machinecyclecanbeselectedarbitrarily.Enhanced8051singlechipmicrocomputer,6clock/machinecycleand12clock/machinecyclecanbearbitrarilyselected,andtheinstructioncodeisfullycompatiblewiththetraditional8051一、HerearehisparametersWorkingvoltage:5.5v-3.3v(5Vsinglechipmicrocomputer)/3.8v-2.0v(3Vsinglechipmicrocomputer)Workingfrequencyrange:0-40mhz,equivalentto0-80mhzofordinary8051,andtheactualworkingfrequencycanreach48mhz•8KbytesofuserapplicationspaceIntegrated512byteramonchipGeneralI/Oports(32),afterreset:P1/P2/P3/P4isquasitwo-wayport/weakpull-up,P0isopendrainoutput,whenusedasbusexpansion,pullresistanceisnotrequired,whenusedasI/Oport,pullresistanceisrequired.ISP(insystemprogrammable)/IAP(inapplicationprogrammable),nospecialprogrammer,nospecialemulator,userprogramcanbedownloadeddirectlythroughserialport(RXD/P3.0,TXD/P3.1),andonepiececanbecompletedinsecondsWithEEPROMfunction•withwatchdogfunction•atotalof316bittimers/counters.TimerT0,T1,T2•4externalinterrupts,fallingedgeinterruptorlowleveltriggercircuit,powerdownmodecanbeawakenedbyexternalinterruptlowleveltriggerinterruptmode•universalasynchronousserialport(UART),andtimersoftwarecanalsobeusedtorealizemultipleUARTSWorkingtemperaturerange:-40~+85℃(industriallevel)/0~75℃(commerciallevel)•PDIPencapsulation二、ThefunctionoftwoportsofC52singlechipmicrocomputerP0port(p0.0-p0.7,39-32pin):P0portisan8-bitbidirectionalI/Oportwithopendrain.Asanoutputport,eachpincandrive8TTLloads.Whenwriting1toportP0,itcanbeusedasahighimpedanceinput.Whenaccessingtheexternalprogramanddatamemory,portP0canalsoprovidethemultiplexingbusoflow8-bitaddressand8-bitdata.Atthistime,theinternalpull-upresistanceofportP0iseffective.InflashROMprogramming,portP0receivesinstructionbytes,whileinprogramverification,itoutputsinstructionbytes.Duringverification,itisrequiredtoconnectthepullresistanceexternally.P1port(p1.0-p1.7,pins1-8):P1portisan8-bitbidirectionalI/Oportwithinternalpull-upresistance.TheoutputbufferofP1candrive(absorboroutputcurrentmode)4TTLinputs.Whenwriting1totheport,theinternalpull-upresistorpullstheporttoahighpotential,whichcanbeusedasaninputport.WhenP1portisusedasinputport,becausethereisinternalpull-upresistance,thosepinspulleddownbyexternalwilloutputacurrent().Inaddition,P1.0andP1.1canalsobeusedasexternaltechnicalinput(P1.0/T2)oftimer/counter2andtriggerinput(P1.1/t2ex)oftimer/counter2.Seethefollowingtablefordetails:InflashROMprogrammingandprogramverification,P1receivesthelower8-bitaddress.P2port(p2.0-p2.7,21-28pins):P2portisan8-bitbidirectionalI/Oportwithinternalpull-upresistance.TheoutputbufferofP2candrive(absorboroutputcurrentmode)4TTLinputs.Whentheportiswrittento1,theinternalpull-upresistorpullstheporttothehighlevel,whichcanbeusedastheinputport.WhenP2isusedastheinputport,thepinspulleddownbytheexternalsignalwilloutputacurrent()becauseoftheinternalpull-upresistance.