SlideShare uma empresa Scribd logo
1 de 26
Baixar para ler offline
DIRECT
MEMORY
ACCESS
IN MPU
L E C : W A E L E S A M M A T T I
B Y
Z A H R A A A B D U L K A D E M , D Y A R
A H M E D , M A Y A D A H A Z E M A N D T U Q A
A Q E E L .
Al Mansour University
Software Engineering Department
2nd stage
INTRODUCTION
The DMA I/O technique provides direct access to the memory
while the microprocessor is temporarily disabled.
This chapter also explains the operation of disk memory systems
and video systems that are often DMA-processed.
Disk memory includes floppy, fixed, and optical disk storage.
Video systems include digital and analog monitors.
BASIC DMA OPERATION
Two control signals are used to request and acknowledge a
direct memory access (DMA) transfer in the
microprocessor-based system.
the HOLD pin is an input used to request a
DMA action
the HLDA pin is an output that acknowledges
the DMA action
Figure 1.1 shows the timing that is typically found on these two
DMA control pins.
HOLD is sampled in any clocking cycle
when the processor recognizes the hold, it stops
executing software and enters hold cycles
HOLD input has higher priority than INTR or NMI
the only microprocessor pin that has a higher priority
than a HOLD is the RESET pin.
HLDA becomes active to indicate the processor has placed
its buses at high-impedance state.
as can be seen in the timing diagram, there are
a few clock cycles between the time that HOLD changes and
until HLDA changes
HLDA output is a signal to the requesting device that the
processor has relinquished control of its memory and
I/O space.
one could call HOLD input a DMA request
input and HLDA output a DMA grant signal
BASIC DMA DEFINITIONS
Direct memory accesses normally occur between an I/O device and
memory without the use of the microprocessor.
a DMA read transfers data from the memory
to the I/O device
A DMA write transfers data from an I/O device
to memory
Memory & I/O are controlled simultaneously.
which is why the system contains separate memory and I/O control signals
A DMA read causes the MRDC and IOWC signals to activate
simultaneously.
transferring data from memory to the I/O device
A DMA write causes the MWTC bar and IORC bar signals to both activate.
8086/8088 require a controller or circuit such as shown in Fig 1–2
for control bus signal generation.
The DMA controller provides memory with its address, and controller
signal (DACK) selects the I/O device during the transfer
DATA TRANSFER SPEED IS DETERMINED BY SPEED OF THE MEMORY
DEVICE OR A DMA CONTROLLER.
-IF MEMORY SPEED IS 50 NS, DMA TRANSFERS OCCUR
AT RATES UP TO 1/50 NS OR 20 M BYTES PER SECOND
-IF THE DMA CONTROLLER FUNCTIONS AT A MAXIMUM
RATE OF 15 MHZ WITH 50 NS MEMORY, MAXIMUM TRANSFER RATE IS
15 MHZ BECAUSE THE DMA CONTROLLER IS SLOWER THAN THE
MEMORY
IN MANY CASES, THE DMA CONTROLLER SLOWS THE SPEED OF THE
SYSTEM WHEN TRANSFERS OCCUR.
THE 8237 DMA CONTROLLER
The 8237 supplies memory & I/O with control signals and memory address
information during the DMA transfer.
actually a special-purpose microprocessor
whose job is high-speed data transfer between memory and I/O
Figure 1–3 shows block diagram of the 8237 programmable DMA controller
8237 is not a discrete component in modern microprocessor-based systems.
it appears within many system controller chip sets
8237 is a four-channel device compatible
with 8086/8088, adequate for small systems.
expandable to any number of DMA channel inputs
8237 is capable of DMA transfers at rates up to 1.6M bytes per second.
each channel is capable of addressing a full
64K-byte section of memory and transfer up to 64K bytes with a single
programming
Figure 1–3 The 8237A-5 programmable DMA controller
8237 PIN DEFINITIONS
8237 INTERNAL REGISTERS
Example (2) :
Write the 1234 h into the base address
register and the current register for
channel 0 of DMA controller located at base
I/O address DMA?
Sol:-
MOV AL,34H ; WRITE LOW BYTE
OUT DMA +0, AL
MOV AL,12H ; WRITE THE HIGT BYTE
OUT DMA +0, AL
Example (1) :
Write 0FFF H into the base and
current count registers for channel 1
of DMA located at address DMA ?
Sol:-
MOV AL,0FFH ; WRITE LOW BYTE
OUT DMA +3, AL
MOV AL,0FH ; WRITE THE HIGT BYTE
OUT DMA +3, AL
Fig 1-4
:EXAMPLE
Fig 1-5
Fig 1-8
Fig 1-9
DIRECT
MEMORY
ACCESSIN MPU
E D I T E D B Y T U Q A A Q E E L
R e s e a r c h e r s :
Z a h r a a A b d u l k a d e m , M a y a d a H a z e m ,
D y i a r A h m e d a n d T u q a A q e e l .
L e c : Wa e l E s a m M a t t i
Al Mansour University
Software Engineering Department
2nd stage

