images courtesy of addison wesley longman, inc. copyright © 2001 chapter 10 input/output...

74
Images courtesy of Addison Wesley Longman, Inc. Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Copyright © 2001 Chapter 10 Chapter 10 Input/Output Input/Output Organization Organization

Upload: ambrose-robinson

Post on 16-Jan-2016

221 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Chapter 10Chapter 10Input/Output OrganizationInput/Output Organization

Page 2: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Chapter OutlineChapter Outline

• Asynchronous data transfersAsynchronous data transfers

• Programmed I/OProgrammed I/O

• InterruptsInterrupts

• Direct Memory AccessDirect Memory Access

• I/O ProcessorsI/O Processors

• Serial CommunicationSerial Communication

• Serial Communication StandardsSerial Communication Standards

Page 3: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Asynchronous Data TransfersAsynchronous Data Transfers

Page 4: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Source-initiated Data TransferSource-initiated Data Transfer

Page 5: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Destination-initiated Data Destination-initiated Data TransferTransfer

Page 6: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Source-initiated Data Transfer Source-initiated Data Transfer with Handshakingwith Handshaking

Page 7: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Destination-initiated Data Destination-initiated Data Transfer with HandshakingTransfer with Handshaking

Page 8: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Programmed I/OProgrammed I/O

Page 9: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

ExampleExample

Page 10: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

ExampleExample

Page 11: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

ExampleExample

Page 12: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

ExampleExample

Page 13: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

ExampleExample

Page 14: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

New InstructionsNew Instructions

Page 15: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

New Control SignalsNew Control Signals

• IO differentiates I/O and memory IO differentiates I/O and memory accessesaccesses– IO = 1 for I/O accessIO = 1 for I/O access– IO = 0 for memory accessIO = 0 for memory access

Page 16: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

New States and RTL CodeNew States and RTL Code

Page 17: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

CPU ModificationsCPU Modifications

• Modify register sectionModify register section

Page 18: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

CPU ModificationsCPU Modifications

• Modify register sectionModify register section

• Modify ALUModify ALU

Page 19: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

CPU ModificationsCPU Modifications

• Modify register sectionModify register section

• Modify ALUModify ALU

• Modify control unit (hard-wired)Modify control unit (hard-wired)

Page 20: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

CPU ModificationsCPU Modifications

• Modify register sectionModify register section

• Modify ALUModify ALU

• Modify control unit (hard-wired)Modify control unit (hard-wired)

• Register and ALU sections unchangedRegister and ALU sections unchanged

Page 21: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

CPU ModificationsCPU Modifications

• Modify register sectionModify register section

• Modify ALUModify ALU

• Modify control unit (hard-wired)Modify control unit (hard-wired)

• Register and ALU sections unchangedRegister and ALU sections unchanged

• One new micro-operation: DR One new micro-operation: DR Input Input PortPort

Page 22: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Control Unit ChangesControl Unit Changes

Page 23: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Control Unit Changes - INC Control Unit Changes - INC and CLR signalsand CLR signals

Page 24: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Control Unit Changes - INC Control Unit Changes - INC and CLR signalsand CLR signals

Page 25: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Control Unit Changes - Control Unit Changes - Memory Read SignalMemory Read Signal

• Memory Read = READ ^ Memory Read = READ ^ IOIO’’

Page 26: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

InterruptsInterrupts

• PollingPolling

Page 27: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

InterruptsInterrupts

• IRQ - Interrupt RequestIRQ - Interrupt Request

• IACK - Interrupt AcknowledgeIACK - Interrupt Acknowledge

Page 28: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Types of InterruptsTypes of Interrupts

• ExternalExternal

Page 29: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Types of InterruptsTypes of Interrupts

• ExternalExternal

• InternalInternal

Page 30: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Types of InterruptsTypes of Interrupts

• ExternalExternal

• InternalInternal

• SoftwareSoftware

Page 31: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Processing InterruptsProcessing Interrupts

• Do nothing (until the current instruction Do nothing (until the current instruction has been executed)has been executed)

Page 32: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Processing InterruptsProcessing Interrupts

• Do nothing (until the current instruction Do nothing (until the current instruction has been executed)has been executed)

• Get handler address (vectored)Get handler address (vectored)

Page 33: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Processing InterruptsProcessing Interrupts

• Do nothing (until the current instruction Do nothing (until the current instruction has been executed)has been executed)

• Get handler address (vectored)Get handler address (vectored)

• Invoke handler routineInvoke handler routine

Page 34: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Vectored Interrupt HardwareVectored Interrupt Hardware

Page 35: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Non-vectored Interrupt Non-vectored Interrupt HardwareHardware

Page 36: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Multiple Non-vectored Multiple Non-vectored InterruptsInterrupts

Page 37: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Daisy ChainingDaisy Chaining

Page 38: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

IACKIACKinin and IACK and IACKoutout

Page 39: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Parallel Priority InterruptsParallel Priority Interrupts

Page 40: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

CPU ModificationsCPU Modifications

Page 41: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

CPU ModificationsCPU Modifications

Page 42: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Interrupt StatesInterrupt States

Page 43: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Direct Memory AccessDirect Memory Access

Page 44: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

DMA ControllerDMA Controller

Page 45: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

DMA Transfer ModesDMA Transfer Modes

• Block/Burst ModeBlock/Burst Mode

Page 46: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

DMA Transfer ModesDMA Transfer Modes

