SlideShare a Scribd company logo
1 of 15
INPUT –OUTPUT AND INTERRUPT
M.SANDHIYA M.SC(IT)
DEPARTMENT OF CS&IT
NADAR SARASWATHI COLLEGE OF ARTS&SCIENCE
INPUT- OUTPUT AND INTERRUPT
 A computer serve no useful it communication
with the external Environment Instruction and
data stored in memory must come from some
input device Computational result must be
transmitted to the user through some output
device commercial include many type of input
and output devices
INPUT –OUTPUT CONFIGURATION
 The terminal sends and receives serial
information each quantity of information has
eight bits of an alphanumeric code the serial
information form the keyboard is shifted in to
the input register INPR the serial information
for the printer is stored in the output register
OUTR the two register communication in
interface and the AC parallel the interface
receives serial keyboard transmits to INPR the
receiver interface receiver from OUTR serially
INPUT REGISTER
The Input register INPR consists of eight bits
and hold alphanumeric input the 1-bot input
flag FGI is a control flip-flop the flag bits is set to
1 available in input device is cleared to 0
accepted the computer initially the flag FGI
cleared 0 .key is struck in the keyboard an 8 bits
alphanumeric code shift in to INPR Input flag
FGI set to 1 once flag cleared be shifted into
INPR striking key
INPUT REGISTER
INPUT-OUTPUT SERIAL COMMUNTION COMPUTER REGISTER&
TERMIAL INTERFACE FLIP FLOPS
printer
FGO
INPR
Transmitter
interface
OUTR
Receiver
interface
AC
FGI
keyboard
OUTPUT REGISETR
 The output register OUTR .the output flag
FGO is set 1 the computer check the flag bit is
1. the AC transferred is parallel to OUTR and
FGO cleared to 0 .the computer load a new
character into OUTR when FGO is 0 the
condition that the output device is in the
process .
INPUT-OUTPUT INSTRUCTION
 input and output instruction are need for
transferring information to and from AC
register the flag bit interrupt facility .input
output operation code 1111 and recognized
the control when D7=& I=1the instruction
executed with the clock transition time signal
T3 each control function need boolean
relation D7LT3 the control function is
distinguished by one of the bit .
INPUT –OUTPUT INSTRUCTION
 D7IT3=P(common to all input-output instruction)
IR(i)=B[bit in IR(6-11)that specifies the instruction]
P: clear sc
INP PB11: SC 0 input character
OUT PB10: AC(0-7) INPR,FGI 0 output character
SKI PB9: OUTR AC(0-7),FGO 0 skip on input flag
SKO PB8: IF(FGI=1)Then(PC PC+1) skip on output flag
ION PB7: IF(FGI=1)Then(PC PC+1) interrupt enable on
IOF PB6: IEN 1 interrupt enable off
PROGRAM INTERRUPT
 The process of communication just described referred as
programming control transfer the
computer checking the flag difference
 information flow rate the computer and input output device
make many type of transfer consider computer instruction
cycle in 1as.assume that input output device transfer the
information at maximum rate of 10 character the interrupt
flip-flop cleared with two instruction .IEN cleared to 0 the flag
can not interrupt the computer the IEN is set 1.when R=0
instruction cycle IEN is control with the next instruction cycle
IEN =1,flip-flop r set to 1,control check value of R equal to 1
INTERRUPT CYCLE
 The interrupt cycle is a hardware implementation of
branch and save return address operation the return
address available in PC stored in a specific location
founder later the program return to the instruction
was interrupted the location be a processor register
memory stack specific memory location the memory
location 0 the return address control insert address 1
PC clear IEN and R.
INTERRUPT CYCLE
 Interrupt occurs and R is set to 1 the control
executing the instruction address 255 at the
time the return address 256 in PC The
programmer memory address 1120 BUN
instruction at address 1. t0 and finds R=1
 the instruction that return the computer to
original place in the main program is a branch
indirect instruction with an address part 0
the instruction is placed at the end IO service
program
DEMONSTRATION INTERRUPT
CYCLE
Memory ss Memory
0 BUS 1120
Main program
1 BUS 0
IO program
256
0 BUS 1120
Main program
IO program
1 BUS 0
FLOWCHART
= 0 = 1 interrupt cycle
R
O
E
Store return address
in location 0
M [0] PC
Fetch & decode
instruction
Branch to location
1 pc 1
IEN 0
R 0
Execute
instruction G
INTERRUPRT CYCLE
 The register transfer statement for the