Mais conteúdo relacionado

Mais procurados

Input Output Organization
Input Output OrganizationInput Output Organization
Input Output OrganizationKamal Acharya
 
Direct Memory Access & Interrrupts
Direct Memory Access & InterrruptsDirect Memory Access & Interrrupts
Direct Memory Access & InterrruptsSharmilaChidaravalli
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stackAsif Iqbal
 
Memory reference instruction
Memory reference instructionMemory reference instruction
Memory reference instructionSanjeev Patel
 
Address mapping
Address mappingAddress mapping
Address mappingrockymani
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modesRamaPrabha24
 
Cache memory ppt
Cache memory ppt  Cache memory ppt
Cache memory ppt Arpita Naik
 
Computer architecture cache memory
Computer architecture cache memoryComputer architecture cache memory
Computer architecture cache memoryMazin Alwaaly
 
Computer registers
Computer registersComputer registers
Computer registersDeepikaT13
 
Dma and dma controller 8237
Dma and dma controller 8237Dma and dma controller 8237
Dma and dma controller 8237Ashwini Awatare
 
memory reference instruction
memory reference instructionmemory reference instruction
memory reference instructionDeepikaT13
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controllerTech_MX
 

Mais procurados (20)

Input Output Organization
Input Output OrganizationInput Output Organization
Input Output Organization
 
Direct Memory Access & Interrrupts
Direct Memory Access & InterrruptsDirect Memory Access & Interrrupts
Direct Memory Access & Interrrupts
 
Register organization, stack
Register organization, stackRegister organization, stack
Register organization, stack
 
DMA presentation [By- Digvijay]
DMA presentation [By- Digvijay]DMA presentation [By- Digvijay]
DMA presentation [By- Digvijay]
 
Cache memory
Cache memoryCache memory
Cache memory
 
Memory reference instruction
Memory reference instructionMemory reference instruction
Memory reference instruction
 
Address mapping
Address mappingAddress mapping
Address mapping
 
Cache Memory
Cache MemoryCache Memory
Cache Memory
 
Registers
RegistersRegisters
Registers
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modes
 
Cache memory ppt
Cache memory ppt  Cache memory ppt
Cache memory ppt
 
Computer architecture cache memory
Computer architecture cache memoryComputer architecture cache memory
Computer architecture cache memory
 
Computer registers
Computer registersComputer registers
Computer registers
 
Dma and dma controller 8237
Dma and dma controller 8237Dma and dma controller 8237
Dma and dma controller 8237
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
memory reference instruction
memory reference instructionmemory reference instruction
memory reference instruction
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory Access
 
Modes of data transfer
Modes of data transferModes of data transfer
Modes of data transfer
 
8237 dma controller
8237 dma controller8237 dma controller
8237 dma controller
 
DMA and DMA controller
DMA and DMA controllerDMA and DMA controller
DMA and DMA controller
 

Destaque

Direct memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA ControllerDirect memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA ControllerMuhammed Afsal Villan
 
Direct Memory Access (DMA)-Working and Implementation
Direct Memory Access (DMA)-Working and ImplementationDirect Memory Access (DMA)-Working and Implementation
Direct Memory Access (DMA)-Working and ImplementationShubham Kumar
 
DMA controller intel 8257
DMA controller intel 8257DMA controller intel 8257
DMA controller intel 8257Daniel Ilunga
 
8237 / 8257 DMA
8237 / 8257 DMA8237 / 8257 DMA
8237 / 8257 DMAAJAL A J
 
Unit3 pipelining io organization
Unit3 pipelining  io organizationUnit3 pipelining  io organization
Unit3 pipelining io organizationSwathi Veeradhi
 
