Input-Output Organization

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What crucial role do control signals play in asynchronous data transfer between two independent units?

Control signals indicate the timing of when data is being transmitted between the communicating units.

In asynchronous serial transmission, what is the primary function of the 'start bit'?

The start bit indicates the beginning of a character.

What condition does the receiving unit look for to signal the end of a character in asynchronous serial communication?

The return of the line to the 1-state for at least 1 bit time, which signals the Stop Bit.

What is the main advantage of parallel transmission over serial transmission?

<p>Parallel transmission is faster than serial transmission.</p> Signup and view all the answers

What is an I/O Interface?

<p>It's a method for transferring information between internal storage and external I/O devices and it resolves the differences between the computer and peripheral devices.</p> Signup and view all the answers

What are the key differences between memory bus and I/O bus?

<p>The Memory Bus is for information transfers between the CPU and memory. The I/O Bus is for information transfers between the CPU and I/O devices via the I/O interface.</p> Signup and view all the answers

How can the CPU redefine the mode of operation for each port in a programmable interface?

<p>By loading a byte to the Control Register, the CPU can define the mode of operation of each port.</p> Signup and view all the answers

What are the advantages of the handshaking data transfer method?

<p>Flexibility and reliability. The successful completion of a data transfer relies on active participation by both units.</p> Signup and view all the answers

What is the name of the asynchronous communication interface that is integrated as an IC?

<p>Universal Asynchronous Receiver-Transmitter (UART).</p> Signup and view all the answers

In the context of data transfer modes, what does 'polling' refer to?

<p>The CPU is busy waiting in a loop, continuously checking a status flag to see if any data exists, resulting in continuous CPU involvement and slowing speed.</p> Signup and view all the answers

What happens when the I/O interface finds that the device is ready for data transfer in the interrupt-initiated I/O process?

<p>The I/O interface generates an interrupt request and sends it to the computer.</p> Signup and view all the answers

Why is it important to determine interrupt priority when multiple interrupts occur simultaneously?

<p>To determine which interrupt should be served first and if higher priority interrupts are allowed to interrupt the computer while servicing a lower priority interrupt.</p> Signup and view all the answers

With regard to priority interrupts using the daisy chain method, outline how the closest device to the CPU acquires the Interrupt Acknowledge signal equal to 1?

<p>Among interrupt requesting devices, only the device which is physically closest to CPU gets INTACK=1 and it blocks INTACK to propagate to the next device.</p> Signup and view all the answers

Explain the difference between the Interrupt Request and Mask registers within parallel priority interrupt schemes.

<p>The Interrupt Register contains bits that are associated with an interrupt request from different interrupt sources whereas the Mask Register associated with interrupt register has bits that can be set or cleared by an instruction.</p> Signup and view all the answers

What is the purpose of the Direct Memory Access (DMA) and how does it enhance system efficiency?

<p>DMA allows I/O transfer directly between memory and devices, thereby freeing the CPU for other tasks.</p> Signup and view all the answers

Briefly describe what occurs during the DMA's I/O read operation.

<p>After the CPU instructs the DMA to perform a read, the DMA assembles the input byte from the input device into a word, writes it to memory using memory address, and increments the address register. If the word count is not zero, it continues to request another byte.</p> Signup and view all the answers

During cycle stealing, what condition has occurred if the DMA controller is given top priority, and when does a CPU remain idle?

<p>DMA Controller steals the memory cycles from CPU, which causes the CPU to remain idle in those stolen cycles.</p> Signup and view all the answers

How does the Input Output Processor (IOP) differ from DMA in terms of functionality?

<p>The IOP is a processor with direct memory access capability that communicates with I/O devices while DMA is a controller.</p> Signup and view all the answers

In the context of serial communication, what does 'Modem' stand for, and what its primary function?

<p>'Modem' stands for Modulator and Demodulator. Its primary function is to modulate signals to encode digital information for transmission and demodulate signals to decode the transmitted information.</p> Signup and view all the answers

List the three modes of transmission, and briefly describe each one.

<p>The three modes of transmission: Simplex (transmission in one direction only), Half Duplex (transmission in both directions, one at a time), Full Duplex (simultaneous transmission in both directions).</p> Signup and view all the answers

What is the difference between character-oriented and bit-oriented protocols in data transmission?