interrupt cycle the interrupt cycle in initiated
the last execute phase if the interrupt flip-flop
R IS equal to 1 the flip-flop is set to 1 if IEN=1
FGI0R FGO are equale to 1 transition timing
signals T0,T1,OR T2 active the condition for
flip-flop R to 1
T0T1’T2’(IEN)(FGI+FGO):R 1
MODIFIED FETCH PHASE
 The symbol FGI and FGO in the control function
designates a logic OR operation this AND De d
with IEN and T0,’T1’,T2’
Instead of using only timing signals T0,T1 and T3
active
The condition for Flip flop R to 1to expressed
register transfer statement
 AND the timing signal with R
 The interrupt cycle stores return address
memory location
1 and IEN R and SC to 0 they sequence
microoperation

More Related Content

What's hot (20)

I/O Ports
I/O Ports I/O Ports
I/O Ports
 
8051 i/o port circuit
8051 i/o port circuit8051 i/o port circuit
8051 i/o port circuit
 
Pc based wire less data aquisition system using rf(1)
Pc based wire less data aquisition system using rf(1)Pc based wire less data aquisition system using rf(1)
Pc based wire less data aquisition system using rf(1)
 
8051 archi
8051 archi8051 archi
8051 archi
 
Interrupts for PIC18
Interrupts for PIC18Interrupts for PIC18
Interrupts for PIC18
 
Energy Metering ICs with Active Real Power
Energy Metering ICs with Active Real PowerEnergy Metering ICs with Active Real Power
Energy Metering ICs with Active Real Power
 
Chapter5 dek3133
Chapter5 dek3133Chapter5 dek3133
Chapter5 dek3133
 
Interrupt
InterruptInterrupt
Interrupt
 
AT89C52 Data sheet
AT89C52 Data sheetAT89C52 Data sheet
AT89C52 Data sheet
 
PIC and LCD
PIC and LCDPIC and LCD
PIC and LCD
 
8051 Microcontroller
8051 Microcontroller8051 Microcontroller
8051 Microcontroller
 
8051
80518051
8051
 
Intrerfacing i
Intrerfacing iIntrerfacing i
Intrerfacing i
 
PLC power point presentation
PLC power point presentationPLC power point presentation
PLC power point presentation
 
8051 ports
8051 ports8051 ports
8051 ports
 
PIC16F877A interfacing with LCD
PIC16F877A interfacing with LCDPIC16F877A interfacing with LCD
PIC16F877A interfacing with LCD
 
Galil ioc7007 catalog
Galil ioc7007 catalogGalil ioc7007 catalog
Galil ioc7007 catalog
 
Ab PLC Cables Drivers Sample
Ab PLC Cables Drivers SampleAb PLC Cables Drivers Sample
Ab PLC Cables Drivers Sample
 
Lec12
Lec12Lec12
Lec12
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 

Similar to input

Basic computer organisation design
Basic computer organisation designBasic computer organisation design
Basic computer organisation designSanjeev Patel
 
Basic Computer Organisation And Design
Basic Computer Organisation And DesignBasic Computer Organisation And Design
Basic Computer Organisation And Designlavanya marichamy
 
Computer instruction
Computer instructionComputer instruction
Computer instructionSanjeev Patel
 
COA Module 3 PART 2.pptx
COA Module 3 PART 2.pptxCOA Module 3 PART 2.pptx
COA Module 3 PART 2.pptxnishu chaudhary
 
Basic computer organization design
Basic computer organization designBasic computer organization design
Basic computer organization designndasharath
 
material for studentbasic computer organization and design .pptx
material for studentbasic computer organization and design .pptxmaterial for studentbasic computer organization and design .pptx
material for studentbasic computer organization and design .pptxjainyshah20
 
Computer Organization
Computer OrganizationComputer Organization
Computer OrganizationHaripritha
 
20IT204-COA- Lecture 17.pptx
20IT204-COA- Lecture 17.pptx20IT204-COA- Lecture 17.pptx
20IT204-COA- Lecture 17.pptxPerumalPitchandi
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and DesignKamal Acharya
 
8051 MMD Chapter 1.ppt
8051 MMD Chapter 1.ppt8051 MMD Chapter 1.ppt
8051 MMD Chapter 1.pptnotagain0712
 
Unit2 control unit
Unit2 control unitUnit2 control unit
Unit2 control unitAshim Saha
 
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
COMPUTER INSTRUCTIONS & TIMING & CONTROL.COMPUTER INSTRUCTIONS & TIMING & CONTROL.
COMPUTER INSTRUCTIONS & TIMING & CONTROL.ATUL KUMAR YADAV
 

