1、单片机英文文献Principle of MCUSingle-chip is an integrated on a single chip a complete computer system. Even though most of his features in a small chip, but it has a need to complete the majority of computer components: CPU, memory, internal and external bus system, most will have the Core. At the same ti
2、me, such as integrated communication interfaces, timers, real-time clock and other peripheral equipment. And now the most powerful single-chip microcomputer system can even voice, image, networking, input and output complex system integration on a single chip. Also known as single-chip MCU (Microcon
3、troller), because it was first used in the field of industrial control. Only by the single-chip CPU chip developed from the dedicated processor. The design concept is the first by a large number of peripherals and CPU in a single chip, the computer system so that smaller, more easily integrated into
4、 the complex and demanding on the volume control devices. INTEL the Z80 is one of the first design in accordance with the idea of the processor, From then on, the MCU and the development of a dedicated processor parted ways. Early single-chip 8-bit or all of the four. One of the most successful is I
5、NTELs 8031, because the performance of a simple and reliable access to a lot of good praise. Since then in 8031 to develop a single-chip microcomputer system MCS51 series. Based on single-chip microcomputer system of the system is still widely used until now. As the field of industrial control requi
6、rements increase in the beginning of a 16-bit single-chip, but not ideal because the price has not been very widely used. After the 90s with the big consumer electronics product development, single-chip technology is a huge improvement. INTEL i960 Series with subsequent ARM in particular, a broad ra
7、nge of applications, quickly replaced by 32-bit single-chip 16-bit single-chip high-end status, and enter the mainstream market. Traditional 8-bit single-chip performance has been the rapid increase in processing power compared to the 80s to raise a few hundred times. At present, the high-end 32-bit
8、 single-chip frequency over 300MHz, the performance of the mid-90s close on the heels of a special processor, while the ordinary price of the model dropped to one U.S. dollars, the most high-end models, only 10 U.S. dollars. Contemporary single-chip microcomputer system is no longer only the bare-me
9、tal environment in the development and use of a large number of dedicated embedded operating system is widely used in the full range of single-chip microcomputer. In PDAs and cell phones as the core processing of high-end single-chip or even a dedicated direct access to Windows and Linux operating s
10、ystems. More than a dedicated single-chip processor suitable for embedded systems, so it was up to the application. In fact the number of single-chip is the worlds largest computer. Modern human life used in almost every piece of electronic and mechanical products will have a single-chip integration
11、. Phone, telephone, calculator, home appliances, electronic toys, handheld computers and computer accessories such as a mouse in the Department are equipped with 1-2 single chip. And personal computers also have a large number of single-chip microcomputer in the workplace. Vehicles equipped with mor
12、e than 40 Department of the general single-chip, complex industrial control systems and even single-chip may have hundreds of work at the same time! SCM is not only far exceeds the number of PC and other integrated computing, even more than the number of human beings.Hardwave introductionThe 8051 fa
13、mily of micro controllers is based on an architecture which is highly optimized for embedded control systems. It is used in a wide variety of applications from military equipment to automobiles to the keyboard on your PC. Second only to the Motorola 68HC11 in eight bit processors sales, the 8051 fam
14、ily of microcontrollers is available in a wide array of variations from manufacturers such as Intel, Philips, and Siemens. These manufacturers have added numerous features and peripherals to the 8051 such as I2C interfaces, analog to digital converters, watchdog timers, and pulse width modulated out
15、puts. Variations of the 8051 with clock speeds up to 40MHz and voltage requirements down to 1.5 volts are available. This wide range of parts based on one core makes the 8051 family an excellent choice as the base architecture for a companys entire line of products since it can perform many function
16、s and developers will only have to learn this one platform. The basic architecture consists of the following features: an eight bit ALU 32 descrete I/O pins (4 groups of 8) which can be individually accessed two 16 bit timer/counters full duplex UART 6 interrupt sources with 2 priority levels 128 by
17、tes of on board RAM separate 64K byte address spaces for DATA and CODE memoryOne 8051 processor cycle consists of twelve oscillator periods. Each of the twelve oscillator periods is used for a special function by the 8051 core such as op code fetches and samples of the interrupt daisy chain for pend
18、ing interrupts. The time required for any 8051 instruction can be computed by dividing the clock frequency by 12, inverting that result and multiplying it by the number of processor cycles required by the instruction in question. Therefore, if you have a system which is using an 11.059MHz clock, you
19、 can compute the number of instructions per second by dividing this value by 12. This gives an instruction frequency of 921583 instructions per second. Inverting this will provide the amount of time taken by each instruction cycle (1.085 microseconds).6单片机原理单片机是指一个集成在一块芯片上的完整计算机系统。尽管他的大部分功能集成在一块小芯片上
20、,但是它具有一个完整计算机所需要的大部分部件:CPU、内存、内部和外部总线系统,目前大部分还会具有外存。同时集成诸如通讯接口、定时器,实时时钟等外围设备。而现在最强大的单片机系统甚至可以将声音、图像、网络、复杂的输入输出系统集成在一块芯片上。单片机也被称为微控制器(Microcontroller),是因为它最早被用在工业控制领域。单片机由芯片内仅有CPU的专用处理器发展而来。最早的设计理念是通过将大量外围设备和CPU集成在一个芯片中,使计算机系统更小,更容易集成进复杂的而对体积要求严格的控制设备当中。INTEL的Z80是最早按照这种思想设计出的处理器,从此以后,单片机和专用处理器的发展便分道扬
21、镳。早期的单片机都是8位或4位的。其中最成功的是INTEL的8031,因为简单可靠而性能不错获得了很大的好评。此后在8031上发展出了MCS51系列单片机系统。基于这一系统的单片机系统直到现在还在广泛使用。随着工业控制领域要求的提高,开始出现了16位单片机,但因为性价比不理想并未得到很广泛的应用。90年代后随着消费电子产品大发展,单片机技术得到了巨大的提高。随着INTEL i960系列特别是后来的ARM系列的广泛应用,32位单片机迅速取代16位单片机的高端地位,并且进入主流市场。而传统的8位单片机的性能也得到了飞速提高,处理能力比起80年代提高了数百倍。目前,高端的32位单片机主频已经超过30
22、0MHz,性能直追90年代中期的专用处理器,而普通的型号出厂价格跌落至1美元,最高端的型号也只有10美元。当代单片机系统已经不再只在裸机环境下开发和使用,大量专用的嵌入式操作系统被广泛应用在全系列的单片机上。而在作为掌上电脑和手机核心处理的高端单片机甚至可以直接使用专用的Windows和Linux操作系统。单片机比专用处理器更适合应用于嵌入式系统,因此它得到了最多的应用。事实上单片机是世界上数量最多的计算机。现代人类生活中所用的几乎每件电子和机械产品中都会集成有单片机。手机、电话、计算器、家用电器、电子玩具、掌上电脑以及鼠标等电脑配件中都配有1-2部单片机。而个人电脑中也会有为数不少的单片机在
23、工作。汽车上一般配备40多部单片机,复杂的工业控制系统上甚至可能有数百台单片机在同时工作!单片机的数量不仅远超过PC机和其他计算的综合,甚至比人类的数量还要多。 单片机硬件介绍:8051系列微控制器是建立在一个高度优化的嵌入式控制系统的结构上。它的运用范围比较广,从军事装备到汽车再到你的PC机的键盘。仅次于摩托罗拉68HC11在8位处理器销售,8051家庭的微控制器, 在制造商上有各种各样的变化,如因特尔公司、西门子、飞利浦。这些厂家已经增加了许多功能及外设,如总线接口,模拟到数字转换器,看门狗定时器、脉冲宽度调制的输出。8051的变化,达到40MHz时钟频率下降到150伏电压条件是可得到的。
24、这种广泛的部分基于一个核心使8051系列的一个很好的选择作为基础架构的一个公司产品,因为它可以执行许多功能和开发者只会有这样的一个平台。基本结构由以下特点:一个8为的算术逻辑单元32个离散输入输出端口(4组8位)可单独访问二16位定时器/计数器全双工通用异步接收/发送装置6个中断源与2个优先级别128字节的随机存储器64K分开字节地址空间的数据和代码的记忆一个数字处理器周期共有十二振荡器的时期。他本是十二门徒里的每一个阶段是用于振荡器的特殊功能的核心,如凤凰社代码的数字和样品中的全部中断菊花链未决的中断。所需的时间任何8051指令可以除以12例,时钟频率通过反演结果和增殖它的数字处理器周期所指示的问题。因此,如果你有一个系统,使用一个11.059MHz时钟,可以计算出的指令数除以这个值每秒12分。这给出了921583指令每秒指令频率。反相这将提供每个指令周期(1.085微秒)采取的时间。. .此处忽略!