SlideShare a Scribd company logo
1 of 12
Interfaces
ï‚— A peripheral sends and/or receives data at a certain speed and using a
certain format.
ï‚— The CPU and/or the device receives data at a certain speed and using a
certain format.
ï‚— An interface is a unit that sits between the CPU and a peripheral device and
compensates for the differences in speed, codes etc. to ensure compatibility.
COMPUTERDEVICE INTERFACE
Status Information
ï‚— The interface can provide information on the status of the peripheral
 Printer – ready / out of paper / jam
 Network – data sent and received
 MIDI – data received
Data Conversion
ï‚— A CPU will work with data using different formats and speeds than
peripherals
ï‚— For example, the processor will be able to send data to the printer at a speed
faster than printer can handle it
ï‚— Data may be sent / received in serial or parallel format
Parallel Serial
Protocol
The processor and peripheral require a set of rules so that they know how to
communicate with each other. These rules are known as a protocol.
The protocol will include:
ï‚—the type of error checking to be used
ï‚—data compression method, if any
ï‚—how the sending device will indicate that it has finished sending a message
ï‚—how the receiving device will indicate that it has received a message
Data Storage
What happens if the processor wants to send/receive data to/from a peripheral
which handles data at a different speed?
ï‚—e.g. a printer can only print 5 pages per minute
ï‚—A hard drive can only write at 70 megabytes per second
ï‚—A microphone captures data at a speed faster than the processor can
process it
Data Storage
What happens if the processor wants to send/receive data to/from a peripheral
which handles data at a different speed?
ï‚—e.g. a printer can only print 5 pages per minute
ï‚—A hard drive can only write at 70 megabytes per second
ï‚—A microphone captures data at a speed faster than the processor can
process it
In cases like this, the problem would be that the processor or peripheral would
have to wait until the job was finished unable to carry out any other tasks.
Data Storage
What happens if the processor wants to send/receive data to/from a peripheral
which handles data at a different speed?
ï‚—e.g. a printer can only print 5 pages per minute
ï‚—A hard drive can only write at 70 megabytes per second
ï‚—A microphone captures data at a speed faster than the processor can
process it
In cases like this, the problem would be that the processor or peripheral would
have to wait until the job was finished unable to carry out any other tasks.
Buffers and spoolers provide the solution to this problem
Buffer
A buffer is an area of computer memory that is allocated to transferring data
between the computer and a peripheral.
A buffer will be used when a fast acting part of the system is exchanging data
with a slow acting device eg a printer
Buffer
Most interfaces have buffers to store blocks of data while in transfer between
the processor and the peripheral.
This ensures that the processor is not held up by slow communications to and
from the peripherals.
The buffer must also keep the status of the peripheral so that the processor
knows when it is able to send or receive data and when problems arise.
Spooler
Another approach to ensuring the processor is not held up by slow peripherals
is to send data to be spooled.
This means that the data is sent to fast backing storage (usually the hard disk).
Data is then sent from the backing store to the peripheral in the gaps between
processing actions (an example of this is background printing).
Spooler
The user can continue operating the computer while the data is being sent to
the peripheral.
This is preferred to buffering when large amounts of data is to be sent or if the
peripheral is shared across a network.

More Related Content

What's hot

How did computer system work?
How did computer system work?How did computer system work?
How did computer system work?Zillur Rahman
 
Computer fundamentals
Computer fundamentalsComputer fundamentals
Computer fundamentalsrahamanshaikh1
 
Computer Memory
Computer MemoryComputer Memory
Computer Memorybabaradhe
 
Memory Organization
Memory OrganizationMemory Organization
Memory OrganizationMumthas Shaikh
 
Basiccomputer
BasiccomputerBasiccomputer
BasiccomputerAlHasib7
 
Memory Organization
Memory OrganizationMemory Organization
Memory OrganizationKamal Acharya
 
Memory Presentation
Memory PresentationMemory Presentation
Memory PresentationImran Chowdhury
 
Computer Organization
Computer OrganizationComputer Organization
Computer OrganizationSOMASUNDARAM T
 
Professional IT Training & Services in Amabala
Professional IT Training & Services in AmabalaProfessional IT Training & Services in Amabala
Professional IT Training & Services in Amabalaguddu122
 