Community Strategy with a 101 on Social Media
Community Strategy with a 101 on Social MediaCommunity Strategy with a 101 on Social Media
Community Strategy with a 101 on Social MediaLisa Finkelstein
 
Operating Systems 1 (11/12) - Input / Output
Operating Systems 1 (11/12) - Input / OutputOperating Systems 1 (11/12) - Input / Output
Operating Systems 1 (11/12) - Input / OutputPeter Tröger
 
Forming a Community Strategy
Forming a Community StrategyForming a Community Strategy
Forming a Community StrategyCarolyn Chandler
 
5. spooling and buffering
5. spooling and buffering 5. spooling and buffering
5. spooling and buffering myrajendra
 
Conflict Management
Conflict ManagementConflict Management
Conflict ManagementHassan Ayub
 
Social system (Sociology)
Social system (Sociology)Social system (Sociology)
Social system (Sociology)Farhan Ali Khan
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory AccessSanjay Saluth
 
Social system and organizational culture
Social system and organizational cultureSocial system and organizational culture
Social system and organizational cultureUniversity of Cebu
 

Destaque (20)

Direct memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA ControllerDirect memory access (dma) with 8257 DMA Controller
Direct memory access (dma) with 8257 DMA Controller
 
Direct Memory Access (DMA)-Working and Implementation
Direct Memory Access (DMA)-Working and ImplementationDirect Memory Access (DMA)-Working and Implementation
Direct Memory Access (DMA)-Working and Implementation
 
DMA controller intel 8257
DMA controller intel 8257DMA controller intel 8257
DMA controller intel 8257
 
8237 / 8257 DMA
8237 / 8257 DMA8237 / 8257 DMA
8237 / 8257 DMA
 
Dma
DmaDma
Dma
 
Unit3 pipelining io organization
Unit3 pipelining  io organizationUnit3 pipelining  io organization
Unit3 pipelining io organization
 
Operating system
Operating systemOperating system
Operating system
 
Io (2)
Io (2)Io (2)
Io (2)
 
IO Management
IO ManagementIO Management
IO Management
 
Community Strategy with a 101 on Social Media
Community Strategy with a 101 on Social MediaCommunity Strategy with a 101 on Social Media
Community Strategy with a 101 on Social Media
 
Operating Systems 1 (11/12) - Input / Output
Operating Systems 1 (11/12) - Input / OutputOperating Systems 1 (11/12) - Input / Output
Operating Systems 1 (11/12) - Input / Output
 
Device Management
Device ManagementDevice Management
Device Management
 
I/O Buffering
I/O BufferingI/O Buffering
I/O Buffering
 
Types of conflict in literature
Types of conflict in literatureTypes of conflict in literature
Types of conflict in literature
 
Forming a Community Strategy
Forming a Community StrategyForming a Community Strategy
Forming a Community Strategy
 
5. spooling and buffering
5. spooling and buffering 5. spooling and buffering
5. spooling and buffering
 
Conflict Management
Conflict ManagementConflict Management
Conflict Management
 
Social system (Sociology)
Social system (Sociology)Social system (Sociology)
Social system (Sociology)
 
Direct Memory Access
Direct Memory AccessDirect Memory Access
Direct Memory Access
 
Social system and organizational culture
Social system and organizational cultureSocial system and organizational culture
Social system and organizational culture
 

Semelhante a Direct Memory Access

8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA ControllerShivamSood22
 
4.programmable dma controller 8257
4.programmable dma controller 82574.programmable dma controller 8257
4.programmable dma controller 8257MdFazleRabbi18
 
Module 3 special purpose programmable devices and their interfacing
Module 3 special purpose programmable devices and their interfacingModule 3 special purpose programmable devices and their interfacing
Module 3 special purpose programmable devices and their interfacingDeepak John
 
Intel 8257 programmable dma controller
Intel 8257 programmable dma controllerIntel 8257 programmable dma controller
Intel 8257 programmable dma controllerabdulugc
 
Intel 8257 programmable dma controller
Intel 8257 programmable dma controllerIntel 8257 programmable dma controller
Intel 8257 programmable dma controllerafzal ahmad
 
8086 modes
8086 modes8086 modes
8086 modesPDFSHARE
 