Similar to input (20)

Basic computer organisation design
Basic computer organisation designBasic computer organisation design
Basic computer organisation design
 
Lecture 18
Lecture 18Lecture 18
Lecture 18
 
Basic Computer Organisation And Design
Basic Computer Organisation And DesignBasic Computer Organisation And Design
Basic Computer Organisation And Design
 
Computer instruction
Computer instructionComputer instruction
Computer instruction
 
COA Module 3 PART 2.pptx
COA Module 3 PART 2.pptxCOA Module 3 PART 2.pptx
COA Module 3 PART 2.pptx
 
Basic computer organization design
Basic computer organization designBasic computer organization design
Basic computer organization design
 
Memory Reference instruction
Memory Reference instructionMemory Reference instruction
Memory Reference instruction
 
CAAL_CCSU_U1.pdf
CAAL_CCSU_U1.pdfCAAL_CCSU_U1.pdf
CAAL_CCSU_U1.pdf
 
11. Lecture.pdf
11. Lecture.pdf11. Lecture.pdf
11. Lecture.pdf
 
material for studentbasic computer organization and design .pptx
material for studentbasic computer organization and design .pptxmaterial for studentbasic computer organization and design .pptx
material for studentbasic computer organization and design .pptx
 
Lecture7
Lecture7Lecture7
Lecture7
 
Ch5_MorrisMano.pptx
Ch5_MorrisMano.pptxCh5_MorrisMano.pptx
Ch5_MorrisMano.pptx
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
 
20IT204-COA- Lecture 17.pptx
20IT204-COA- Lecture 17.pptx20IT204-COA- Lecture 17.pptx
20IT204-COA- Lecture 17.pptx
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
 
Ca basic computer organization
Ca basic computer organizationCa basic computer organization
Ca basic computer organization
 
8051 MMD Chapter 1.ppt
8051 MMD Chapter 1.ppt8051 MMD Chapter 1.ppt
8051 MMD Chapter 1.ppt
 
Chp 2 and 3.pptx
Chp 2 and 3.pptxChp 2 and 3.pptx
Chp 2 and 3.pptx
 
Unit2 control unit
Unit2 control unitUnit2 control unit
Unit2 control unit
 
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
COMPUTER INSTRUCTIONS & TIMING & CONTROL.COMPUTER INSTRUCTIONS & TIMING & CONTROL.
COMPUTER INSTRUCTIONS & TIMING & CONTROL.
 

More from SangeethaSasi1 (20)

L4 multiplexing & multiple access 16
L4 multiplexing & multiple access 16L4 multiplexing & multiple access 16
L4 multiplexing & multiple access 16
 
Image processing using matlab
Image processing using matlab Image processing using matlab
Image processing using matlab
 
Mc ppt
Mc pptMc ppt
Mc ppt
 
Mc ppt
Mc pptMc ppt
Mc ppt
 
Dip pppt
Dip ppptDip pppt
Dip pppt
 
Web techh
Web techhWeb techh
Web techh
 
Web tech
Web techWeb tech
Web tech
 
Vani wt
Vani wtVani wt
Vani wt
 
Vani dbms
Vani dbmsVani dbms
Vani dbms
 
Hema wt (1)
Hema wt (1)Hema wt (1)
Hema wt (1)
 
Hema rdbms
Hema rdbmsHema rdbms
Hema rdbms
 
Web tech
Web techWeb tech
Web tech
 
Web tech
Web techWeb tech
Web tech
 
Dbms
DbmsDbms
Dbms
 
Vani
VaniVani
Vani
 
Hema se
Hema seHema se
Hema se
 
Software
SoftwareSoftware
Software
 
Operating system
Operating systemOperating system
Operating system
 
Dataminng
DataminngDataminng
Dataminng
 
System calls
System callsSystem calls
System calls
 

Recently uploaded

Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
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
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
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
 

Recently uploaded (20)

TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
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
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
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
 