Memory and storage devices
Memory and storage devicesMemory and storage devices
Memory and storage devicesChuuHye
 
computer memory and its types
computer memory and its typescomputer memory and its types
computer memory and its typesSwapanpreet Kaur
 
Describe primary and secondary memory inc
Describe primary and secondary memory incDescribe primary and secondary memory inc
Describe primary and secondary memory inclistergc
 
Introduction to compter
Introduction to compterIntroduction to compter
Introduction to compterSadaqatAli91
 
Memory.pptx
Memory.pptxMemory.pptx
Memory.pptxJeet Swain
 
Virtual Memory vs Cache Memory
Virtual Memory vs Cache MemoryVirtual Memory vs Cache Memory
Virtual Memory vs Cache MemoryAshik Iqbal
 
F543 computer science part 2
F543 computer science part 2F543 computer science part 2
F543 computer science part 2Mark Gibbs
 
Computer Memory
Computer MemoryComputer Memory
Computer MemoryShaikh Alam
 
Computer Systems
Computer SystemsComputer Systems
Computer Systemsmrbennett2009
 

What's hot (20)

How did computer system work?
How did computer system work?How did computer system work?
How did computer system work?
 
Computer fundamentals
Computer fundamentalsComputer fundamentals
Computer fundamentals
 
Computer Memory
Computer MemoryComputer Memory
Computer Memory
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Basiccomputer
BasiccomputerBasiccomputer
Basiccomputer
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Memory Presentation
Memory PresentationMemory Presentation
Memory Presentation
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
 
Professional IT Training & Services in Amabala
Professional IT Training & Services in AmabalaProfessional IT Training & Services in Amabala
Professional IT Training & Services in Amabala
 
Memory and storage devices
Memory and storage devicesMemory and storage devices
Memory and storage devices
 
computer memory and its types
computer memory and its typescomputer memory and its types
computer memory and its types
 
Describe primary and secondary memory inc
Describe primary and secondary memory incDescribe primary and secondary memory inc
Describe primary and secondary memory inc
 
Introduction to compter
Introduction to compterIntroduction to compter
Introduction to compter
 
Memory.pptx
Memory.pptxMemory.pptx
Memory.pptx
 
Virtual Memory vs Cache Memory
Virtual Memory vs Cache MemoryVirtual Memory vs Cache Memory
Virtual Memory vs Cache Memory
 
Chapter#16
Chapter#16Chapter#16
Chapter#16
 
F543 computer science part 2
F543 computer science part 2F543 computer science part 2
F543 computer science part 2
 
Computer Memory
Computer MemoryComputer Memory
Computer Memory
 
Chapter#13
Chapter#13Chapter#13
Chapter#13
 
Computer Systems
Computer SystemsComputer Systems
Computer Systems
 

Viewers also liked (6)

Cache
CacheCache
Cache
 
SDD Memory
SDD MemorySDD Memory
SDD Memory
 
Buses
BusesBuses
Buses
 
Fetch-execute Cycle
Fetch-execute CycleFetch-execute Cycle
Fetch-execute Cycle
 
SDD The Processor
SDD The ProcessorSDD The Processor
SDD The Processor
 
Pseudocode haggis
Pseudocode   haggisPseudocode   haggis
Pseudocode haggis
 

Similar to Interfaces

National 5 Computing Science - Interfaces
National 5 Computing Science - InterfacesNational 5 Computing Science - Interfaces
National 5 Computing Science - InterfacesForrester High School
 
Ch # 04 computer hardware
Ch # 04 computer hardware Ch # 04 computer hardware
Ch # 04 computer hardware MuhammadRobeel3
 
Performance Tuning
Performance TuningPerformance Tuning
Performance TuningJannet Peetz
 
Design an I/O system
Design an I/O systemDesign an I/O system
Design an I/O systemAARTHI SEETHA
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
CT01 Computer Basics
CT01 Computer BasicsCT01 Computer Basics
CT01 Computer Basicsehillpamlico
 
Microprocessor_IO Interfacing.ppt
Microprocessor_IO Interfacing.pptMicroprocessor_IO Interfacing.ppt
Microprocessor_IO Interfacing.pptPratheep Ganesan
 