3 ijcmes dec-2015-27-simulation of 8257 direct memory access controller (dma)...
3 ijcmes dec-2015-27-simulation of 8257 direct memory access controller (dma)...3 ijcmes dec-2015-27-simulation of 8257 direct memory access controller (dma)...
3 ijcmes dec-2015-27-simulation of 8257 direct memory access controller (dma)...INFOGAIN PUBLICATION
 
8086 Programing.ppt
8086 Programing.ppt8086 Programing.ppt
8086 Programing.pptDrRRAMAN
 
discuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfdiscuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfinfo998421
 
INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)Prof Ansari
 
chapter-4-microprocessor-interfacing.pptx
chapter-4-microprocessor-interfacing.pptxchapter-4-microprocessor-interfacing.pptx
chapter-4-microprocessor-interfacing.pptxJaypeeFajanil
 
INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)Prof Ansari
 

Semelhante a Direct Memory Access (20)

8257 DMA Controller
8257 DMA Controller8257 DMA Controller
8257 DMA Controller
 
4.programmable dma controller 8257
4.programmable dma controller 82574.programmable dma controller 8257
4.programmable dma controller 8257
 
DMA
DMADMA
DMA
 
Concept of dma
Concept of dmaConcept of dma
Concept of dma
 
Module 3 special purpose programmable devices and their interfacing
Module 3 special purpose programmable devices and their interfacingModule 3 special purpose programmable devices and their interfacing
Module 3 special purpose programmable devices and their interfacing
 
Intel 8257 programmable dma controller
Intel 8257 programmable dma controllerIntel 8257 programmable dma controller
Intel 8257 programmable dma controller
 
Intel 8257 programmable dma controller
Intel 8257 programmable dma controllerIntel 8257 programmable dma controller
Intel 8257 programmable dma controller
 
8086 modes
8086 modes8086 modes
8086 modes
 
3 ijcmes dec-2015-27-simulation of 8257 direct memory access controller (dma)...
3 ijcmes dec-2015-27-simulation of 8257 direct memory access controller (dma)...3 ijcmes dec-2015-27-simulation of 8257 direct memory access controller (dma)...
3 ijcmes dec-2015-27-simulation of 8257 direct memory access controller (dma)...
 
8086 Programing.ppt
8086 Programing.ppt8086 Programing.ppt
8086 Programing.ppt
 
discuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdfdiscuss the drawbacks of programmed and interrupt driven io and des.pdf
discuss the drawbacks of programmed and interrupt driven io and des.pdf
 
Direct Memory Access.pdf
Direct Memory Access.pdfDirect Memory Access.pdf
Direct Memory Access.pdf
 
Programmable dma controller 8237
Programmable dma controller 8237Programmable dma controller 8237
Programmable dma controller 8237
 
Dma
DmaDma
Dma
 
INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)
 
chapter-4-microprocessor-interfacing.pptx
chapter-4-microprocessor-interfacing.pptxchapter-4-microprocessor-interfacing.pptx
chapter-4-microprocessor-interfacing.pptx
 
INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)INTERFACING WITH INTEL 8251A (USART)
INTERFACING WITH INTEL 8251A (USART)
 
ppppptttt.pdf
ppppptttt.pdfppppptttt.pdf
ppppptttt.pdf
 
Unit no 05
Unit no 05Unit no 05
Unit no 05
 
Chapter5
Chapter5Chapter5
Chapter5
 

Último

定制加拿大滑铁卢大学毕业证(Waterloo毕业证书)成绩单(文凭)原版一比一
定制加拿大滑铁卢大学毕业证(Waterloo毕业证书)成绩单(文凭)原版一比一定制加拿大滑铁卢大学毕业证(Waterloo毕业证书)成绩单(文凭)原版一比一
定制加拿大滑铁卢大学毕业证(Waterloo毕业证书)成绩单(文凭)原版一比一zul5vf0pq
 
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一ga6c6bdl
 
Low Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service Nashik
Low Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service NashikLow Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service Nashik
Low Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
如何办理(Adelaide毕业证)阿德莱德大学毕业证成绩单Adelaide学历认证真实可查
如何办理(Adelaide毕业证)阿德莱德大学毕业证成绩单Adelaide学历认证真实可查如何办理(Adelaide毕业证)阿德莱德大学毕业证成绩单Adelaide学历认证真实可查
如何办理(Adelaide毕业证)阿德莱德大学毕业证成绩单Adelaide学历认证真实可查awo24iot
 
