版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、微处理器(sor、微型计算机puter、单片机(Single-A sor incorporates(表现为) the functions of a computers central unit (CPU)onaegratedcircuit,1(IC)oratmostafew egratedcircuits(集成电路作为 器(RAM、ROM和EPROM等Aputer is a computer微处理器(sor、微型计算机puter、单片机(Single-A sor incorporates(表现为) the functions of a computers central unit (CPU)o
2、naegratedcircuit,1(IC)oratmostafew egratedcircuits(集成电路作为 器(RAM、ROM和EPROM等Aputer is a computer sor as its central sing unit. includes sor, memory, and input/output (I/O). They are physically small . keyboardandscreenfor input and output)are alcomputers 块Amicrocontroller(sometimes abbreviated(缩写)CuCo
3、rMCU) is asmall computer on circuitaprogrammableinput/output器件). Program he form of flashorOTP ROMis also often included on chip, as well as a typically small amount of thesorsusedalcomputersorothergenerale , ALU 。Inanunita tperformsarithmeticandlogicaloperations. TheALUisafundamental(基本的)building o
4、f the central sing unit of a computer, and even the simplest sors one for ech as ma aining timers. The sors found inside modern CPUs graphics(图解计算)singunitsmodate(适应)erfulandcomplexALUs;asinglecomponentmaycontainanumberof Incomputing and lly in computer hardware, controller isachip, ancard, a stand-
5、alone (独)device (usually called a control Incomputing and lly in computer hardware, controller isachip, ancard, a stand-alone (独)device (usually called a control tripheraldevice.Thismaybealinkntwopartsofacomputer(for leatmanagesstomemoryforthecomputeroracontrolleronanexternal (部tmanagestheoperationo
6、f(andconnectiont bus累加器(A)accumulator:运算前用于保存操作数,运算后用于保存结果。anaccumulatorisaregister inermediatearithmeticandlogicresultsare TheMemory Data Register (MDR) istheregister ofa computerst containsdata to be stored in the computer storage (e.g. RAM), or the data after a fetch from computer storage. It act
7、s like a buffer(缓存区) and holds t is copied from memoryreadyforthe sortouse(ID:IRIncomputing, aninstruction register (IR) is the part of aCPUs instructioncurrentlybeingexecutedort stores The program counter (PC)is a computerisinitsinstructionsor t indicates where TheMemory Address Register (MAR)is aC
8、PUt either stores the address from which data will befetched to the CPU or the address to which data will be and 器还接收CPU的控制信号,以确定执行读/Connect puter with the 8 bit address bus and 8 bit data bus, address bus groupofeightdata 器还接收CPU的控制信号,以确定执行读/Connect puter with the 8 bit address bus and 8 bit data b
9、us, address bus groupofeightdata CPU to the memory address decoder, todetermineselected unit. The storage receives CPU signals determinetheread/write Theconnectionofexternal andsormust go througherface adapter(I erface),eachI/erface and the corresponding external device has a fixed (Binarymlc计算机中常用编
10、码:BCD(BinaryCodedDecimal)ASCII(American StandardCodeMachinenumber:thecomputerexpressed numbersinTrue value: the value represented by the number of machines The absolute value ofthe ode+theabsolutevalueoftheoriginalcode=Theabsolute value of the absolute value of the negativecomplement, -1 = negative
11、the Overflow: refers to the result of the operation number of symbols of beyond the -128-range,anddestroyedthesign l Function Register,用以存放可以读 Two l Function Register,用以存放可以读 Two 16-bit timer / counters, each of which can be set for the count to count events,sobesetfortimingcontrolcomputer,andaccord
12、ingtothecountor 一个全双工 full UART( 通用异步接收发送器 Universal 行通信(UsedtoimplementserialcommunicationandPC.)nthemicrocontrollerorOn-cillator and clock generation circuit, but the need for external quartz 来选择的省电方式空闲方式(Idle Mode)和掉电方式Mode15%;掉电方式中,片内振荡器停止工作,一切工作暂停,只保存片内 RAM 中的内容,直到下一次硬件复位为止,此时电流降至Compared with
13、8051, er-saving work, leisure er-down Operating frequency can be reduced to 0Hz, wo software saving- idlemode(IdleMode)er-downmodeerDown,theMode),theMode stops the CPU, RAM, timer / counters, serial line port errupt system continueworking,thecurrent can bereducedto 15% oferdown mode, on-cillator to
14、stop working, all work spended, only to save the contents theon-chip RAM, untilthe rdware reset.Thecurrent dropsbelow15 sminimumto0.6. WhenmultipleMCUtocompeteusingtheexternalbus,youcancontrolthebus 11. 89C51的CPU运算器:包括 ALU,8 位暂存器 1. WhenmultipleMCUtocompeteusingtheexternalbus,youcancontrolthebus 11.
15、 89C51的CPU运算器:包括 ALU,8 位暂存器 1(TMP1)temporary)、暂存器 2(TMP2,8ACCB 和程序状态寄存器PSW Program ACCisoften used asanoperand操作数)by othe ALUinputoperator theotherfromtheTMP1theoperandsconducted,theresultssentbacktotheThePSWisusedtoindicatetheusinformationoftheinstruction Bregistermultiply,andperationswhenusedtosto
16、reoperands,alsousedstorepartoftheresultsofheabsenceofoperation,canbeusedgeneral-eregisters.ThereisabitaccumulatorCforhandlingbit 。The program counter by two 8-bit CH and PCL, a total of 16, save addressofthenextinstructiontobeexecuted.Oscillatorandtimingcircuitsneedexternal quartz crystal and freque
17、ncy tuning capacitor, the frequency of 0-24MHz, basic beat ofthe pulse signal as the 89C51, the smallesttime unit.12. 单片机引脚结构图(图示2. XTAL1(19 脚)XTAL2(18 脚。XTAL2 crystalpinsis(19feet)andare (18feet). XTAL2 pick end ofthe external crystal fine-tuning capacitor, the output of ernal circuitXTAL1 isconnec
18、tedtothe otherside,theinputofernaloscillation circuitfrequencyisthenatural frequencyofthecrystal,tochecktheoscillationcircuitis working properly,canbeusedoscilloscopeviewXTAL2whetherthec ntisapulseoutput.Ifanexternalclock, XTAL2 should be left unconnected, XTAL1 is RST、ALE、PSEN/EA/。RSTcircuitfrequen
19、cyisthenatural frequencyofthecrystal,tochecktheoscillationcircuitis working properly,canbeusedoscilloscopeviewXTAL2whetherthec ntisapulseoutput.Ifanexternalclock, XTAL2 should be left unconnected, XTAL1 is RST、ALE、PSEN/EA/。RST(9 脚完成复位。ALE(Address latch enable,30 脚)89C51正常工作时,ALE 好坏。器29 脚) 89C51 Cont
20、rol signal pins, RST, ALE, PSEN / and EA / RST (9 feet): to ma ain two machine cycles high to complete reset. ALE (Address the latch the enable, 30 feet) 89C51 properly,theALEitivepulse signal,afrequency of 1/6ofthe oscillatorfrequency,candetermine thechipis good or bad.CPUto soff-chip memory,the AL
21、Esignal as a latched low eight address control signal. PSEN (ProgramStore Enable, memory,29feet)to memoryinstruction basis of the chipmemory address allow the output terminal, when the89C51 chip fetch machine cycle output two pulses work. EA (Enable Address, 31 feet) onlytoallowtheinput,thenthehighc
22、sFlashROM,thenthelowstoexternalInput / output portsP0-P3.Quasi-t isusedastheinput, you shouldwriteaport multiplexing 13. 64KB ROM 64KBROM1000H- FH,片内外 编址。RAM 用于存放运算的中间结果、数据暂存和缓冲、标志位等,片内 256 字节,地址从 0000H-00FFH,片外从 0100H- FH128RAM RAM32字节(00-1F)为thechipcanbeexpandedupto64KBROM,theFH,ece inside and the
23、unifiedaddressing.RAMusedtostore ermediateresultsofoperationsfortemporarystorage and buffering flag, on-chip256-byte address from 0000H-00FFH, off-chip FH.Thelower128bytesofon-chipRAMisreallytheRAMarea,ofwhichthereare89C51 64KB ROM and data memory for the memory: program memory, 64KB of RAM.ROM storing programmed procedures and table data, on-chip Flash ROM 4KBad
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2023肺亚实性结节外科管理进展共识解读课件
- 边检安全培训课件
- 手术医生技能培训方案
- 辨色力培训课件
- 车队安全培训模板下载课件
- 车队安全人员培训内容课件
- 车间质量安全培训会课件
- 车间级安全教育课件
- 2025年国有资产清查盘点总结(3篇)
- 2026年内科医生年度工作总结
- 结核病的预防性治疗
- 吉林省房屋建筑和市政基础设施工程评标专家管理办法
- NB/T 11438-2023循环流化床气化炉运行导则
- 光伏板智能清扫机器人结构设计
- (正式版)SHT 3115-2024 石油化工管式炉轻质浇注料衬里工程技术规范
- 高温高压CFB锅炉安装技术交底
- 山东省潍坊市2023-2024学年高一上学期期末考试英语试题(解析版)
- 沈阳职业技术学院单招《职业技能测试》参考试题库(含答案)
- 防职场性骚扰培训课件
- 设备维护与管理培训课件
- 印刷排版人员配置方案
评论
0/150
提交评论