© 2006 Pearson Education, Upper Saddle River, NJ 07458. All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 13 Direct Memory Access and DMA-

Slides:



Advertisements
Similar presentations
I/O Organization popo.
Advertisements

Chapter 2 (cont.) An Introduction to the 80x86 Microprocessor Family Objectives: The different addressing modes and instruction types available The usefulness.
Parul Polytechnic Institute
PROGRAMMABLE PERIPHERAL INTERFACE -8255
There are two types of addressing schemes:
MICROPROCESSORS TWO TYPES OF MODELS ARE USED :  PROGRAMMER’S MODEL :- THIS MODEL SHOWS FEATURES, SUCH AS INTERNAL REGISTERS, ADDRESS,DATA & CONTROL BUSES.
Chapter 13: Direct Memory Access and DMA-Controlled I/O.
8086.  The 8086 is Intel’s first 16-bit microprocessor  The 8086 can run at different clock speeds  Standard 8086 – 5 MHz  –10 MHz 
The 8085 Microprocessor Architecture
Direct Memory Access Introduction to 8237
I/O Unit.
Introduction to Microprocessor
CEN 226: Computer Organization & Assembly Language :CSC 225 (Lec#3) By Dr. Syed Noman.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 3 Addressing Modes Barry B. Brey.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 13 Direct Memory Access (DMA)
Vacuum tubes Transistor 1948 ICs 1960s Microprocessors 1970s.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 2 The Microprocessor and its Architecture.
1 TK2633TK Microprocessor Architecture DR MASRI AYOB.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 5 Arithmetic and Logic Instructions.
Introduction An interrupt is an event which informs the CPU that its service (action) is needed. Sources of interrupts: internal fault (e.g.. divide by.
Vacuum tubes Transistor 1948 –Smaller, Cheaper, Less heat dissipation, Made from Silicon (Sand) –Invented at Bell Labs –Shockley, Brittain, Bardeen ICs.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 4 Data Movement Instructions by.
P Address bus Data bus Read-Only Memory (ROM) Read-Write Memory (RAM)
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 2 The Microprocessor and its Architecture.
Khaled A. Al-Utaibi  Intel Peripheral Controller Chips  Basic Description of the 8255  Pin Configuration of the 8255  Block Diagram.
An Introduction to 8086 Microprocessor.
ACOE255Microprocessors I - Frederick University1 Direct Memory Access (DMA) – (Chapter 13) Dr. Konstantinos Tatas.
MICROPROCESSOR INPUT/OUTPUT
MICROPROCESSORS AND APPLICATIONS
8086/8088 Hardware Specifications Power supply:  +5V with tolerance of ±10%;  360mA. Input characteristics:  Logic 0 – 0.8V maximum, ±10μA maximum;
ENEE 440 Chapter DMA Controller 8237 DMA Controller Summary Direct Memory Access means that the microprocessor is not involved in the transfer.
1 Microprocessor-based Systems Course 8 Design of input/output interfaces.
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.
ECE291 Computer Engineering II Lecture 12 Josh Potts University of Illinois at Urbana- Champaign.
Lecture 14 Basic I/O Interface Presented By Dr. Shazzad Hosain Asst. Prof. EECS, NSU.
Video systems. Lesson plan Review the code for the previous exercise Video systems Review for midterm exam.
Unit - 2 DMA 8237A-5.
Microprocessor Microprocessor (cont..) It is a 16 bit μp has a 20 bit address bus can access upto 220 memory locations ( 1 MB). It can support.
PPI-8255.
Introduction to Microprocessors - chapter3 1 Chapter 3 The 8085 Microprocessor Architecture.
A Design Example A Programmable Calculator. Programmable Calculator Working in Exact Mode Receiving Program from RS232 Port Saving Programs using RS232.
Block diagram of 8086.
Basic LED Interface.
Khaled A. Al-Utaibi  I/O Ports  I/O Space VS Memory Space  80x86 I/O Instructions − Direct I/O Instructions − Indirect I/O Instructions.
Intel 8086 (8088) Microprocessor Structure
Direct Memory Access Sequence of events:  A device (peripheral, CPU) requests a controller to transfer information;  The controller request control over.
MODULE 5 INTEL TODAY WE ARE GOING TO DISCUSS ABOUT, FEATURES OF 8086 LOGICAL PIN DIAGRAM INTERNAL ARCHITECTURE REGISTERS AND FLAGS OPERATING MODES.
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
Internal Programming Architecture or Model
Intel 8086 MICROPROCESSOR ARCHITECTURE
Microprocessors CSE- 341 Dr. Jia Uddin Assistant Professor, CSE, BRAC University Dr. Jia Uddin, CSE, BRAC University.
I NTEL 8086 M icroprocessor بسم الله الرحمن الرحيم 1.
Lecture 2 Programming of 8086 Лектор: Люличева И.А. 1.
Format of Assembly language
8086 Microprocessor.
Basic Microprocessor Architecture
DMA CONTROLLER 8257 Features: It is a 4-channel DMA.
8085 Microprocessor Architecture
Mikroişlemci Sistemleri
E3165 DIGITAL ELECTRONIC SYSTEM
Chapter 3 Addressing Modes
An Introduction to Microprocessor Architecture using intel 8085 as a classic processor
DMA CONTROLLER WHOLE WORKING
Chapter 4 Data Movement Instructions
Microprocessor & Assembly Language
8237 DMA CONTROLLER.
8085 Microprocessor Architecture
8237 DMA CONTROLLER.
8085 Microprocessor Architecture
Presentation transcript:

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 13 Direct Memory Access and DMA- Controlled I/O Barry B. Brey

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e DMA Direct Memory Access (DMA) is a method whereby the memory and I/O space of the microprocessor can be accessed directly without the intervention of the microprocessor or a program. During a DMA access the microprocessor is turned off by placing a logic one on the HOLD input. After placing a logic one on HOLD, the microprocessor issues a logic one on the HLDA to indicate a hold is in effect.

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e During a HOLD, the microprocessor stops running the program and it places its address, data, and control bus connections at their impedance state. This in effect is the same as removing the microprocessor from its socket! While the microprocessor is held, other devices are free to gain access to its memory and I/O space to directly transfer data.

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e HOLD has a higher priority than interrupts and HOLD takes effect in a clock or two. The only input with a higher priority than HOLD is the RESET input to the microprocessor.

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e DMA Control Signals On early Intel microprocessor the control signals were not DMA compatible without additional circuitry. Because during a DMA, the memory and I/O are accessed simultaneously, 4 control signals are needed. The next slide illustrates a multiplexer used to generate these signals.

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e 8237 DMA Controller The chipset in a modern computer contains a pair of 8237 DMA controllers to provide 8 DMA channels. The only feature not supported by the chipset is the memory-to-memory DMA transfer described for the 8237 DMA controller integrated circuit. Intel removed this feature from the chipset because of the system architecture.

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e DMA Command Register

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e DMA Mode Register

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e DMA Request Register

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Mask Set/Reset Register

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e DMA Mask Register

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Status Register

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e 8237 Port Assignments

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e 8237 Channel Registers

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e DMA Page Registers ChannelPort for A16–A23Port for A24–A31 087H487H 183H483H 281H481H 382H482H 48FH48FH 58BH48BH 689H489H 78AH486H

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e ;A procedure that transfers a block of data using the 8237A ;DMA controller in Figure This is a memory-to-memory ;transfer. ;Calling parameters: ;SI = source address ;DI = destination address ;CX = count ;ES = segment of source and destination LATCHBEQU10H CLEARFEQU7CH CHOAEQU70H CH1AEQU72H CH1CEQU73H MODEEQU7BH CMMDEQU78H MASKSEQU7FH REQEQU79H STATUSEQU78H TRANSPROCNEAR USES AX MOV AX,ES;program latch B MOV AL,AH SHR AL,4 OUT LATCHB,AL OUT CLEARF,AL;clear F/L MOV AX,ES;program source address SHL AX,4 ADD AX,SI OUT CH0A,AL MOV AL,AH OUT CH0A MOV AX,ES;program destination address SHL AX,4 ADD AX,DI OUT CH1A,AL MOV AL,AH OUT CH1A,AL

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e MOV AX,CX;program count DEC AX OUT CH1C,AL MOV AL,AH OUT CH1C,AL MOV AL,88H;program mode OUT MODE,AL MOV AL,85H OUT MODE,AL MOV AL,1;enable block transfer OUT CMMD,AL MOV AL,0EH;unmask channel 0 OUT MASKS,AL MOV AL,4;start DMA OUT REQ,AL.REPEAT;wait for completion IN AL,STATUS.UNTIL AL & 1 RET TRANSENDP

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e ;A procedure that clears the DOS mode video screen.= using the DMA ;controller as depicted in Figure ;Calling sequence: ;DI = offset address of area cleared ;ES = segment address of area cleared ;CX = number of bytes cleared LATCHBEQU10H CLEARFEQU7CH CHOAEQU70H CH1AEQU72H CH1CEQU73H MODEEQU7BH CMMDEQU78H MASKSEQU7FH REQEQU79H STATUSEQU78H ZERO EQU0 CLEARPROCNEAR USES AX MOV AX,ES;program latch B MOV AL,AH SHR AL,4 OUT LATCHB,AL OUT CLEARF,AL;clear F/L MOV AL,ZERO;save zero in first byte MOV ES:[DI],AL MOV AX,ES;program source address SHL AX,4 ADD AX,SI OUT CH0A,AL MOV AL,AH OUT CH0A

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e MOV AX,ES;program destination address SHL AX,4 ADD AX,DI OUT CH1A,AL MOV AL,AH OUT CH1A,AL MOV AX,CX;program count DEC AX OUT CH1C,AL MOV AL,AH OUT CH1C,AL MOV AL,88H;program mode OUT MODE,AL MOV AL,85H OUT MODE,AL MOV AL,03H;enable block hold transfer OUT CMMD,AL MOV AL,0EH;enable channel 0 OUT MASKS,AL MOV AL,4;start DMA OUT REQ,AL.REPEAT IN AL,STATUS.UNTIL AL & 1 RET CLEARENDP

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e ;A procedure that prints data via the printer interface in ;Figure ;Calling sequence: ;BX = offset address of printer data ;DS = segment address of printer data ;CX = number of bytes to print LATCHBEQU10H CLEARFEQU7CH CH3AEQU76H CH1CEQU77H MODEEQU7BH CMMDEQU78H MASKSEQU7FH REQEQU79H PRINTPROCNEAR USES AX CX BX MOV EAX,0 MOV AX,DS;program latch B SHR EAX,4 PUSH AX SHR EAX,16 OUT LATCHB,AL POP AX;program address OUT CH3A,AL MOV AL,AH OUT CH3A,AL MOV AX,CX;program count DEC AX OUT CH3C,AL MOV AL,AH OUT CH3C,AL MOV AL,0BH;program mode OUT MODE,AL MOV AL,00H;enable block mode transfer OUT CMMD,AL MOV AL,7;enable channel 3 OUT MASKS,AL RET PRINTENDP

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e ;A procedure that tests for completion of the DMA action STATUS EQU 78H TESTP PROC NEAR USES AX.REPEAT IN AL,STATUS.UNTIL AL & 8 RET TESTP ENDP

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Input data streamRLL output

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e

© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e