Beruflich Dokumente
Kultur Dokumente
Organisation:
ICT2101
Lecture(s)2124:
I/O Organisation
By Kavitha Thamadharan
Content
I/O Address Mapping
I/O Programming
I/O Interaction
Polling
Interrupt-Driven
DMA
I/O Interface
I/O.
Memory mapped I/O.
I/O Ports
IN Instruction
Direct
Indirect
I/O : IN AL, DX
OUT Instruction
Indirect
Indirect
Memory-Mapped I/O
Rather than having an explicit I/O instructions, memorymapped I/O technique reserve specific addresses within
the memory-address space for controlling the I/O
devices. In hardware it appears to be a conventional I/O
port. But because it is mapped to a memory address, it is
accessible in software using any of the memory read or
write instructions.
For example, the instruction MOV BH,[1000] becomes
an input instruction (input the data at port 1000 to
register BH).
The advantage of memory-mapped I/O is that large
number of instructions and addressing modes
available for referencing memory compared to the single
input and output commands available with an I/Omapped port.
Polling
Interrupt-Driven I/O
Interrupt-Driven I/O
Interrupt Types
Concept of DMA
Quantitative Comparison:
Processing DMA
DMA steps:
1.
The interface sends the DMA controller a request for DMA service.
A Bus request is made to the HOLD pin (active High) on the 8086
microprocessor and the controller gains control of the bus.
A Bus grant is returned to the DMA controller from the Hold
Acknowledge (HLDA) pin (active High) on the 8086 microprocessor.
The DMA controller places contents of the address register onto the
address bus.
The controller sends the interface a DMA acknowledgment, which
tells the interface to put data on the data bus. (For an output it
signals the interface to latch the next data placed on the bus.)
The data byte is transferred to the memory location indicated by the
address bus.
2.
3.
4.
5.
6.
Types of DMA
DMA
DMA Modes
DMA Modes