<p>Character-oriented protocols use characters in their control fields, while bit-oriented protocols do not, and are therefore independent of any code.</p> Signup and view all the answers

Why is the interrupt service routine (ISR) separated into two sets of operations?

<p>Each interrupt service routine must have an initial and final set of operations for controlling the registers in the hardware interrupt system.</p> Signup and view all the answers

I/O devices often have different data transfer rates compared to the CPU or memory. What aspect of the Input-Output Interface addresses this?

<p>The interface synchronizes the data flow and supervises the transfer rate between peripheral and CPU or Memory.</p> Signup and view all the answers

Explain how 'cycle stealing' affects CPU performance during DMA transfer, and why it is implemented.

<p>Cycle stealing causes the CPU to pause its operations temporarily, as the DMA controller requires memory cycles to transfer data. This is implemented because DMA transfer often requires quick bursts to be efficient.</p> Signup and view all the answers

Describe how the CPU and IOP communicate during I/O operations.

<p>The CPU sends an instruction to test IOP, followed by a start I/O instruction and the IOP conducts I/O transfers using DMA. When the I/O transfer is completed, the IOP sends an interrupt to the CPU.</p> Signup and view all the answers

How do strobe pulse and handshaking differ in asynchronous data transfer, and what advantages does handshaking offer?

<p>Strobe pulse employs a single control line, while handshaking uses multiple control signals for acknowledgment. Handshaking offers higher reliability through active participation of both units.</p> Signup and view all the answers

Suppose a system uses interrupt-driven I/O. If multiple devices request an interrupt simultaneously, what mechanism resolves which device's request is serviced first, and list the two types of interrupt priority schemes?

<p>A priority interrupt mechanism determines which request is serviced first. It does this using software(polling) and/or hardware schemes.</p> Signup and view all the answers

What role would the 'control register,' 'status register,' and 'data bus' have in a programmable I/O interface, and give an example on how to use these?

<p>The control register set the mode of the port, the status register describes the ports status, and the data bus makes the transfer. For example, Port A is data, B is the command, and C is the status.</p> Signup and view all the answers

If you need to transfer large amounts of data quickly between memory and a high-speed device, what I/O transfer technique would be most suitable, and why?

<p>Direct Memory Access (DMA) would be the most suitable because it allows data to be transferred directly between memory and the device without CPU intervention, maximizing speed.</p> Signup and view all the answers

Explain how you can avoid data corruption in the handshaking method.

<p>When the receiving unit responds with another control signal to acknowledge receipt of the data.</p> Signup and view all the answers

Is the peripheral faster to slower than the transfer rate in the data transfer rate?

<p>The peripheral is usually slower than the CPU or memory.</p> Signup and view all the answers

What are the differences between the source-initiated strobe and a destination-initiated strobe?

<p>When source-initiated the strobe is set by the source. When destination-initiated, the strobe is set by the destination.</p> Signup and view all the answers

How important is it to have the handshake provide the successful completion of data?

<p>The handshaking provides a high degree of flexibility and reliability because the completion of a data transfer relies on active participation by both units.</p> Signup and view all the answers

When data is not being sent in an asynchronous serial transfer, what is the state of the line kept in?

<p>The line is kept in the 1-state (idle state).</p> Signup and view all the answers

What happens when the IST equals 1 and IEN is present?

<p>The IST equal to one and IEN present triggers the CPU to enter the Interrupt Cycle.</p> Signup and view all the answers

What's the name of the block of data transfer from high-speed devices known as?

<p>Direct Memory Access.</p> Signup and view all the answers

When starting an I/O with the CPU signal, what is performed by the CPU?

<p>The CPU executes instruction to load memory address register, load the word counter and the load function to be read or write.</p> Signup and view all the answers

How does the data communication processor share with each terminal?

<p>Through a single pair of wire.</p> Signup and view all the answers

What are the advantages of bit-oriented protocols?

<p>Bit-oriented protocols are usually full-duplex and operate over dedicated, four-wire circuits.</p> Signup and view all the answers

What is the operation by the CPU when checking the interrupt cycle?

<p>CPU checks IEN and IST.</p> Signup and view all the answers

Flashcards

Input Devices

Devices that allow users to input data into a computer system, such as keyboards, mice, and scanners.

Output Devices

Devices that output data from a computer system, such as monitors, printers, and speakers.

Input/Output Interface

