SlideShare a Scribd company logo
1 of 9
20CS307 - COMPUTER ARCHITECTURE
UNIT – I
BASIC STRUCTURE OF COMPUTERS
Basic I/O operations
Outcome
Data transfer takes place between the Processor
and I/O Devices using a method Program-
Controlled I/O.
Introduction
• Basic Input Output Operations : Read in character input from
a keyboard and produce character output on a display screen
• Problem : Speed variations ( Keyboard, display, processor)
• To synchronize the transfer of data.
• Solution : on output, the processor sends the first character
and then waits for a signal from the display that the character
has been received. It then sends the second character. Input it
sent from the keyboard in a similar way.
Bus connections for Processor, Key
Board and Display (Hardware)
Program Controlled – I / O
READ Operation:
READWAIT Branch to READWAIT if SIN = 0
Input from DATAIN to R1
WRITE Operation:
WRITEWAIT Branch to WRITEWAIT if SOUT = 0
output from R1 to DATAOUT
Memory-Mapped I/O
• Generally It has two types
1. Memory-Mapped I/O (Same space allocated for
I/O)
2. Isolated I/O (Separated space allocated for I/O)
• Memory-Mapped I/O used for this instruction
• MoveByte DATAIN, R1
• MoveByte R1, DATAOUT
How Processor check whether set 1 or not
Example: Program to read a line of characters typed at a keyboard and send
them out to a display device using a method of Program-Controlled I/O
MOVE #LOC, R0
READ Testbit #3,INSTATUS
Branch=0 READ
MoveByte DATAIN, (R1)
ECHO Testbit #3, OUTSTATUS
Branch=0 ECHO
MoveByte (R1), DATAOUT
Compare #CR, (R0)+
Branch #0 READ
Thank you…

More Related Content

Similar to 7. Input Output Operations.pptx

Pre requisite of COA- for Micro controller Embedded systems
Pre requisite of COA- for Micro controller Embedded systemsPre requisite of COA- for Micro controller Embedded systems
Pre requisite of COA- for Micro controller Embedded systemsSMITA V MORE
 
CPDS FUNDAMENTALS.pptx
CPDS FUNDAMENTALS.pptxCPDS FUNDAMENTALS.pptx
CPDS FUNDAMENTALS.pptxmadhurij54
 
Computer Organisation and Architecture (COA)
Computer Organisation and Architecture (COA)Computer Organisation and Architecture (COA)
Computer Organisation and Architecture (COA)SwapnitaSrivastava1
 
Chapter 4 : I/O devices
Chapter   4 : I/O devicesChapter   4 : I/O devices
Chapter 4 : I/O devicesKaushik Panta
 
SPL 1 | Introduction to Structured programming language
SPL 1 | Introduction to Structured programming languageSPL 1 | Introduction to Structured programming language
SPL 1 | Introduction to Structured programming languageMohammad Imam Hossain
 
• Output Devices • Types of Output Devices • Dual Input– Output Devices
• Output Devices • Types of Output Devices • Dual Input– Output Devices• Output Devices • Types of Output Devices • Dual Input– Output Devices
• Output Devices • Types of Output Devices • Dual Input– Output DevicesThe University of Lahore
 
Basic of Computer.pptx
Basic of Computer.pptxBasic of Computer.pptx
Basic of Computer.pptxtitasdasgupta1
 
Input output hardware of operating system
Input output hardware of operating systemInput output hardware of operating system
Input output hardware of operating systemRohitYadav633
 
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma Manoharan Ragavan
 
Sowers com 1 4 p point presentation
Sowers com 1 4 p point presentationSowers com 1 4 p point presentation
Sowers com 1 4 p point presentationdsowers
 
OUTPUT AND INPUT DEVICES.pptx
OUTPUT AND INPUT DEVICES.pptxOUTPUT AND INPUT DEVICES.pptx
OUTPUT AND INPUT DEVICES.pptxTeirseKlose
 

Similar to 7. Input Output Operations.pptx (20)

HARDWARE
HARDWAREHARDWARE
HARDWARE
 
