单片机毕业设计外文翻译--数据传送指令
《单片机毕业设计外文翻译--数据传送指令》由会员分享,可在线阅读,更多相关《单片机毕业设计外文翻译--数据传送指令(7页珍藏版)》请在毕设资料网上搜索。
1、 1 外文资料 Data Transfer Techniques The actual transfer of data between the microcomputer and external and external devices is commonly carried out using three different techniques: ( 1) ling;( 2) errupters; (3)emory access;These techniques can be used individually or in combination. Polling Polling ro
2、utines are used for programmed input/output purposes.A number of peripheral devices attached to the microcomouter are continuously polled at specified time intervals to determine the device wishes to input data to the microproccssor. Similarly, for the transfer of data to an output device,the state
3、of its buffer is checked to determine if it is empty and ready to receive the data. A soft program is required to check the state of the peripheral devices. Hardware flaga are used to indacate the send or receive condition of the peripheral. If a device is ready to transfer the data, then an appropr
4、iate software routine is used to service that particular device so that data transfer can take place .It is necessary to ensure that none of the data from any of the peripherals are lost while the polling routines or any the peripheral devices servicing routines are being executed. The probability o
5、f loseing data is very small since most perpheral are slow deices. Other techniques, such as direct memory access(DMA) , can be used to achieve high-speed data transfer from a given peripheral. Polled input/output is very simple and common method of data transfer which does not require any additiona
6、l logic circuitry.The only requirement is for an efficient program which is executed at very high speed. Interrupted Intput/output The polling procedure is a form of time-sharing whereby the facilities of the computer are shared between a numbers of uses. The computer continually polls each of the t
7、erminals, and serves a terminal for a specified period of time before moving on to the next one. This procedure is inefficient because system overheads are incurred in polling all the perpheral devices irrespective of the actual need. The time available for the processing of the real-time requiremen
8、ts of process control system in which a particular device might require urgent attention while the processor is servicing another input/output device. In some circumstances the actual data might be lost. These difficulties can be overcome by using the hardware interrupt input/output system. The outp
9、ut of the microcomputer system can be increased substantially by using such interrupts, since an input/output device is serviced only after it indicates that it is ready to send or receive data.This request for input/output can occur at any time, i.e. in an asynchronous mode,and the devices indicate
10、s this by seting up an interrupt flag. The microprocessor acknowledges the interrupt, completes the execution of the current 2 instruction, saves the content of the registers and then servieces the requesting devices by transferring control to an appropriate intput/output routine. Once the periphera
11、l device has been serviced, the control is transferred back to the original program which resumes execution from the point at which it was interrupted. Some real-time control applications involve the use of critical programs which must not be interrupted during their execution. Some of the interrupt
12、ed are trivial which others have to be serviced. For example, data input can be delayed which alarms muse be raised immediately.Differernt types of interrupts, maskable and non-maskable,can be used to overcome these difficulties. Software programs are used to enable or disable a maskable interrupt.
13、Thus,if the maskable interrupt. Thus, if the maskable interrupt has been disabled,the microprocessor will ignore the interrupt request. A non-maskable interrupt has to be acknowdged and serviced by the microprocessor. The interrupt used in a microprocessor system might be a fixed interrupt or a vect
14、ored interrupt. A fixed interrupt requires relatively simple hardware. The flag is set on the interrupt line to indicate that service is required. If there is only one device attached to interrupt line ,then the control will be transferred to a fixed memory location which provide the program for ser
15、vicing that device. When a number of of devices are attached to a given interrupt line, each with its own servicing routine, then the peripheral responsible for the interrupt has to be identifed. Thus a polling routine examination must be used to detect the peripheral requiring service and then dete
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中设计图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 单片机 毕业设计 外文 翻译 数据 传送 指令
