retagged by
1,294 views

1 Answer

Best answer
2 votes
2 votes

https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwiS27HUj_DPAhUIq48KHaBEC2sQFggbMAA&url=http%3A%2F%2Fmet.guc.edu.eg%2FDownload.ashx%3Fid%3D15592%26file%3DPractice%2520Assignment%25206%2520Sol_15592.pdf&usg=AFQjCNGI7e5UqZOCFQYGQJsIFQa5MohM6w&bvm=bv.136593572,d.c2I

I/O devices operate asynchronously. So there should be some mechanism for the device to inform the CPU that it is ready to send or accept data. Here, the R flag does the trick. If interrupts are enabled (Interrupt Enable flag is set to 1 i.e., IEN=1), then whenever either input flag (FGI) or output flag (FGO) goes to 1, the R flag also gets set. (R = FGI "OR" FGO) This allows the system to easily check whether any I/O device needs service. If R = 0, the CPU goes through a normal instruction cycle. If R = 1, the CPU branches to the ISR to process an I/O transaction.

For a normal instruction cycle, everthing that happens during an instruction fetch and decode cycle are controlled by timing variables $T_0$, $T_1$ and $T_2$. The following things happen:

$T_0$: Address of the next instruction available in program counter PC is transferred to memory address register MAR.

$T_1$: Contents of MAR is fetched to the instruction register IR.

$T_2$: Instruction is decoded to the data lines $D_{0-7}$ and address loaded to MAR. Somewhere in between $T_1$ and $T_2$, PC is incremented.

R will be set whenever neither $T_0$, $T_1$ or $T_2$ is set, i.e., NOR of $T_0$, $T_1$ and $T_2$. The set input J of the flip flop is fed with ($T_0$ + $T_1$ + $T_2$)' "AND" IEN "AND" (FGI "OR" FGO) to get R=1.

selected by

Related questions

1 votes
1 votes
1 answer
1
–1 votes
–1 votes
0 answers
2
LavTheRawkstar asked Nov 4, 2016
514 views
How to Construct a diagram for a 4×4 omega switching network ??
0 votes
0 votes
0 answers
4
LavTheRawkstar asked Nov 4, 2016
367 views
What is the difference between Loosely Coupled microprocessor System and Tightly Coupled microprocessor system in simple words please tell and explain please??