Académique Documents
Professionnel Documents
Culture Documents
SYLLABUS
Computer Organization
(Autonomous) • Input-Output Organization: Peripheral Devices – ASCII Alphanumeric Characters,
Input-Output Interface – I/O Bus and Interface Modules, I/O vs Memory Bus, Isolated
vs Memory Mapped I/O, Example of I/O Interface, Asynchronous data transfer – Strobe
UNIT V
Control, Handshaking, Asynchronous Serial Transfer, Modes of Transfer – Example of
Sections - A & D Programmed I/O, Interrupt Initiated I/O, Priority Interrupts – Daisy Chaining Priority,
Parallel Priority Interrupt, Priority Encoder, Interrupt Cycle, Direct memory Access –
DMA Controller, DMA Transfer.
Prepared by
Anil Kumar Prathipati, Asst. Prof., Dept. of CSE.
11-4
INDEX
Peripheral Devices 11-1 Peripheral Devices
I/O Subsystem
Input Output Interface
Provides an efficient mode of communication between the central system and the outside environment
Asynchronous Data Transfer Peripheral (or I/O Device)
3
Chap. 11 Input-Output Organization
1
21-07-2017
11-5 11-6
ASCII CODES
11-7 11-8
Interface Modules
Keyboard * Control Lines
and Magnetic Magnetic
display
Printer
disk tape
Read/Write
terminal
2
21-07-2017
11-9 11-10
Example of I/O Interface : Fig. 11-2 Strobe : Control signal to indicate the time at which data is being transmitted
I/O data
4 I/O port : Data port A, Data port B, Control, Status Port A 1) Source-initiated strobe :
Bidirectional register
Bus
Address Decode : CS, RS1, RS0 data bus buffers 2) Destination-initiated strobe :
Internal bus
Asynchronous Data Transfer
I/O write
Internal timing in each unit (CPU and Interface) is independent WR Valid data Valid data
Status
Data Data
Status
Each unit uses its own private clock for internal registers register
11-11 11-12
» Each character consists of three parts :
1) start bit : always “0”, indicate the beginning of a character
Data valid
Data valid
2) character bits : data
3) stop bit : always “1”
Data accepted
Data bus Valid data
Asynchronous transmission rules :
(b) Timing diagram
(b) Timing diagram
» When a character is not being sent, the line is kept in the 1-state
Source unit Destination unit » The initiation of a character transmission is detected from the start bit, which is always “0”
Source unit Destination unit
Place data on bus
Enable data valid. Accept data from bus Ready to accept
» The character bits always follow the start bit
Enable data accepted
Place data on bus
data.
Enable ready for data » After the last bit of the character is transmitted, a stop bit is detected when the line returns to the 1-state for at least one
Enable data valid.
bit time
Disable data valid
Invalidate data on bus Disable data accepted Accept data from bus
Ready to accept data Disable reday for data
Disable data valid
(initial state) Invalidate data on bus
(initial state)
(c) Sequence of events
(c) Sequence of events
1 1 0 0 0 1 0 1
Fig. 11-5 Source-initiated handshake Fig. 11-6 Destination-initiated handshake
Start Stop
Timeout bit
Character bits
bit
3
21-07-2017
11-13 11-14
Baud Rate : Data transfer rate in bits per second 11-4 Modes of Transfer
» 10 character per second with 11 bit format = 110 bit per second
Data transfer to and from peripherals Read status register
UART (Universal Asynchronous Receiver Transmitter) : 8250
1) Programmed I/O : in this section
UART (Universal Synchronous/Asynchronous Receiver Transmitter) : 8251
2) Interrupt-initiated I/O : in this section and sec. 11-5 Check flag bit
Internal bus
Data bus Interface I/O bus
» New character can be loaded as soon as Register select
RS Receiver
Timing Receiver
Transfer data to memory
Status clock
the previous one starts transmission I/O read
and
Control register
control
Address bus Data register
RD and clock
11-15 11-16
Interrupt request
INT
CPU
Interrupt acknowledge
INTACK
4
21-07-2017
11-17 11-18
Interrupt
1 to CPU
11-19 11-20
Address
burst/cycle stealing, DMA select CS Address register 7) Decrement Word count register select
I/O to I/O,
Register select RS 8) Word count register
I/O to Memory,
Read RD Word count register RD WR Address Data
Memory to Memory EOT interrupt CPU DMA acknowledge
DS
Memory search Write WR
Control 9) Word count register RS Direct memory I/O
I/O search Bus request BR logic Control register access (DAM) Peripheral
DMAC checks the DMA request from BR controller device
» 4) DMA transfer start : next section Bus grant BG BG
DMA request