Beruflich Dokumente
Kultur Dokumente
3 December 2014
3 December 2014
3 December 2014
Memory-mapped I/O
The bus enables all the devices connected to it to
exchange information.
It consists of three sets of lines used to carry address,
data and control signals.
Each I/O device is assigned a unique set of addresses.
When the processor places a particular address on the
address lines, the device that recognizes this address
responds to the commands issued on the control lines.
The processor requests either a read or a write
operation.
The requested data are transferred over the data lines.
When I/O devices and the memory share the same
address space, the arrangement is called memorymapped I/O.
5
Computer Science and Engineering , 3 December 2014
BVBCET Hubli-580031
3 December 2014
I/O-mapped I/O
Some processors have special In and Out
instructions to perform I/O transfers.
When building a computer system based on these
processors, the designer has the option of
connecting I/O devices to use the special I/O
address space.
One advantage of a separate address space is that
I/O devices deal with fewer address lines.
A special signal on the bus indicates that the
requested read or write transfer is an I/O operation.
When this signal is asserted, the memory unit
ignores the requested transfer.
3 December 2014
3 December 2014
3 December 2014
10
3 December 2014
11
3 December 2014
12
3 December 2014
13
3 December 2014
Bus
Processor
D ATAIN
DA TA OUT
SIN
SOUT
K eyboard
Display
Input:
Bus
Processor
D AT AIN
SIN
K eyboard
D A TA OUT
SOUT
Display
Output:
When SOUT is equal to 1, the display is ready to receive
a
character.
A program monitors SOUT, and when SOUT is set to 1,
the
processor transfers a character code to the buffer
DATAOUT.
Transfer
of a character
code to DATAOUT clears SOUT to
15
Computer Science and Engineering , 3 December 2014
BVBCET Hubli-580031
0.
16
3 December 2014
17
3 December 2014
18
3 December 2014
19
3 December 2014
20
3 December 2014
21
3 December 2014
22
3 December 2014
24
3 December 2014
25
3 December 2014
26
3 December 2014