input

  • 1. INPUT –OUTPUT AND INTERRUPT M.SANDHIYA M.SC(IT) DEPARTMENT OF CS&IT NADAR SARASWATHI COLLEGE OF ARTS&SCIENCE
  • 2. INPUT- OUTPUT AND INTERRUPT  A computer serve no useful it communication with the external Environment Instruction and data stored in memory must come from some input device Computational result must be transmitted to the user through some output device commercial include many type of input and output devices
  • 3. INPUT –OUTPUT CONFIGURATION  The terminal sends and receives serial information each quantity of information has eight bits of an alphanumeric code the serial information form the keyboard is shifted in to the input register INPR the serial information for the printer is stored in the output register OUTR the two register communication in interface and the AC parallel the interface receives serial keyboard transmits to INPR the receiver interface receiver from OUTR serially
  • 4. INPUT REGISTER The Input register INPR consists of eight bits and hold alphanumeric input the 1-bot input flag FGI is a control flip-flop the flag bits is set to 1 available in input device is cleared to 0 accepted the computer initially the flag FGI cleared 0 .key is struck in the keyboard an 8 bits alphanumeric code shift in to INPR Input flag FGI set to 1 once flag cleared be shifted into INPR striking key
  • 5. INPUT REGISTER INPUT-OUTPUT SERIAL COMMUNTION COMPUTER REGISTER& TERMIAL INTERFACE FLIP FLOPS printer FGO INPR Transmitter interface OUTR Receiver interface AC FGI keyboard
  • 6. OUTPUT REGISETR  The output register OUTR .the output flag FGO is set 1 the computer check the flag bit is 1. the AC transferred is parallel to OUTR and FGO cleared to 0 .the computer load a new character into OUTR when FGO is 0 the condition that the output device is in the process .
  • 7. INPUT-OUTPUT INSTRUCTION  input and output instruction are need for transferring information to and from AC register the flag bit interrupt facility .input output operation code 1111 and recognized the control when D7=& I=1the instruction executed with the clock transition time signal T3 each control function need boolean relation D7LT3 the control function is distinguished by one of the bit .
  • 8. INPUT –OUTPUT INSTRUCTION  D7IT3=P(common to all input-output instruction) IR(i)=B[bit in IR(6-11)that specifies the instruction] P: clear sc INP PB11: SC 0 input character OUT PB10: AC(0-7) INPR,FGI 0 output character SKI PB9: OUTR AC(0-7),FGO 0 skip on input flag SKO PB8: IF(FGI=1)Then(PC PC+1) skip on output flag ION PB7: IF(FGI=1)Then(PC PC+1) interrupt enable on IOF PB6: IEN 1 interrupt enable off
  • 9. PROGRAM INTERRUPT  The process of communication just described referred as programming control transfer the computer checking the flag difference  information flow rate the computer and input output device make many type of transfer consider computer instruction cycle in 1as.assume that input output device transfer the information at maximum rate of 10 character the interrupt flip-flop cleared with two instruction .IEN cleared to 0 the flag can not interrupt the computer the IEN is set 1.when R=0 instruction cycle IEN is control with the next instruction cycle IEN =1,flip-flop r set to 1,control check value of R equal to 1
  • 10. INTERRUPT CYCLE  The interrupt cycle is a hardware implementation of branch and save return address operation the return address available in PC stored in a specific location founder later the program return to the instruction was interrupted the location be a processor register memory stack specific memory location the memory location 0 the return address control insert address 1 PC clear IEN and R.
  • 11. INTERRUPT CYCLE  Interrupt occurs and R is set to 1 the control executing the instruction address 255 at the time the return address 256 in PC The programmer memory address 1120 BUN instruction at address 1. t0 and finds R=1  the instruction that return the computer to original place in the main program is a branch indirect instruction with an address part 0 the instruction is placed at the end IO service program
  • 12. DEMONSTRATION INTERRUPT CYCLE Memory ss Memory 0 BUS 1120 Main program 1 BUS 0 IO program 256 0 BUS 1120 Main program IO program 1 BUS 0
  • 13. FLOWCHART = 0 = 1 interrupt cycle R O E Store return address in location 0 M [0] PC Fetch & decode instruction Branch to location 1 pc 1 IEN 0 R 0 Execute instruction G
  • 14. INTERRUPRT CYCLE  The register transfer statement for the interrupt cycle the interrupt cycle in initiated the last execute phase if the interrupt flip-flop R IS equal to 1 the flip-flop is set to 1 if IEN=1 FGI0R FGO are equale to 1 transition timing signals T0,T1,OR T2 active the condition for flip-flop R to 1 T0T1’T2’(IEN)(FGI+FGO):R 1
  • 15. MODIFIED FETCH PHASE  The symbol FGI and FGO in the control function designates a logic OR operation this AND De d with IEN and T0,’T1’,T2’ Instead of using only timing signals T0,T1 and T3 active The condition for Flip flop R to 1to expressed register transfer statement  AND the timing signal with R  The interrupt cycle stores return address memory location 1 and IEN R and SC to 0 they sequence microoperation