Judul Mata Kuliah Judul Pokok Bahasan 1/total Direct Memory Access (DMA) & Interfacing.

Slides:



Advertisements
Similar presentations
Computer Architecture
Advertisements

Judul Mata Kuliah Judul Pokok Bahasan Set Instruksi dan Format Intruksi.
Judul Mata Kuliah Judul Pokok Bahasan 1/total Data Movement Instructions.
Direct Memory Access Introduction to 8237
I/O Unit.
Khaled A. Al-Utaibi  Computers are Every Where  What is Computer Engineering?  Design Levels  Computer Engineering Fields  What.
Judul Mata Kuliah Judul Pokok Bahasan 1/total Data Movement Instructions.
CS-334: Computer Architecture
Computer Organization and Architecture Input/Output.
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 13 Direct Memory Access (DMA)
Chapter 7 Interupts DMA Channels Context Switching.
Unit-5 CO-MPI autonomous
Group 7 Jhonathan Briceño Reginal Etienne Christian Kruger Felix Martinez Dane Minott Immer S Rivera Ander Sahonero.
Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower.
The computer system’s I/O architecture is its interface to the outside world. This architecture provides a systematic means of controlling interaction.
Chapter 7 Input/Output Luisa Botero Santiago Del Portillo Ivan Vega.
CHAPTER 5 I/O PRINCIPLE Understand the principles of System Bus
Chapter 10: Input / Output Devices Dr Mohamed Menacer Taibah University
I/O Sub-System CT101 – Computing Systems.
MICROPROCESSOR INPUT/OUTPUT
2007 Oct 18SYSC2001* - Dept. Systems and Computer Engineering, Carleton University Fall SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
2009 Sep 10SYSC Dept. Systems and Computer Engineering, Carleton University F09. SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices 7.2.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CE-321: Computer.
COMPUTER ORGANIZATIONS CSNB123 NSMS2013 Ver.1Systems and Networking1.
Direct Memory Access (DMA) Microprocessors I -1. Topics to be discussed  Basic DMA Concept Basic DMA Concept  DMA pins and timing DMA pins and timing.
Input-Output Organization
Chapter5: Input/Output (I/O).
Organisasi Sistem Komputer Materi VIII (Input Output)
CH10 Input/Output DDDData Transfer EEEExternal Devices IIII/O Modules PPPProgrammed I/O IIIInterrupt-Driven I/O DDDDirect Memory.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
The computer system’s I/O architecture is its interface to the outside world. This architecture provides a systematic means of controlling interaction.
Computer and Information Sciences College / Computer Science Department CS 206 D Computer Organization and Assembly Language.
PART 7 CPU Externals CHAPTER 7: INPUT/OUTPUT 1. Input/Output Problems Wide variety of peripherals – Delivering different amounts of data – At different.
Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats All slower than CPU.
IT3002 Computer Architecture
Multiple Interrupts Each interrupt line has a priority Higher priority lines can interrupt lower priority lines If bus mastering only current master can.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Input/Output. Input/Output Problems zWide variety of peripherals yDelivering different amounts of data yAt different speeds yIn different formats zAll.
Computer Architecture Chapter (7): Input / Output
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University Dr. Jia Uddin, CSE, BRAC University.
DEPARTMENT OF ELECTRONICS ENGINEERING
1 load [2], [9] Transfer contents of memory location 9 to memory location 2. Illegal instruction.
William Stallings Computer Organization and Architecture 6th Edition
Direct memory access Direct memory access (DMA) is a process in which an external device takes over the control of system bus from the CPU. DMA is for.
I/O SYSTEMS MANAGEMENT Krishna Kumar Ahirwar ( )
Unit- 3 Chapter 7 Input/Output.
William Stallings Computer Organization and Architecture 7th Edition
I/O Memory Interface Topics:
Morgan Kaufmann Publishers Computer Organization and Assembly Language
Created by Vivi Sahfitri
William Stallings Computer Organization and Architecture 8th Edition
UNIT-III Pin Diagram Of 8086
William Stallings Computer Organization and Architecture 8th Edition
William Stallings Computer Organization and Architecture 8th Edition
I/O subsystem Overview Peripheral Devices and IO Modules
Presentation transcript:

Judul Mata Kuliah Judul Pokok Bahasan 1/total Direct Memory Access (DMA) & Interfacing

Judul Mata Kuliah Judul Pokok Bahasan 2/total Outline : Basic Process DMA Module Diagram DMA operation DMA transfer : cycle stealing DMA configutaions DMA controller

Judul Mata Kuliah Judul Pokok Bahasan 3/total Direct memory access Direct memory access (DMA) is a process in which an external device takes over the control of system bus from the CPU. DMA is for high-speed data transfer from/to mass storage peripherals, e.g. harddisk drive, magnetic tape, CD-ROM, and sometimes video controllers. For example, a hard disk may boasts a transfer rate of 5 M bytes per second, i.e. 1 byte transmission every 200 ns. To make such data transfer via the CPU is both undesirable and unnecessary. The basic idea of DMA is to transfer blocks of data directly between memory and peripherals. The data don’t go through the microprocessor but the data bus is occupied. “Normal” transfer of one data byte takes up to 29 clock cycles. The DMA transfer requires only 5 clock cycles. Nowadays, DMA can transfer data as fast as 60 M byte per second. The transfer\rate is limited by the speed of memory and peripheral devices.