L21-Introduction-to-IO.ppt
L21-Introduction-to-IO.pptL21-Introduction-to-IO.ppt
L21-Introduction-to-IO.pptsanaiftikhar23
 
Operating system introduction
Operating system introductionOperating system introduction
Operating system introductionsudarshandhondale20
 
Introduction to Interfacing Technique
Introduction to Interfacing TechniqueIntroduction to Interfacing Technique
Introduction to Interfacing TechniqueMabeth MaRiyah Ramos
 
IO SYSTEM AND CASE STUDY STRUCTURE
IO SYSTEM AND CASE STUDY STRUCTUREIO SYSTEM AND CASE STUDY STRUCTURE
IO SYSTEM AND CASE STUDY STRUCTUREHariharan Anand
 
Unit vos - File systems
Unit vos - File systemsUnit vos - File systems
Unit vos - File systemsdonny101
 
Introduction to mis
Introduction to misIntroduction to mis
Introduction to misJob Thomas
 
17. Computer System Configuration And Methods
17. Computer System   Configuration And Methods17. Computer System   Configuration And Methods
17. Computer System Configuration And MethodsNew Era University
 
Lecture1,2,3 (1).pdf
Lecture1,2,3 (1).pdfLecture1,2,3 (1).pdf
Lecture1,2,3 (1).pdfTaufeeq8
 

Similar to Interfaces (20)

National 5 Computing Science - Interfaces
National 5 Computing Science - InterfacesNational 5 Computing Science - Interfaces
National 5 Computing Science - Interfaces
 
Buffers and spoolers
Buffers and spoolersBuffers and spoolers
Buffers and spoolers
 
Ch # 04 computer hardware
Ch # 04 computer hardware Ch # 04 computer hardware
Ch # 04 computer hardware
 
Chapter1
Chapter1Chapter1
Chapter1
 
H n q & a
H n q & aH n q & a
H n q & a
 
Performance Tuning
Performance TuningPerformance Tuning
Performance Tuning
 
Computer Basic
Computer BasicComputer Basic
Computer Basic
 
Design an I/O system
Design an I/O systemDesign an I/O system
Design an I/O system
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
CT01 Computer Basics
CT01 Computer BasicsCT01 Computer Basics
CT01 Computer Basics
 
Microprocessor_IO Interfacing.ppt
Microprocessor_IO Interfacing.pptMicroprocessor_IO Interfacing.ppt
Microprocessor_IO Interfacing.ppt
 
L21-Introduction-to-IO.ppt
L21-Introduction-to-IO.pptL21-Introduction-to-IO.ppt
L21-Introduction-to-IO.ppt
 
Operating system introduction
Operating system introductionOperating system introduction
Operating system introduction
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
Introduction to Interfacing Technique
Introduction to Interfacing TechniqueIntroduction to Interfacing Technique
Introduction to Interfacing Technique
 
IO SYSTEM AND CASE STUDY STRUCTURE
IO SYSTEM AND CASE STUDY STRUCTUREIO SYSTEM AND CASE STUDY STRUCTURE
IO SYSTEM AND CASE STUDY STRUCTURE
 
Unit vos - File systems
Unit vos - File systemsUnit vos - File systems
Unit vos - File systems
 
Introduction to mis
Introduction to misIntroduction to mis
Introduction to mis
 
17. Computer System Configuration And Methods
17. Computer System   Configuration And Methods17. Computer System   Configuration And Methods
17. Computer System Configuration And Methods
 
Lecture1,2,3 (1).pdf
Lecture1,2,3 (1).pdfLecture1,2,3 (1).pdf
Lecture1,2,3 (1).pdf
 

More from Forrester High School (20)

Program Design
Program DesignProgram Design
Program Design
 
Database Evaluation
Database EvaluationDatabase Evaluation
Database Evaluation
 
Testing SQL
Testing SQLTesting SQL
Testing SQL
 
SQL
SQLSQL
SQL
 
Database Query Design
Database Query DesignDatabase Query Design
Database Query Design
 
Data Dictionary
Data DictionaryData Dictionary
Data Dictionary
 
Compound Keys
Compound KeysCompound Keys
Compound Keys
 