Pre requisite of COA- for Micro controller Embedded systems
Pre requisite of COA- for Micro controller Embedded systemsPre requisite of COA- for Micro controller Embedded systems
Pre requisite of COA- for Micro controller Embedded systems
 
CPDS FUNDAMENTALS.pptx
CPDS FUNDAMENTALS.pptxCPDS FUNDAMENTALS.pptx
CPDS FUNDAMENTALS.pptx
 
Computer
Computer Computer
Computer
 
Computer Organisation and Architecture (COA)
Computer Organisation and Architecture (COA)Computer Organisation and Architecture (COA)
Computer Organisation and Architecture (COA)
 
Introduction to Microcontrollers
Introduction to MicrocontrollersIntroduction to Microcontrollers
Introduction to Microcontrollers
 
Unit4_IO_13623_AnilRawat.ppt
Unit4_IO_13623_AnilRawat.pptUnit4_IO_13623_AnilRawat.ppt
Unit4_IO_13623_AnilRawat.ppt
 
Computer fundamentals
Computer fundamentalsComputer fundamentals
Computer fundamentals
 
Chapter 4 : I/O devices
Chapter   4 : I/O devicesChapter   4 : I/O devices
Chapter 4 : I/O devices
 
SPL 1 | Introduction to Structured programming language
SPL 1 | Introduction to Structured programming languageSPL 1 | Introduction to Structured programming language
SPL 1 | Introduction to Structured programming language
 
• Output Devices • Types of Output Devices • Dual Input– Output Devices
• Output Devices • Types of Output Devices • Dual Input– Output Devices• Output Devices • Types of Output Devices • Dual Input– Output Devices
• Output Devices • Types of Output Devices • Dual Input– Output Devices
 
BASICS OF COMPUTER
BASICS OF COMPUTERBASICS OF COMPUTER
BASICS OF COMPUTER
 
Tablet pc
Tablet pcTablet pc
Tablet pc
 
Basic of Computer.pptx
Basic of Computer.pptxBasic of Computer.pptx
Basic of Computer.pptx
 
Input output hardware of operating system
Input output hardware of operating systemInput output hardware of operating system
Input output hardware of operating system
 
module 1 computer architecture diploma
 module 1 computer architecture diploma   module 1 computer architecture diploma
module 1 computer architecture diploma
 
IT workshop SAIKRISHNA EEE
IT workshop SAIKRISHNA EEEIT workshop SAIKRISHNA EEE
IT workshop SAIKRISHNA EEE
 
Sowers com 1 4 p point presentation
Sowers com 1 4 p point presentationSowers com 1 4 p point presentation
Sowers com 1 4 p point presentation
 
OUTPUT AND INPUT DEVICES.pptx
OUTPUT AND INPUT DEVICES.pptxOUTPUT AND INPUT DEVICES.pptx
OUTPUT AND INPUT DEVICES.pptx
 
Computerhardware
ComputerhardwareComputerhardware
Computerhardware
 

More from JEEVANANTHAMG6

Introduction to NodeJS JSX is an extended Javascript based language used by R...
Introduction to NodeJS JSX is an extended Javascript based language used by R...Introduction to NodeJS JSX is an extended Javascript based language used by R...
Introduction to NodeJS JSX is an extended Javascript based language used by R...JEEVANANTHAMG6
 
1. Arithmetic Operations - Addition and subtraction of signed numbers.pptx
1. Arithmetic Operations - Addition and subtraction of signed numbers.pptx1. Arithmetic Operations - Addition and subtraction of signed numbers.pptx
1. Arithmetic Operations - Addition and subtraction of signed numbers.pptxJEEVANANTHAMG6
 
MIPS IMPLEMENTATION.pptx
MIPS IMPLEMENTATION.pptxMIPS IMPLEMENTATION.pptx
MIPS IMPLEMENTATION.pptxJEEVANANTHAMG6
 
CLEAN CODING AND DEVOPS Final.pptx
CLEAN CODING AND DEVOPS Final.pptxCLEAN CODING AND DEVOPS Final.pptx
CLEAN CODING AND DEVOPS Final.pptxJEEVANANTHAMG6
 
Arithmetic for Computers.ppt
Arithmetic for Computers.pptArithmetic for Computers.ppt
Arithmetic for Computers.pptJEEVANANTHAMG6
 