FULL ENJOY - 8264348440 Call Girls in Hauz Khas | Delhi
FULL ENJOY - 8264348440 Call Girls in Hauz Khas | DelhiFULL ENJOY - 8264348440 Call Girls in Hauz Khas | Delhi
FULL ENJOY - 8264348440 Call Girls in Hauz Khas | Delhisoniya singh
 
Call Girls Service Kolkata Aishwarya 🤌 8250192130 🚀 Vip Call Girls Kolkata
Call Girls Service Kolkata Aishwarya 🤌  8250192130 🚀 Vip Call Girls KolkataCall Girls Service Kolkata Aishwarya 🤌  8250192130 🚀 Vip Call Girls Kolkata
Call Girls Service Kolkata Aishwarya 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
Russian Escorts in lucknow 💗 9719455033 💥 Lovely Lasses: Radiant Beauties Shi...
Russian Escorts in lucknow 💗 9719455033 💥 Lovely Lasses: Radiant Beauties Shi...Russian Escorts in lucknow 💗 9719455033 💥 Lovely Lasses: Radiant Beauties Shi...
Russian Escorts in lucknow 💗 9719455033 💥 Lovely Lasses: Radiant Beauties Shi...nagunakhan
 
Dubai Call Girls O528786472 Call Girls In Dubai Wisteria
Dubai Call Girls O528786472 Call Girls In Dubai WisteriaDubai Call Girls O528786472 Call Girls In Dubai Wisteria
Dubai Call Girls O528786472 Call Girls In Dubai WisteriaUnited Arab Emirates
 
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...Suhani Kapoor
 
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...Call Girls in Nagpur High Profile
 
Top Rated Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated  Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...Top Rated  Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...Call Girls in Nagpur High Profile
 
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai GapedCall Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai Gapedkojalkojal131
 
Gaya Call Girls #9907093804 Contact Number Escorts Service Gaya
Gaya Call Girls #9907093804 Contact Number Escorts Service GayaGaya Call Girls #9907093804 Contact Number Escorts Service Gaya
Gaya Call Girls #9907093804 Contact Number Escorts Service Gayasrsj9000
 
Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...
Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...
Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...Pooja Nehwal
 
Call Girls Delhi {Rohini} 9711199012 high profile service
Call Girls Delhi {Rohini} 9711199012 high profile serviceCall Girls Delhi {Rohini} 9711199012 high profile service
Call Girls Delhi {Rohini} 9711199012 high profile servicerehmti665
 
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)kojalkojal131
 
(ZARA) Call Girls Jejuri ( 7001035870 ) HI-Fi Pune Escorts Service
(ZARA) Call Girls Jejuri ( 7001035870 ) HI-Fi Pune Escorts Service(ZARA) Call Girls Jejuri ( 7001035870 ) HI-Fi Pune Escorts Service
(ZARA) Call Girls Jejuri ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Pallawi 9167673311 Call Girls in Thane , Independent Escort Service Thane
Pallawi 9167673311  Call Girls in Thane , Independent Escort Service ThanePallawi 9167673311  Call Girls in Thane , Independent Escort Service Thane
Pallawi 9167673311 Call Girls in Thane , Independent Escort Service ThanePooja Nehwal
 
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...Pooja Nehwal
 
Top Rated Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Call Girls in Nagpur High Profile
 

Último (20)

定制加拿大滑铁卢大学毕业证(Waterloo毕业证书)成绩单(文凭)原版一比一
定制加拿大滑铁卢大学毕业证(Waterloo毕业证书)成绩单(文凭)原版一比一定制加拿大滑铁卢大学毕业证(Waterloo毕业证书)成绩单(文凭)原版一比一
定制加拿大滑铁卢大学毕业证(Waterloo毕业证书)成绩单(文凭)原版一比一
 
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
 
Low Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service Nashik
Low Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service NashikLow Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service Nashik
Low Rate Call Girls Nashik Vedika 7001305949 Independent Escort Service Nashik
 
如何办理(Adelaide毕业证)阿德莱德大学毕业证成绩单Adelaide学历认证真实可查
如何办理(Adelaide毕业证)阿德莱德大学毕业证成绩单Adelaide学历认证真实可查如何办理(Adelaide毕业证)阿德莱德大学毕业证成绩单Adelaide学历认证真实可查
如何办理(Adelaide毕业证)阿德莱德大学毕业证成绩单Adelaide学历认证真实可查
 