Entity Occurrence Diagrams
Entity Occurrence DiagramsEntity Occurrence Diagrams
Entity Occurrence Diagrams
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
 
Database Analysis
Database AnalysisDatabase Analysis
Database Analysis
 
Software Evaluation
Software EvaluationSoftware Evaluation
Software Evaluation
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Standard Algorithms
Standard AlgorithmsStandard Algorithms
Standard Algorithms
 
File Handling
File HandlingFile Handling
File Handling
 
Python Predefined Functions
Python Predefined FunctionsPython Predefined Functions
Python Predefined Functions
 
Python Substrings
Python SubstringsPython Substrings
Python Substrings
 
Variable Scope
Variable ScopeVariable Scope
Variable Scope
 
Sub-programs
Sub-programsSub-programs
Sub-programs
 
Records in Python
Records in PythonRecords in Python
Records in Python
 
Parallel arrays in python
Parallel arrays in pythonParallel arrays in python
Parallel arrays in python
 

Recently uploaded

Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Dr. Mazin Mohamed alkathiri
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 

Recently uploaded (20)

Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 

Interfaces

  • 1.
  • 2. Interfaces ï‚— A peripheral sends and/or receives data at a certain speed and using a certain format. ï‚— The CPU and/or the device receives data at a certain speed and using a certain format. ï‚— An interface is a unit that sits between the CPU and a peripheral device and compensates for the differences in speed, codes etc. to ensure compatibility. COMPUTERDEVICE INTERFACE
  • 3. Status Information ï‚— The interface can provide information on the status of the peripheral ï‚— Printer – ready / out of paper / jam ï‚— Network – data sent and received ï‚— MIDI – data received
  • 4. Data Conversion ï‚— A CPU will work with data using different formats and speeds than peripherals ï‚— For example, the processor will be able to send data to the printer at a speed faster than printer can handle it ï‚— Data may be sent / received in serial or parallel format Parallel Serial
  • 5. Protocol The processor and peripheral require a set of rules so that they know how to communicate with each other. These rules are known as a protocol. The protocol will include: ï‚—the type of error checking to be used ï‚—data compression method, if any ï‚—how the sending device will indicate that it has finished sending a message ï‚—how the receiving device will indicate that it has received a message
  • 6. Data Storage What happens if the processor wants to send/receive data to/from a peripheral which handles data at a different speed? ï‚—e.g. a printer can only print 5 pages per minute ï‚—A hard drive can only write at 70 megabytes per second ï‚—A microphone captures data at a speed faster than the processor can process it
  • 7. Data Storage What happens if the processor wants to send/receive data to/from a peripheral which handles data at a different speed? ï‚—e.g. a printer can only print 5 pages per minute ï‚—A hard drive can only write at 70 megabytes per second ï‚—A microphone captures data at a speed faster than the processor can process it In cases like this, the problem would be that the processor or peripheral would have to wait until the job was finished unable to carry out any other tasks.
  • 8. Data Storage What happens if the processor wants to send/receive data to/from a peripheral which handles data at a different speed? ï‚—e.g. a printer can only print 5 pages per minute ï‚—A hard drive can only write at 70 megabytes per second ï‚—A microphone captures data at a speed faster than the processor can process it In cases like this, the problem would be that the processor or peripheral would have to wait until the job was finished unable to carry out any other tasks. Buffers and spoolers provide the solution to this problem
  • 9. Buffer A buffer is an area of computer memory that is allocated to transferring data between the computer and a peripheral. A buffer will be used when a fast acting part of the system is exchanging data with a slow acting device eg a printer
  • 10. Buffer Most interfaces have buffers to store blocks of data while in transfer between the processor and the peripheral. This ensures that the processor is not held up by slow communications to and from the peripherals. The buffer must also keep the status of the peripheral so that the processor knows when it is able to send or receive data and when problems arise.
  • 11. Spooler Another approach to ensuring the processor is not held up by slow peripherals is to send data to be spooled. This means that the data is sent to fast backing storage (usually the hard disk). Data is then sent from the backing store to the peripheral in the gaps between processing actions (an example of this is background printing).
  • 12. Spooler The user can continue operating the computer while the data is being sent to the peripheral. This is preferred to buffering when large amounts of data is to be sent or if the peripheral is shared across a network.