6. Addressng Modes.pptx
6. Addressng Modes.pptx6. Addressng Modes.pptx
6. Addressng Modes.pptxJEEVANANTHAMG6
 
1.Basic Structure of Computer System.ppt
1.Basic Structure of Computer System.ppt1.Basic Structure of Computer System.ppt
1.Basic Structure of Computer System.pptJEEVANANTHAMG6
 

More from JEEVANANTHAMG6 (9)

Introduction to NodeJS JSX is an extended Javascript based language used by R...
Introduction to NodeJS JSX is an extended Javascript based language used by R...Introduction to NodeJS JSX is an extended Javascript based language used by R...
Introduction to NodeJS JSX is an extended Javascript based language used by R...
 
1. Arithmetic Operations - Addition and subtraction of signed numbers.pptx
1. Arithmetic Operations - Addition and subtraction of signed numbers.pptx1. Arithmetic Operations - Addition and subtraction of signed numbers.pptx
1. Arithmetic Operations - Addition and subtraction of signed numbers.pptx
 
MIPS IMPLEMENTATION.pptx
MIPS IMPLEMENTATION.pptxMIPS IMPLEMENTATION.pptx
MIPS IMPLEMENTATION.pptx
 
EITK UNIT - III.pptx
EITK UNIT - III.pptxEITK UNIT - III.pptx
EITK UNIT - III.pptx
 
CLEAN CODING AND DEVOPS Final.pptx
CLEAN CODING AND DEVOPS Final.pptxCLEAN CODING AND DEVOPS Final.pptx
CLEAN CODING AND DEVOPS Final.pptx
 
UNIT I.ppt
UNIT I.pptUNIT I.ppt
UNIT I.ppt
 
Arithmetic for Computers.ppt
Arithmetic for Computers.pptArithmetic for Computers.ppt
Arithmetic for Computers.ppt
 
6. Addressng Modes.pptx
6. Addressng Modes.pptx6. Addressng Modes.pptx
6. Addressng Modes.pptx
 
1.Basic Structure of Computer System.ppt
1.Basic Structure of Computer System.ppt1.Basic Structure of Computer System.ppt
1.Basic Structure of Computer System.ppt
 

Recently uploaded

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
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
 
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
 
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
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 

Recently uploaded (20)

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
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"
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
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
 
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
 
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
 
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
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 

7. Input Output Operations.pptx

  • 1. 20CS307 - COMPUTER ARCHITECTURE UNIT – I BASIC STRUCTURE OF COMPUTERS Basic I/O operations
  • 2. Outcome Data transfer takes place between the Processor and I/O Devices using a method Program- Controlled I/O.
  • 3. Introduction • Basic Input Output Operations : Read in character input from a keyboard and produce character output on a display screen • Problem : Speed variations ( Keyboard, display, processor) • To synchronize the transfer of data. • Solution : on output, the processor sends the first character and then waits for a signal from the display that the character has been received. It then sends the second character. Input it sent from the keyboard in a similar way.
  • 4. Bus connections for Processor, Key Board and Display (Hardware)
  • 5. Program Controlled – I / O READ Operation: READWAIT Branch to READWAIT if SIN = 0 Input from DATAIN to R1 WRITE Operation: WRITEWAIT Branch to WRITEWAIT if SOUT = 0 output from R1 to DATAOUT
  • 6. Memory-Mapped I/O • Generally It has two types 1. Memory-Mapped I/O (Same space allocated for I/O) 2. Isolated I/O (Separated space allocated for I/O) • Memory-Mapped I/O used for this instruction • MoveByte DATAIN, R1 • MoveByte R1, DATAOUT
  • 7. How Processor check whether set 1 or not
  • 8. Example: Program to read a line of characters typed at a keyboard and send them out to a display device using a method of Program-Controlled I/O MOVE #LOC, R0 READ Testbit #3,INSTATUS Branch=0 READ MoveByte DATAIN, (R1) ECHO Testbit #3, OUTSTATUS Branch=0 ECHO MoveByte (R1), DATAOUT Compare #CR, (R0)+ Branch #0 READ