Podcast
Questions and Answers
What crucial role do control signals play in asynchronous data transfer between two independent units?
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'?
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?
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?
What is the main advantage of parallel transmission over serial transmission?
What is an I/O Interface?
What is an I/O Interface?
What are the key differences between memory bus and I/O bus?
What are the key differences between memory bus and I/O bus?
How can the CPU redefine the mode of operation for each port in a programmable interface?
How can the CPU redefine the mode of operation for each port in a programmable interface?
What are the advantages of the handshaking data transfer method?
What are the advantages of the handshaking data transfer method?
What is the name of the asynchronous communication interface that is integrated as an IC?
What is the name of the asynchronous communication interface that is integrated as an IC?
In the context of data transfer modes, what does 'polling' refer to?
In the context of data transfer modes, what does 'polling' refer to?
What happens when the I/O interface finds that the device is ready for data transfer in the interrupt-initiated I/O process?
What happens when the I/O interface finds that the device is ready for data transfer in the interrupt-initiated I/O process?
Why is it important to determine interrupt priority when multiple interrupts occur simultaneously?
Why is it important to determine interrupt priority when multiple interrupts occur simultaneously?
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?
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?
Explain the difference between the Interrupt Request and Mask registers within parallel priority interrupt schemes.
Explain the difference between the Interrupt Request and Mask registers within parallel priority interrupt schemes.
What is the purpose of the Direct Memory Access (DMA) and how does it enhance system efficiency?
What is the purpose of the Direct Memory Access (DMA) and how does it enhance system efficiency?
Briefly describe what occurs during the DMA's I/O read operation.
Briefly describe what occurs during the DMA's I/O read operation.
During cycle stealing, what condition has occurred if the DMA controller is given top priority, and when does a CPU remain idle?
During cycle stealing, what condition has occurred if the DMA controller is given top priority, and when does a CPU remain idle?
How does the Input Output Processor (IOP) differ from DMA in terms of functionality?
How does the Input Output Processor (IOP) differ from DMA in terms of functionality?
In the context of serial communication, what does 'Modem' stand for, and what its primary function?
In the context of serial communication, what does 'Modem' stand for, and what its primary function?
List the three modes of transmission, and briefly describe each one.
List the three modes of transmission, and briefly describe each one.
What is the difference between character-oriented and bit-oriented protocols in data transmission?
What is the difference between character-oriented and bit-oriented protocols in data transmission?
Why is the interrupt service routine (ISR) separated into two sets of operations?
Why is the interrupt service routine (ISR) separated into two sets of operations?
I/O devices often have different data transfer rates compared to the CPU or memory. What aspect of the Input-Output Interface addresses this?
I/O devices often have different data transfer rates compared to the CPU or memory. What aspect of the Input-Output Interface addresses this?
Explain how 'cycle stealing' affects CPU performance during DMA transfer, and why it is implemented.
Explain how 'cycle stealing' affects CPU performance during DMA transfer, and why it is implemented.
Describe how the CPU and IOP communicate during I/O operations.
Describe how the CPU and IOP communicate during I/O operations.
How do strobe pulse and handshaking differ in asynchronous data transfer, and what advantages does handshaking offer?
How do strobe pulse and handshaking differ in asynchronous data transfer, and what advantages does handshaking offer?
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?
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?
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?
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?
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?
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?
Explain how you can avoid data corruption in the handshaking method.
Explain how you can avoid data corruption in the handshaking method.
Is the peripheral faster to slower than the transfer rate in the data transfer rate?
Is the peripheral faster to slower than the transfer rate in the data transfer rate?
What are the differences between the source-initiated strobe and a destination-initiated strobe?
What are the differences between the source-initiated strobe and a destination-initiated strobe?
How important is it to have the handshake provide the successful completion of data?
How important is it to have the handshake provide the successful completion of data?
When data is not being sent in an asynchronous serial transfer, what is the state of the line kept in?
When data is not being sent in an asynchronous serial transfer, what is the state of the line kept in?
What happens when the IST equals 1 and IEN is present?
What happens when the IST equals 1 and IEN is present?
What's the name of the block of data transfer from high-speed devices known as?
What's the name of the block of data transfer from high-speed devices known as?
When starting an I/O with the CPU signal, what is performed by the CPU?
When starting an I/O with the CPU signal, what is performed by the CPU?
How does the data communication processor share with each terminal?
How does the data communication processor share with each terminal?
What are the advantages of bit-oriented protocols?
What are the advantages of bit-oriented protocols?
What is the operation by the CPU when checking the interrupt cycle?
What is the operation by the CPU when checking the interrupt cycle?
Flashcards
Input Devices
Input Devices
Devices that allow users to input data into a computer system, such as keyboards, mice, and scanners.
Output Devices
Output Devices
Devices that output data from a computer system, such as monitors, printers, and speakers.
Input/Output Interface
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
Asynchronous Data Transfer
Signup and view all the flashcards
Strobe Control
Strobe Control
Signup and view all the flashcards
Handshaking
Handshaking
Signup and view all the flashcards
Serial Transmission
Serial Transmission
Signup and view all the flashcards
Start Bit
Start Bit
Signup and view all the flashcards
Stop Bit
Stop Bit
Signup and view all the flashcards
UART (Universal Asynchronous Receiver-Transmitter)
UART (Universal Asynchronous Receiver-Transmitter)
Signup and view all the flashcards
Polling or Status Checking
Polling or Status Checking
Signup and view all the flashcards
Interrupt-Initiated I/O
Interrupt-Initiated I/O
Signup and view all the flashcards
Priority Interrupt
Priority Interrupt
Signup and view all the flashcards
Daisy-Chain
Daisy-Chain
Signup and view all the flashcards
Parallel Priority Interrupt
Parallel Priority Interrupt
Signup and view all the flashcards
Interrupt Cycle
Interrupt Cycle
Signup and view all the flashcards
Direct Memory Access
Direct Memory Access
Signup and view all the flashcards
Burst Transfer Mode
Burst Transfer Mode
Signup and view all the flashcards
Cycle Stealing Mode
Cycle Stealing Mode
Signup and view all the flashcards
Input/Output Processor
Input/Output Processor
Signup and view all the flashcards
Data Communication Processor
Data Communication Processor
Signup and view all the flashcards
Modem
Modem
Signup and view all the flashcards
Simplex
Simplex
Signup and view all the flashcards
Half Duplex
Half Duplex
Signup and view all the flashcards
Full Duplex
Full Duplex
Signup and view all the flashcards
Protocols
Protocols
Signup and view all the flashcards
Character Oriented Protocol
Character Oriented Protocol
Signup and view all the flashcards
Bit Oriented Protocol
Bit Oriented Protocol
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.