FULL ENJOY - 8264348440 Call Girls in Hauz Khas | Delhi
FULL ENJOY - 8264348440 Call Girls in Hauz Khas | DelhiFULL ENJOY - 8264348440 Call Girls in Hauz Khas | Delhi
FULL ENJOY - 8264348440 Call Girls in Hauz Khas | Delhi
 
Call Girls Service Kolkata Aishwarya 🤌 8250192130 🚀 Vip Call Girls Kolkata
Call Girls Service Kolkata Aishwarya 🤌  8250192130 🚀 Vip Call Girls KolkataCall Girls Service Kolkata Aishwarya 🤌  8250192130 🚀 Vip Call Girls Kolkata
Call Girls Service Kolkata Aishwarya 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
Russian Escorts in lucknow 💗 9719455033 💥 Lovely Lasses: Radiant Beauties Shi...
Russian Escorts in lucknow 💗 9719455033 💥 Lovely Lasses: Radiant Beauties Shi...Russian Escorts in lucknow 💗 9719455033 💥 Lovely Lasses: Radiant Beauties Shi...
Russian Escorts in lucknow 💗 9719455033 💥 Lovely Lasses: Radiant Beauties Shi...
 
Dubai Call Girls O528786472 Call Girls In Dubai Wisteria
Dubai Call Girls O528786472 Call Girls In Dubai WisteriaDubai Call Girls O528786472 Call Girls In Dubai Wisteria
Dubai Call Girls O528786472 Call Girls In Dubai Wisteria
 
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
VIP Call Girls Kavuri Hills ( Hyderabad ) Phone 8250192130 | ₹5k To 25k With ...
 
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...
VVIP Pune Call Girls Balaji Nagar (7001035870) Pune Escorts Nearby with Compl...
 
Top Rated Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated  Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...Top Rated  Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated Pune Call Girls Shirwal ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
 
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai GapedCall Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
Call Girls Dubai Slut Wife O525547819 Call Girls Dubai Gaped
 
Gaya Call Girls #9907093804 Contact Number Escorts Service Gaya
Gaya Call Girls #9907093804 Contact Number Escorts Service GayaGaya Call Girls #9907093804 Contact Number Escorts Service Gaya
Gaya Call Girls #9907093804 Contact Number Escorts Service Gaya
 
Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...
Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...
Kalyan callg Girls, { 07738631006 } || Call Girl In Kalyan Women Seeking Men ...
 
Call Girls Delhi {Rohini} 9711199012 high profile service
Call Girls Delhi {Rohini} 9711199012 high profile serviceCall Girls Delhi {Rohini} 9711199012 high profile service
Call Girls Delhi {Rohini} 9711199012 high profile service
 
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
(=Towel) Dubai Call Girls O525547819 Call Girls In Dubai (Fav0r)
 
(ZARA) Call Girls Jejuri ( 7001035870 ) HI-Fi Pune Escorts Service
(ZARA) Call Girls Jejuri ( 7001035870 ) HI-Fi Pune Escorts Service(ZARA) Call Girls Jejuri ( 7001035870 ) HI-Fi Pune Escorts Service
(ZARA) Call Girls Jejuri ( 7001035870 ) HI-Fi Pune Escorts Service
 
Pallawi 9167673311 Call Girls in Thane , Independent Escort Service Thane
Pallawi 9167673311  Call Girls in Thane , Independent Escort Service ThanePallawi 9167673311  Call Girls in Thane , Independent Escort Service Thane
Pallawi 9167673311 Call Girls in Thane , Independent Escort Service Thane
 
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
9892124323 Pooja Nehwal Call Girls Services Call Girls service in Santacruz A...
 
Top Rated Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Chakan ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
 

