Professional Documents
Culture Documents
DMA Definitions:
|
DMA
Basic DMA operation:
|
DMA
Basic DMA operation :
The HLDA signal is a bus grant signal which indicates that the
microprocessor has indeed released control of its buses by
placing the buses at their high-impedance states.
The HOLD input has a higher priority than the INTR or NMI
interrupt inputs.
|
DMA
|
DMA
|
DMA
The 8237 DMA controller supplies the memory and I/O with
control signals and memory address information during the DMA
transfer.
|
DMA
|
DMA
Some important signal pins:
|
DMA
Some important signal pins:
|
DMA
Internal registers:
The m
(CR) programs the operation of the
8237 DMA controller
|
DMA
MR : The
programs the mode of operation for a
channel. Each channels has its own mode register
|
DMA
h h
|
DMA
8237A-5 Request register
8237A-5 mask set / reset register
|
DMA
|
DMA
|
DMA
Transfers may continue until the I/O device has exhausted its data
capacity. the DMA service can be re-established by means of a DREQ.
|
DMA
Cascade Mode:
more than one 8237A
together for simple system
expansion.
|
DMA
|
DMA
Software Command:
There are 3 software commands used to control the operation
of the 8237.
Software commands,
Clear the first/last f/f : clear the first/last f/f within the 8237.
if F/L = 0, the low order byte is selected for read/write in the
current address & current count register.
if F/L = 1, the high order byte is selected for read/write in the
current address & current count register.
Master clear : acts same as RESET signal to the 8237, this command
disables all channels
|
DMA
if the state of the F/L f/f is unknown, the count and address
Could be programmed incorrectly
u rre n t a d d r re a d
u rre n t o rd re a d
u rre n t a d d r re a d
u rre n t o rd re a d
u rre n t a d d r re a d
u rre n t o rd re a d
u rre n t a d d r re a d
u rre n t o rd re a d
2
|
DMA
|
DMA
|
DMA
|
DMA
A
m
system (also called distributed system) uses
more than one microprocessor to accomplish the work.
A
system performs more than one task at a time.
The
m is connected to memory and I/O devices that are
directly accessed by a single microprocessor without any special
protocol or access rules.
|
DMA
Shared bus
Bus master
Microprocessor
Shared Shared
memory I/O
|
DMA
Characteristics of buses:
Local bus-
- Resident to the microprocessor
- Contains the resident or local memory and I/O
Shared bus-
- Is connected to all microprocessors in the system
- Is used to exchange data between microprocessors in
the system
Î The shared bus in the personal computer is what we often
call the local bus in the personal computer as it is local to the
microprocessor in the personal computer.
A is a device (microprocessor or otherwise) that
can control a bus containing memory and I/Ov
|
DMA
A remote bus master microprocessor can execute variable
software but the DMA controller can only transfer data.
Access to the shared bus for the remote bus master is
accomplished via a bus arbiter.
A
functions to resolve priority between bus
masters and allows only one device at a time to access the
shared bus.
Bus Arbiter:
|
DMA
X5V GND
| |
'
|
S2
|
S1
S0 |
'
'
|
'
|
O
|
DMA
Definition of some pins
Ä
allows the 8289 to acquire the shared
bus on the next falling edge of the Ä signal.
Ä
used to resolve priority in a system
that contains multiple bus masters.
Ä
indicates that an 8289 has acquired the
shared bus when used as an output , or used to detect that
another 8289 has acquired the shared bus when used as an
input.
|
DMA
Äselects, when
Ä=1, whether the 8289 operates iV a
shared-bus system with I/O (=0) or with memory and I/O (==1)
Ä
configure the 8289 as a shared-bus master
(=1) or a local-bus master (=0).
Ä/
Ä
selects the shared-bus
(=1) or the resident local bus (=0)
|
DMA
1. I/O peripheral bus mode: All devices on the local bus are
treated as I/O, including memory, and are accessed by I/O
instructions. The shared bus is accessed by memory access.
|
|
|
|
|
|
|
!"
|
|
|
|
|
|
|
||
||
| ||
|
DMA
The bus masters function in their own local bus modes using
their own local programs, memory, and I/O space.
|
DMA
|
DMA
The 8289 controls the shared bus by making the READY input
to the microprocessor be 0 if access to the shared bus is denied.
|
DMA
|
DMA
|
DMA
Parallel Priority:
V V
u u
priority
encoder
V
|
DMA
- The Ä
signal becomes 0 and locks out any other
request.
|
DMA
Disk Memory System:
|
DMA
Older 5 and 1/4 flexible floppies spin at 300 RPM, have 40 tracks with
9 sectors/track and two sides.
$ %
&
'"
Write protect
Head door
|
DMA
|
DMA
Use a flying head to store and read data from the platters and
spins at 3,000 to 10,000 RPM (> 10X that of floppies).
Hard disks usually have at least 4 platters and can have 2 heads
per surface.
The heads are moved from cylinder to cylinder using a voice coil.
|
DMA
|
DMA
Access times are less than 10ms (compared with 200ms for
floppies).
|
DMA
DVDs are similar but have much higher bit density (4.7, 8.5
and 17 GB).
|
DMA
Video Displays:
|
DMA
The TTL RGB Monitor:
It uses TTL level signs (0 or 5V) as video inputs and a 4th line
called intensity.
|
DMA
|
DMA
|
DMA
A common standard uses a 6-bit DAC for each video signal for
64 distinct voltage levels over 0 to 0.7 V range.
|