Sorry - yes ("when the CPU's "interrupt enable flag is set").InsoReiges wrote:Thanks Brendan, a couple of clarifications:
You probably mean "When the CPU's "interrupt flag" is set, not clear?When the CPU's "interrupt flag" is clear, and the PIC chip's "In Service Register" says no higher priority IRQs are in service; the PIC sends the new interrupt to the CPU, clears the bit in the "Interrupt Received Register" and sets that bit in its "In Service Register". PIC moves to "PIC State 3".
Heh - yes.InsoReiges wrote:Both lines sat if the IRR is clear. I imagine some of them should say "not clear"?If the "Interrupt Received Register" is clear, PIC moves back to "PIC state 1"
If the "Interrupt Received Register" is clear, PIC moves back to "PIC state 2"
I'll edit the post to correct it (otherwise it won't make much sense).
Cheers,
Brendan