A circuit that provides a method for transferring information between internal storage (memory, CPU registers) and external I/O devices.

Asynchronous Data Transfer

A type of data transfer where data is transmitted without relying on a common clock signal, using control signals to coordinate.

Signup and view all the flashcards

Strobe Control

A method of asynchronous data transfer using a single control line to indicate data availability.

Signup and view all the flashcards

Handshaking

Asynchronous data transfer using control signals for acknowledgment during communication.

Signup and view all the flashcards

Serial Transmission

A type of data transmission where bits are sent one after another over a single channel.

Signup and view all the flashcards

Start Bit

A bit indicating the start of a character in asynchronous serial communication.

Signup and view all the flashcards

Stop Bit

A bit indicating the end of a character in asynchronous serial communication.

Signup and view all the flashcards

UART (Universal Asynchronous Receiver-Transmitter)

A communication interface that handles asynchronous serial data transmission and reception.

Signup and view all the flashcards

Polling or Status Checking

Data transfer mode where the CPU continuously checks the status of a device.

Signup and view all the flashcards

Interrupt-Initiated I/O

I/O transfer initiated by the peripheral device, signaling the CPU to request attention.

Signup and view all the flashcards

Priority Interrupt

A system for managing multiple interrupt requests, determining which to serve first.

Signup and view all the flashcards

Daisy-Chain

A hardware-based priority interrupt method using a single line to pass the interrupt acknowledge signal.

Signup and view all the flashcards

Parallel Priority Interrupt

A priority interrupt in which each interrupt source has interrupt vector to access directly to its own service routine.

Signup and view all the flashcards

Interrupt Cycle

A process where CPU checks IEN and IST to determine if there is any ongoing interrupt. If yes, it executes the interrupt service routine.

Signup and view all the flashcards

Direct Memory Access

An interface allowing direct data transfer between memory and a device without CPU involvement.

Signup and view all the flashcards

Burst Transfer Mode

A transfer mode where all data is transferred contiguously in one sequence.

Signup and view all the flashcards

Cycle Stealing Mode

DMA steals memory cycles from the CPU

Signup and view all the flashcards

Input/Output Processor

Communicates with I/O devices, accesses memory by cycle stealing and executes Channel Programs

Signup and view all the flashcards

Data Communication Processor

Data communication device that distributes and collects data for communication lines to the computer.

Signup and view all the flashcards

Modem

A device that modulates (encodes) and demodulates (decodes) signals for data transmission.

Signup and view all the flashcards

Simplex

Data transmit in one direction only.

Signup and view all the flashcards

Half Duplex

Data transmission in both direction, not simultaneously

Signup and view all the flashcards

Full Duplex

Data can be sent and received simultaneously

Signup and view all the flashcards

Protocols

A set of rules for inter-device communications.

Signup and view all the flashcards

Character Oriented Protocol

It is based on the binary code of charater set. The code is mostl used in ASCII

Signup and view all the flashcards

Bit Oriented Protocol

Use of serial stream of any length.

Signup and view all the flashcards

Study Notes

  • Input-output organization covers topics like peripheral devices, I/O interface, asynchronous data transfer, transfer modes, priority interrupt, direct memory access (DMA), I/O processors, and serial communication.

Peripheral Devices

  • Includes input devices like keyboards, optical input devices (card readers, paper tape readers, barcode readers, digitizers, optical mark readers), magnetic input devices (magnetic stripe readers), screen input devices (touch screens, light pens, mice), and analog input devices.
  • Includes output devices like monitors (VDUs), card punchers, paper tape punchers, CRTs, printers (impact, ink jet, laser, dot matrix), plotters, analog devices, and voice output.

Input/Output Interface

  • Provides a method for transferring information between internal computer storage and external I/O devices.
  • Resolves differences between the computer and peripheral devices, which can include differing operational characteristics (electromechanical vs electronic), data transfer rates (slower peripherals vs faster CPU/memory), units of information (byte/block vs word), and data representations.

I/O Bus and Interface Modules

  • Each peripheral has a corresponding interface module.
  • The interface module decodes the device address and operation commands, provides signals to the peripheral controller, and synchronizes data flow, supervising the transfer rate between peripherals and the CPU or memory.
  • A typical I/O instruction includes operation code, device address, and function code (command).

