Motorola M6800 manual IRQ Sequence

Page 17

MPU-17

IRQ SEQUENCE

1.If bit "I" in condition code register is not set (I = 0) and IRQ goes low for at least one Ø2 cycle, the IRQ sequence will be entered.

2.After completion of the current instruction, internal registers PC, X, A, B and CC will be stored in RAM at the address indicated by the stack pointer in descending locations (7 bytes in all).

3.The IRQ mask (bit I = 1) is set.

4.Data at FFF8 gets loaded into PCH.

5.Data at FFF9 gets loaded into PCL.

6.PC contents go out on address bus during

7.Contents of call addressed enters instruction register during Ø2 and is decoded as first instruction of interrupt routine.

8.If it is a more than 1 byte instruction, additional bytes enter MPU for execution. If not, go to next step.

9.After execution, step 5 is repeated for subsequent instructions. This loop is repeated until the instruction "RTI" is executed.

Image 17
Contents MPU-1 Introduction MPU-2 MPU-3 MPU-4 MPU-5 BIT N0 Function MPU-7 MPU-8 Data BUS EnabledbeREAD/WRITE R/W Valid Memory AddressvmaNON-MASKABLE Interruptnmi MPU-9BUS Available BA Address BUS AO/A15 THREE-STATE Control TSCINS ABAADC INXPage MPU-14 Summary of MPU Operation Reset Sequence IRQ Sequence RTI Execution NMI SequenceSWI Instruction Page Page Page Page Page Page Page Page