Direct Memory Access

  • 1. DIRECT MEMORY ACCESS IN MPU L E C : W A E L E S A M M A T T I B Y Z A H R A A A B D U L K A D E M , D Y A R A H M E D , M A Y A D A H A Z E M A N D T U Q A A Q E E L . Al Mansour University Software Engineering Department 2nd stage
  • 2. INTRODUCTION The DMA I/O technique provides direct access to the memory while the microprocessor is temporarily disabled. This chapter also explains the operation of disk memory systems and video systems that are often DMA-processed. Disk memory includes floppy, fixed, and optical disk storage. Video systems include digital and analog monitors.
  • 3. BASIC DMA OPERATION Two control signals are used to request and acknowledge a direct memory access (DMA) transfer in the microprocessor-based system. the HOLD pin is an input used to request a DMA action the HLDA pin is an output that acknowledges the DMA action Figure 1.1 shows the timing that is typically found on these two DMA control pins.
  • 4. HOLD is sampled in any clocking cycle when the processor recognizes the hold, it stops executing software and enters hold cycles HOLD input has higher priority than INTR or NMI the only microprocessor pin that has a higher priority than a HOLD is the RESET pin.
  • 5. HLDA becomes active to indicate the processor has placed its buses at high-impedance state. as can be seen in the timing diagram, there are a few clock cycles between the time that HOLD changes and until HLDA changes HLDA output is a signal to the requesting device that the processor has relinquished control of its memory and I/O space. one could call HOLD input a DMA request input and HLDA output a DMA grant signal
  • 6. BASIC DMA DEFINITIONS Direct memory accesses normally occur between an I/O device and memory without the use of the microprocessor. a DMA read transfers data from the memory to the I/O device A DMA write transfers data from an I/O device to memory Memory & I/O are controlled simultaneously. which is why the system contains separate memory and I/O control signals
  • 7. A DMA read causes the MRDC and IOWC signals to activate simultaneously. transferring data from memory to the I/O device A DMA write causes the MWTC bar and IORC bar signals to both activate. 8086/8088 require a controller or circuit such as shown in Fig 1–2 for control bus signal generation. The DMA controller provides memory with its address, and controller signal (DACK) selects the I/O device during the transfer
  • 8. DATA TRANSFER SPEED IS DETERMINED BY SPEED OF THE MEMORY DEVICE OR A DMA CONTROLLER. -IF MEMORY SPEED IS 50 NS, DMA TRANSFERS OCCUR AT RATES UP TO 1/50 NS OR 20 M BYTES PER SECOND -IF THE DMA CONTROLLER FUNCTIONS AT A MAXIMUM RATE OF 15 MHZ WITH 50 NS MEMORY, MAXIMUM TRANSFER RATE IS 15 MHZ BECAUSE THE DMA CONTROLLER IS SLOWER THAN THE MEMORY IN MANY CASES, THE DMA CONTROLLER SLOWS THE SPEED OF THE SYSTEM WHEN TRANSFERS OCCUR.
  • 9. THE 8237 DMA CONTROLLER The 8237 supplies memory & I/O with control signals and memory address information during the DMA transfer. actually a special-purpose microprocessor whose job is high-speed data transfer between memory and I/O Figure 1–3 shows block diagram of the 8237 programmable DMA controller 8237 is not a discrete component in modern microprocessor-based systems. it appears within many system controller chip sets 8237 is a four-channel device compatible with 8086/8088, adequate for small systems. expandable to any number of DMA channel inputs 8237 is capable of DMA transfers at rates up to 1.6M bytes per second. each channel is capable of addressing a full 64K-byte section of memory and transfer up to 64K bytes with a single programming
  • 10. Figure 1–3 The 8237A-5 programmable DMA controller
  • 12.
  • 14. Example (2) : Write the 1234 h into the base address register and the current register for channel 0 of DMA controller located at base I/O address DMA? Sol:- MOV AL,34H ; WRITE LOW BYTE OUT DMA +0, AL MOV AL,12H ; WRITE THE HIGT BYTE OUT DMA +0, AL Example (1) : Write 0FFF H into the base and current count registers for channel 1 of DMA located at address DMA ? Sol:- MOV AL,0FFH ; WRITE LOW BYTE OUT DMA +3, AL MOV AL,0FH ; WRITE THE HIGT BYTE OUT DMA +3, AL
  • 15.
  • 18.
  • 20.
  • 21.
  • 22.
  • 24.
  • 26. DIRECT MEMORY ACCESSIN MPU E D I T E D B Y T U Q A A Q E E L R e s e a r c h e r s : Z a h r a a A b d u l k a d e m , M a y a d a H a z e m , D y i a r A h m e d a n d T u q a A q e e l . L e c : Wa e l E s a m M a t t i Al Mansour University Software Engineering Department 2nd stage