I/O Bus and Memory Bus

  • The memory bus is for information transfers between the CPU and memory.
  • The I/O bus is for information transfers between the CPU and I/O devices through their I/O interfaces.

I/O Interface

  • Information in each port can be assigned a meaning, depending on the mode of operation.
    • Example: Port A = Data, Port B = Command, Port C = Status.
  • The CPU initializes (loads) each port by transferring a byte to the Control Register, allowing it to define the mode of operation for each port.
  • The programmable port enables changing the interface characteristics by modifying bits in the control register.

Asynchronous Data Transfer

  • Involves the transfer of data between two independent units.
  • Requires control signals to indicate the timing of data transmission between the communicating units.

Asynchronous Data Transfer Methods

  • Strobe pulse: A strobe pulse is supplied to indicate when data transfer should occur.
  • Handshaking: Data is accompanied by a control signal indicating data presence; the receiving unit responds with another control signal acknowledging receipt.

Strobe Control

  • Employs a single control line to time each transfer.
  • The strobe is activated by either the source or the destination unit.

Handshaking

  • Solves the problem of source-initiated and destination-initiated transfers having no way of knowing whether data has been received/placed on the bus.
  • Introduces a second control signal to provide a reply to the unit that initiates the transfer.

Source-Initiated Transfer Using Handshake

  • Allows arbitrary delays from one state to the next.
  • Permits each unit to respond at its own data transfer rate; the rate of transfer is determined by the slower unit.

Destination-Initiated Transfer Using Handshake

  • Handshaking provides high flexibility and reliability, with successful completion relying on active participation by both units.
  • If one unit is faulty, data transfer will not be completed, which can be detected by a timeout mechanism.

Asynchronous Serial Transmission

  • Data transfer can occur in either serial or parallel fashion.
  • In parallel data transmission, n bits of a message are transmitted through n separate conductor paths, enabling faster transfer but requiring more wires. This is suitable for short distances and high-speed applications.
  • In serial transmission, each bit is sent sequentially, one at a time, requiring fewer wires but resulting in a slower transfer rate; it is less expensive.

Asynchronous Serial Transfer

  • Each bit of the message is sent sequentially, and binary information is transferred only when available; the line remains idle when no information is transmitted.
  • In this technique, each character consists of three points: Start, Stop and Character bits.
    • First bit, called start bit is always zero and is used to indicate the beginning character. -Last bit, called stop bit is always one and is used to indicate end of characters. -Bits in between the start and stop bits are known as character bits.

Asynchronous Serial Transfer

  • Employs special bits inserted at each character code end: Start,Data and Stop bits.
  • Receivers can determine a character base on 4 rules: the line must be in a 1-state (idle state), a transmission initiates with a start bit (0), follows character bits and ends with a stop bit with at least 1 bit time in a 1-state.

Universal Asynchronous Receiver-Transmitter (UART)

  • Asynchronous interface used in IC (Integrated Circuits)
  • Transmitter Register: Accepts data from the CPU through the data bus and transfers it to a shift register for serial transmission.
  • Receiver: Receives serial information into another shift register before the complete data byte is sent to the receiver register.
  • Status Register Bits: Used for I/O flags and for recording errors.
  • Control Register Bits: Define baud rate, number of bits in each character, whether to generate and check parity, and the number of stop bits.

Modes of Transfer: Program-Controlled I/O

  • There are 3 modes for data transfer: Program-Controlled I/O, Interrupt-Initiated I/O and Direct Memory Access.
  • Program-Controlled I/O (Input Dev to CPU): Input Dev to CPU.
  • Polling or Status Checking: When there is no data busy waiting in Loop happens, CPU involvement is continuous which makes CPU slowed down to I/O speed, it is simple and the hardware is least.

Interrupt-Initiated I/O

  • When the I/O interface has the data transfer ready it sends an Interrupt Request to the computer.
  • When the CPU has received the request it temporarly stops what it is doing and branches to a service program (ISR) to process the I/O transfer, then gets back to the original task.
  • Interrupt-Driven I/O: Eliminates needless waiting but it passes everything through processor.

Priority Interrupt

  • Determines which interrupt to serve first when two or more requests are done at the same time, it also determines which interrupts are allowed to interrupt the computer when one is already being serviced.
  • Priority Interrupt by Software (Polling): When the order of devices is set (order of devices), Flexible and Low-cost, but Very slow.
  • Priority Interrupt by Hardware: Needs a request manager to determine which has the highest priority request, it's Fast and its own service routine can be directly connected.