Judul Mata Kuliah Judul Pokok Bahasan 4/total Basic process of DMA For 8088 in maximum mode: The RQ/GT1 and RQ/GT0 pins are used to issue DMA request and receive acknowledge signals. Sequence of events of a typical DMA process 1) Peripheral asserts one of the request pins, e.g. RQ/GT1 or RQ/GT0 (RQ/GT0 has higher priority) 2) 8088 completes its current bus cycle and enters into a HOLD state 3) 8088 grants the right of bus control by asserting a grant signal via the same pin as the request signal. 4) DMA operation starts 5) Upon completion of the DMA operation, the peripheral asserts the request/grant pin again to relinquish bus control. For 8088 in minimum mode: The HOLD and HLDA pins are used instead to receive and acknowledge the hold request respectively. Normally the CPU has full control of the system bus. In a DMA operation, the peripheral takes over bus control temporarily.

Judul Mata Kuliah Judul Pokok Bahasan 5/total Direct Memory Access Interrupt driven and programmed I/O require active CPU intervention –Transfer rate is limited –CPU is tied up DMA is the answer Additional Module (hardware) on bus DMA controller takes over from CPU for I/O DMA Function

Judul Mata Kuliah Judul Pokok Bahasan 6/total DMA Module Diagram

Judul Mata Kuliah Judul Pokok Bahasan 7/total DMA Operation CPU tells DMA controller: –Device address –Starting address of memory block for data –Amount of data to be transferred –Read/Write … Go! CPU carries on with other work DMA controller deals with transfer DMA controller sends interrupt when finished

Judul Mata Kuliah Judul Pokok Bahasan 8/total DMA Transfer: Cycle Stealing DMA controller takes over bus for a cycle Transfer of one word of data Not an interrupt –CPU does not switch context CPU suspended (possibly) just before it accesses bus –i.e. before an operand or data fetch or a data write Slows down CPU but not as much as CPU doing transfer

Judul Mata Kuliah Judul Pokok Bahasan 9/total Aside What effect does caching memory have on DMA? Hint: how much are the system buses available?

Judul Mata Kuliah Judul Pokok Bahasan 10/total Single Bus, Detached DMA controller Each transfer uses bus twice –I/O to DMA then DMA to memory –CPU is suspended twice DMA Configurations (1)

Judul Mata Kuliah Judul Pokok Bahasan 11/total Single Bus, Integrated DMA controller Controller may support > 1 device Each transfer uses bus once –DMA to memory –CPU is suspended once DMA Configurations (2)

Judul Mata Kuliah Judul Pokok Bahasan 12/total Separate I/O Bus Bus supports all DMA enabled devices Each transfer uses bus once –DMA to memory –CPU is suspended once DMA Configurations (3)

Judul Mata Kuliah Judul Pokok Bahasan 13/total DMA controller A DMA controller interfaces with several peripherals that may request DMA. The controller decides the priority of simultaneous DMA requests communicates with the peripheral and the CPU, and provides memory addresses for data transfer. DMA controller commonly used with 8088 is the 8237 programmable device. The 8237 is in fact a special-purpose microprocessor. Normally it appears as part of the system controller chip- sets. The 8237 is a 4-channel device. Each channel is dedicated to a specific peripheral device and capable of addressing 64 K bytes section of memory.

Judul Mata Kuliah Judul Pokok Bahasan 14/total

Judul Mata Kuliah Judul Pokok Bahasan 15/total

Judul Mata Kuliah Judul Pokok Bahasan 16/total

Judul Mata Kuliah Judul Pokok Bahasan 17/total

Judul Mata Kuliah Judul Pokok Bahasan 18/total

Judul Mata Kuliah Judul Pokok Bahasan 19/total

Judul Mata Kuliah Judul Pokok Bahasan 20/total

Judul Mata Kuliah Judul Pokok Bahasan 21/total

Judul Mata Kuliah Judul Pokok Bahasan 22/total

Judul Mata Kuliah Judul Pokok Bahasan 23/total

Judul Mata Kuliah Judul Pokok Bahasan 24/total

Judul Mata Kuliah Judul Pokok Bahasan 25/total

Judul Mata Kuliah Judul Pokok Bahasan 26/total

Judul Mata Kuliah Judul Pokok Bahasan 27/total

Judul Mata Kuliah Judul Pokok Bahasan 28/total Referensi : Brey, Barry, B., The Intel Microprocessors 8086/8088, 80186/80188, 80286, 80386, 80486, Pentium, and Pentium ProProcessor Architecture, Programming, and Interfacing, Fourth Edition, PHI Inc, USA, and Five Edition, 2003 Brey, Barry, B., 8086/8088, 80286, 80386, and Assembly Language, Programming, Macmillan Publising Company, USA, Leventhal L.A., Introduction to Microprocessor : Software, Hardware, Programming, Phi Inc., Hall D.V., Microprocessor Interfacing : Programming and Hardware, McGraw-Hill, Singapore, Ananta, C., William JB., Frank Fox, Design of High- performance microprocessor circuit, IEEE Press, 2001 Douglas V. Hall, Microprocessor and Interfacing: Programming and Hardware, McGraw-Hill, edition 2, 1991 James A., Kenneth CM, Microcomputer Hardware, Software, and Troubleshooting for Engineering and Technology, Prentice Hall,