




免费预览已结束,剩余8页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
毕业设计(论文)外文资料翻译1、 外文原文Fundamentals of Single-chip MicrocomputerThe single-chip microcomputer is the culmination of both the development of the digital computer and the integrated circuit arguably the tow most significant inventions of the 20th century.These tow types of architecture are found in single-chip microcomputer. Some employ the split program/data memory of the Harvard architecture, others follow the philosophy, widely adapted for general-purpose computers and microprocessors, of making no logical distinction between program and data memory as in the Princeton architecture.In general terms a single-chip microcomputer is characterized by the incorporation of all the units of a computer into a single device.Read only memory (ROM)ROM is usually for the permanent, non-volatile storage of an applications program .Many microcomputers and microcontrollers are intended for high-volume applications and hence the economical manufacture of the devices requires that the contents of the program memory be committed permanently during the manufacture of chips . Clearly, this implies a rigorous approach to ROM code development since changes cannot be made after manufacture .This development process may involve emulation using a sophisticated development system with a hardware emulation capability as well as the use of powerful software tools.Some manufacturers provide additional ROM options by including in their range devices with (or intended for use with) user programmable memory. The simplest of these is usually device which can operate in a microprocessor mode by using some of the input/output lines as an address and data bus for accessing external memory. This type of device can behave functionally as the single chip microcomputer from which it is derived albeit with restricted I/O and a modified external circuit. The use of these ROM less devices is common even in production circuits where the volume does not justify the development costs of custom on-chip ROM.there can still be a significant saving in I/O and other chips compared to a conventional microprocessor based circuit. More exact replacement for ROM devices can be obtained in the form of variants with piggy-back EPROM(Erasable programmable ROM )sockets or devices with EPROM instead of ROM 。These devices are naturally more expensive than equivalent ROM device, but do provide complete circuit equivalents. EPROM based devices are also extremely attractive for low-volume applications where they provide the advantages of a single-chip device, in terms of on-chip I/O, etc. ,with the convenience of flexible user programmability.Random access memory (RAM)RAM is for the storage of working variables and data used during program execution. The size of this memory varies with device type but it has the same characteristic width (4,8,16 bits etc.) as the processor ,Special function registers, such as stack pointer or timer register are often logically incorporated into the RAM area. It is also common in Harard type microcomputers to treat the RAM area as a collection of register; it is unnecessary to make distinction between RAM and processor register as is done in the case of a microprocessor system since RAM and registers are not usually physically separated in a microcomputer .Central processing unit (CPU)The CPU is much like that of any microprocessor. Many applications of microcomputers and microcontrollers involve the handling of binary-coded decimal (BCD) data (for numerical displays, for example) ,hence it is common to find that the CPU is well adapted to handling this type of data .It is also common to find good facilities for testing, setting and resetting individual bits of memory or I/O since many controller applications involve the turning on and off of single output lines or the reading the single line. These lines are readily interfaced to two-state devices such as switches, thermostats, solid-state relays, valves, motor, etc.Parallel input/outputParallel input and output schemes vary somewhat in different microcomputer; in most a mechanism is provided to at least allow some flexibility of choosing which pins are outputs and which are inputs. This may apply to all or some of the ports. Some I/O lines are suitable for direct interfacing to, for example, fluorescent displays, or can provide sufficient current to make interfacing other components straightforward. Some devices allow an I/O port to be configured as a system bus to allow off-chip memory and I/O expansion. This facility is potentially useful as a product range develops, since successive enhancements may become too big for on-chip memory and it is undesirable not to build on the existing software base.Serial input/outputSerial communication with terminal devices is common means of providing a link using a small number of lines. This sort of communication can also be exploited for interfacing special function chips or linking several microcomputers together .Both the common asynchronous synchronous communication schemes require protocols that provide framing (start and stop) information .This can be implemented as a hardware facility or U(S)ART(Universal(synchronous) asynchronous receiver/transmitter) relieving the processor (and the applications programmer) of this low-level, time-consuming, detail. t is merely necessary to selected a baud-rate and possibly other options (number of stop bits, parity, etc.) and load (or read from) the serial transmitter (or receiver) buffer. Serialization of the data in the appropriate format is then handled by the hardware circuit.Timing/counter facilitiesMany application of single-chip microcomputers require accurate evaluation of elapsed real time .This can be determined by careful assessment of the execution time of each branch in a program but this rapidly becomes inefficient for all but simplest programs .The preferred approach is to use timer circuit that can independently count precise time increments and generate an interrupt after a preset time has elapsed .This type of timer is usually arranged to be reloadable with the required count .The timer then decrements this value producing an interrupt or setting a flag when the counter reaches zero. Better timers then have the ability to automatically reload the initial count value. This relieves the programmer of the responsibility of reloading the counter and assessing elapsed time before the timer restarted ,which otherwise wound be necessary if continuous precisely timed interrupts were required (as in a clock ,for example).Sometimes associated with timer is an event counter. With this facility there is usually a special input pin ,that can drive the counter directly. Timing componentsThe clock circuitry of most microcomputers requires only simple timing components. If maximum performance is required,a crystal must be used to ensure the maximum clock frequency is approached but not exceeded. Many clock circuits also work with a resistor and capacitor as low-cost timing components or can be driven from an external source. This latter arrangement is useful is external synchronization of the microcomputer is required. Programmable Logic Controllers(PLC)A PLC (i.e. Programmable Logic Controller) is a device that was invented to replace thenecessary sequential relay circuits for machine control. The PLC works by looking at its inputsand depending upon their state, turning on/off its outputs. The user enters a program, usually viasoftware or programmer, that gives the desired results.PLCs are used in many “real world” applications. If there is industry present, chances aregood that there is a PLC present. If you are involved in machining, packaging, material handling,automated assembly or countless other industries, you are probably already using them. If youare not, you are wasting money and time. Almost any application that needs some type ofelectrical control has a need for a PLC.For example, lets assume that when a switch turns on we want to turn a solenoid on for 5seconds and then turn it off regardless of how long the switch is on for. We can do this with asimple external timer. But what if the process included 10 switches and solenoids? We wouldneed 10 external timers. What if the process also needed to count how many times the switchindividually turned on? We need a lot of external counters.As you can see, the bigger the process the more of a need we have for a PLC. We cansimply program the PLC to count its inputs and turn the solenoids on for the specified time.We will take a look at what is considered to be the “top 20” PLC instructions. It can besafely estimated that with a firm understanding of these instructions one can solve more than80% of the applications in existence.Thats right, more than 80%! Of course well learn more than just these instructions to helpyou solve almost ALL your potential PLC applications.The PLC mainly consists of a CPU, memory areas, and appropriate circuits to receiveinput/output data. We can actually consider the PLC to be a box full ofhundreds or thousands of separate relays, counters, timers and data storage locations. Do thesecounters, timers, etc. really exist? No, they dont “physically” exist but rather they are simulatedand can be considered software counters, timers, etc. These internal relays are simulated throughbit locations in registers.What does each part do?INPUT RELAYS-(contacts) These are connected to the outside world. They physicallyexist and receive signals from switches, sensors, etc. Typically they are not relays but rather theyare transistors.INTERNAL UTILITY RELAYS-(contacts) These do not receive signals from the outsideworld nor do they physically exist. They are simulated relays and are what enables a PLC toeliminate external relays. There are also some special relays that are dedicated to performingonly one task. Some are always on while some are always off. Some are on only once duringpower-on and are typically used for initializing data that was stored.COUNTERSThese again do not physically exist. They are simulated counters and they canbe programmed to count pulses. Typically these counters can count up, down or both up anddown. Since they are simulated, they are limited in their counting speed. Some manufacturersalso include high-speed counters that are hardware based. We can think of these as physicallyexisting. Most times these counters can count up, down or up and down.TIMERSThese also do not physically exist. They come in many varieties and increments.The most common type is an on-delay type. Others include off-delay and both retentive andnon-retentive types. Increments vary from 1ms through 1s.OUTPUT RELAYS-(coils) These are connected to the outside world. They physically existand send on/off signals to solenoids, lights, etc. They can be transistors, relays, or triacsdepending upon the model chosen.DATA STORAGETypically there are registers assigned to simply store data. They areusually used as temporary storage for math or data manipulation. They can also typically be usedto store data when power is removed from the PLC. Uponpower-up they will still have the same contents as beforepower was removed. Very convenient and necessary!Microcontroller IntegratedCircuit With Read Only MemoryA microcontroller integrated circuit comprises a processor core which exchanges data withat least one data processing and/or storage device. The integrated circuit comprises amask-programmed read only memory containing a generic program such as a test program whichcan be executed by the microcontroller. The generic program includes a basic function forwriting data into the data processing and/or storage device or devices. The write function is usedto load a downloading program. Because a downloading program is not permanently stored in theread only memory, the microcontroller can be tested independently of the application program,and remains standard with regard to the type of memory component with which it can be used ina system.To be more precise, the invention concerns a microcontroller integrated circuit. Amicrocontroller is usually a VLSI (Very Large Scale Integration) integrated circuit containing allor most of the components of a computer. Its function is not predefined but depends on theprogram that it executes.A microcontroller necessarily comprises a processor core including a command sequencer(which is a device distributing various control signals to the other components according to theinstructions of a program), an arithmetic and logic unit (for processing the data) and registers(which are specialized memory units).The other components of the “computer” can be either internal or external to themicrocontroller, however. In other words, the other components are integrated into either themicrocontroller or auxiliary circuits.These other components of the computer are data processing and/or storage devices, forexample read only or random access memory containing the program to be executed, clocks andinterfaces (serial or parallel).As a general rule, a system based on a microcontroller therefore comprises a microchipcontaining the microcontroller, and a plurality of microchips containing the external dataprocessing and/or storage devices which are not integrated into the microcontroller. Amicrocontroller-based system of this kind comprises, for example, one or more printed circuitboards on which the microcontroller and the other components are mounted.It is the application program, i.e. the program which is executed by the microcontroller,which determines the overall operation of the microcontroller system. Each application programis therefore specific to a separate application.In most current applications the application program is too large to be held in themicrocontroller and is therefore stored in a memory external to the microcontroller. Thisprogram memory, which has only to be read, not written, is generally a reprogrammable readonly memory (REPROM).After the application program has been programmed in memory and then started in order tobe executed by the microcontroller, the microcontroller system may not function as expected.In the least unfavorable situation this is a minor dysfunction of the system and themicrocontroller is still able to dialog with a test station via a serial or parallel interface. This teststation is then able to determine the nature of the problem and indicate precisely the type ofcorrection (software and/or physical) to be applied to the system for it to operate correctly.Unfortunately, most dysfunctions of a microcontroller-based system result in a total systemlock-up, preventing any dialog with a test station. It is then impossible to determine the type offault, i.e. whether it is a physical fault (in the microcontroller itself, in an external read onlymemory, in a peripheral device, on a bus, etc) or a software fault (i.e. an error in the applicationprogram) . The troubleshooting technique usually employed in these cases of total lock-up isbased on the use of sophisticated test devices requiring the application of probes to the pins of thevarious integrated circuits of the microcontroller-based system under test.There are various problems associated with the use of such test devices for troubleshooting amicrocontroller-based system. The probes used in these test devices are very fragile, difficult toapply because of the small size of the circuit and their close packing, and may not make goodcontact with the circuit.Also, because of their high cost, these test devices are not mass produced. Consequently,faulty microcontroller-based systems cannot be repaired immediately, wherever they happen tobe located at the time, but must first be returned to a place where a test device is available.Troubleshooting a microcontroller-based system in this way is time-consuming, irksome andcostly.To avoid the need for direct action on the microcontroller-based system each time theapplication program executed by the microcontroller of the system is changed, it is standardpractice to use a downloadable read only memory to store the application program, a loadingprogram being written into a mask-programmed read only memory of the microcontroller. Themask-programmed read only memory of the microcontroller is integrated into the microcontrollerand programmed once and for all during manufacture of the microcontroller.To change the application program the microcontroller is reset by running the downloadingprogram. This downloading program can then communicate with a workstation connected to themicrocontroller by an appropriate transmission line, this workstation containing the newapplication program to be written into the microcontroller. The downloading program receivesthe new application program and loads it into a read only memory external to the microcontroller.Although this solution avoids the need for direct action on the microcontroller-based system(which would entail removing from the system the reprogrammable read only memoriescontaining the application program, writing into these memories the new application programusing an appropriate programming device and then replacing them in the system) , it neverthelesshas a major drawback, namely specialization of the microcontroller during manufacture.Each type of reprogrammable memory is associated with a different downloading programbecause the programming parameters (voltage to be applied, duration for which the voltage is tobe applied, etc) vary with the technology employed. The downloading program is written onceand for all into the mask-programmed internal memory of the microcontroller and the latter istherefore restricted to using memory components of the type for which this downloading programwas written. In other words, the microcontroller is not a s
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025版足浴技师劳动合同范本与培训体系
- 2025版养老护理服务定向采购合同下载
- 2025年度装配式建筑项目管理服务合同范本
- 2025年户外广告设备安装与广告发布合同
- 2025年核设施运输安全操作规范合同
- 2025年智能音响独家代理销售合同范本
- 2025版水车租赁业务合作协议书
- 2025版挖掘机租赁与维修一体化服务合同
- 2025版事业单位场地租赁合同书
- 2025版太阳能光伏发电系统安装与维护服务委托协议书
- 廉洁培训ppt课件-廉洁培训课件
- 全过程工程咨询服务技术方案
- GB/T 4802.1-2008纺织品织物起毛起球性能的测定第1部分:圆轨迹法
- GB/T 35568-2017中国荷斯坦牛体型鉴定技术规程
- GB/T 28707-2012碟簧支吊架
- GB/T 2791-1995胶粘剂T剥离强度试验方法挠性材料对挠性材料
- GB/T 25702-2010复摆颚式破碎机颚板磨耗
- 超分子化学简介课件
- 流体力学-流体力学基本方程课件
- 粮油产品购销合同
- YYT 0681.2-2010 无菌医疗器械包装试验方法 第2部分:软性屏障材料的密封强度
评论
0/150
提交评论