• Block/Burst ModeBlock/Burst Mode

• Cycle Stealing ModeCycle Stealing Mode

Page 47: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

DMA Transfer ModesDMA Transfer Modes

• Block/Burst ModeBlock/Burst Mode

• Cycle Stealing ModeCycle Stealing Mode

• Transparent ModeTransparent Mode

Page 48: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

CPU Modifications - Micro-CPU Modifications - Micro-operationsoperations

Page 49: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

CPU Modifications - Micro-CPU Modifications - Micro-operationsoperations

Page 50: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

CPU ModificationsCPU Modifications

Page 51: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

CPU ModificationsCPU Modifications

Page 52: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

I/O ProcessorsI/O Processors

Page 53: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

I/O Processors - operationsI/O Processors - operations

• Block transfer commandsBlock transfer commands

Page 54: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

I/O Processors - operationsI/O Processors - operations

• Block transfer commandsBlock transfer commands

• ALU operationsALU operations

Page 55: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

I/O Processors - operationsI/O Processors - operations

• Block transfer commandsBlock transfer commands

• ALU operationsALU operations

• Control commandsControl commands

Page 56: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Asynchronous Serial Asynchronous Serial CommunicationCommunication

• bps - Bits Per Second (baud rate)bps - Bits Per Second (baud rate)

Page 57: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Asynchronous Serial Asynchronous Serial CommunicationCommunication

• bps - Bits Per Second (baud rate)bps - Bits Per Second (baud rate)

• start bitstart bit

Page 58: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Asynchronous Serial Asynchronous Serial CommunicationCommunication

• bps - Bits Per Second (baud rate)bps - Bits Per Second (baud rate)

• start bitstart bit

• parity bitparity bit

Page 59: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Asynchronous Serial Asynchronous Serial CommunicationCommunication

• bps - Bits Per Second (baud rate)bps - Bits Per Second (baud rate)

• start bitstart bit

• parity bitparity bit

• stop bit(s)stop bit(s)

Page 60: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Asynchronous Serial Asynchronous Serial CommunicationCommunication

• bps - Bits Per Second (baud rate)bps - Bits Per Second (baud rate)

• start bitstart bit

• parity bitparity bit

• stop bit(s)stop bit(s)

• bit timebit time

Page 61: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Asynchronous Serial Asynchronous Serial CommunicationCommunication

Page 62: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Synchronous Serial Synchronous Serial Communication - HDLCCommunication - HDLC

Page 63: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Universal Asynchronous Universal Asynchronous Receiver/TransmittersReceiver/Transmitters

Page 64: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

UART Internal ConfigurationUART Internal Configuration

Page 65: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

• Request To SendRequest To Send• Clear To SendClear To Send• Transmission DataTransmission Data• Data Terminal ReadyData Terminal Ready• Data Set ReadyData Set Ready• Received DataReceived Data• Data Carrier DetectData Carrier Detect• Ring IndicatorRing Indicator• GroundGround

RS 232C Standard - SignalsRS 232C Standard - Signals

Page 66: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RS 232C Standard - RS 232C Standard - ConnectionConnection

• Use RTS, CTS, DTR, and DSR to verify Use RTS, CTS, DTR, and DSR to verify that both devices are activethat both devices are active

Page 67: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RS 232C Standard - RS 232C Standard - ConnectionConnection

• Use RTS, CTS, DTR, and DSR to verify Use RTS, CTS, DTR, and DSR to verify that both devices are activethat both devices are active

• Use RI to indicate call statusUse RI to indicate call status

Page 68: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RS 232C Standard - RS 232C Standard - ConnectionConnection

• Use RTS, CTS, DTR, and DSR to verify Use RTS, CTS, DTR, and DSR to verify that both devices are activethat both devices are active

• Use RI to indicate call statusUse RI to indicate call status

• Use DCD to establish connectivityUse DCD to establish connectivity

Page 69: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RS 232C Standard - RS 232C Standard - ConnectionConnection

• Use RTS, CTS, DTR, and DSR to verify Use RTS, CTS, DTR, and DSR to verify that both devices are activethat both devices are active

• Use RI to indicate call statusUse RI to indicate call status

• Use DCD to establish connectivityUse DCD to establish connectivity

• Use TD and RD to transfer data, and Use TD and RD to transfer data, and RTS and CTS to coordinate transfersRTS and CTS to coordinate transfers

Page 70: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

RS 422 Standard - SignalsRS 422 Standard - Signals

Page 71: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Universal Serial Bus StandardUniversal Serial Bus Standard

• Connects one port to several devicesConnects one port to several devices

Page 72: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

Universal Serial Bus StandardUniversal Serial Bus Standard

• Connects one port to several devicesConnects one port to several devices

• Transfers data in packetsTransfers data in packets– Token packetsToken packets– Data packetsData packets– Handshake packetsHandshake packets– Special PacketsSpecial Packets

Page 73: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

USB Packet FormatsUSB Packet Formats

Page 74: Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Chapter 10 Input/Output Organization

Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001 Images courtesy of Addison Wesley Longman, Inc. Copyright © 2001

SummarySummary

• Asynchronous data transfersAsynchronous data transfers

• Programmed I/OProgrammed I/O

• InterruptsInterrupts

• Direct Memory AccessDirect Memory Access

• I/O ProcessorsI/O Processors

• Serial CommunicationSerial Communication

• Serial Communication StandardsSerial Communication Standards