Hardware Priority Interrupt

  • Daisy-Chain: Hardware with a Serial priority function to one Interrupt Request Line where CPU can respond and give the bus, however only one will get the request (the one close to the CPU).
  • Parallel Priority Interrupt: with Interrupt and Mask Register based where the interrupt has different level and gets cleared by the program. When all of the mask has occurred, the Interrupt gets triggered and goes to de CPU where the bus can be loaded on the Priority Logic.

Interrupt Cycle

  • At the end of each instruction, the CPU checks both IEN and IST, if IEN IST = 1, -> Interrupt Cycle
  • Sequence to follow: decrement, push, transfer, disable.
  • After each interrupt needs initial and final operations.

Interrupt Service Routine

  • Must follow some intial and final steps in the interrupt system. -initial: clear mask, IST <- 0, save CPU contetns, IEN <- 1. -final: IEN <- 0, reset, clear reg, set mask and restore return address.

Direct Memory Access

  • Is the block of data transfer from high speed devices (Drum, Disk, Tape). -With CPU initialized controller (DMA) sending memory address and its block size. Transfer happening directly between memory and the device withour the CPU need.
  • CPU bus can be requested (BR) and granted (BG) with Read and Write. Controller also reads address, manages registers, requests the I/O Device.

DMA I/O Operation

  • Needs instruction to set Address Register, Word Counter and Function. DMA performs I/O operations independently from CPU and with two main functions, input and output. -For the Input is set the read-signal, buffer the input, word assembly, Write-command, word count (WC) and interrupt when WC is 0.
    • Output goes through Address, Disassembly, Output is being buffered for all the bytes so CPU has not to interrupt until the word count is completed with 0 value.

DMA Transfer

  • Acknowledges data interrupts between BG and BR, writing to Random Access memory through RD, WR , controller, address.

DAM Registers

  • Address Register to mark start address (1000), register used for the word count and operation mode.
  • Once all the data is transferred it will generate a CPU interrupt so it can all back control by setting the bus to 0.

DMA Modes

  • Burst mode transfers all blocks in one burst.
  • Stealing-cycle when transfers each word by stealing a cycle, making it always using the BR for all words with interrupt.

Cycle Stealing

  • Stealing cycle operations: CPU accessing instructions and DMA controller access memory, to solve this access conflict there is a Memory Bus Controller with priority system and top spot given to DMA controller.
  • CPU gets more memory than I/O and DMA controller. In this mode the CPU may have to remain idle if DMA controller causes memory cycles to take up more memory.

Input/Output Processor

  • It has DMA capability and communicates with I/O, accesses cycles using memory.
  • Consists or channel instructions which gives instructions and controls devices. CPU has to initiate for the channel to work independently.

Channel Communication

  • While one has IOP operations the other has CPU instructions to check IOP or start I/O instruction if they are ok.

Serial Communication

  • Data communication processor, modem, transmission and transfer modes. Simplex, Full and Half Duplex Character and Bit Oriented protocols.

Serial Communication : Data Communication Processor

  • A specialised I/O that communicates with data networks and distributes data from terminals through the lines.

Serial Communication : Modem

  • Stands for modulator/demodulator and devices can encode signals for transmission of information and decode the ones incoming.

Serial Communication : Modes of Transmission

  • Simplex carries information that cannot indicated to other devices (radios).
  • Half is capable of transmitting in both directions but only 1 at a time (walkie-talkie)
  • Full can simultaneously transmit both (video/audio calls).

Serial Communication : Protocols

  • They determine the order of devices calls. Protocols are a set of rules so devices don't cause errors.

Serial Communication : Protocols - Character oriented

  • Its most binary code used is ASCII, it is mainly used in PPP.
  • Code is for sync, headers, start/end bits and text.

Serial Communication : Protocols - Bit oriented

  • It's independent of any code and less overhead than other types. Most are full-duplex and can be operated over 4 circuits.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

More Like This

Wildland Urban Interface Safety Quiz
28 questions
Java Comparable Interface
16 questions

Java Comparable Interface

BeneficentHonor6192 avatar
BeneficentHonor6192
Graphical User Interface (GUI) Basics
13 questions
Use Quizgecko on...
Browser
Browser