MC68HC711PH8 Motorola, MC68HC711PH8 Datasheet - Page 199

no-image

MC68HC711PH8

Manufacturer Part Number
MC68HC711PH8
Description
High-density Complementary Metal Oxide Semiconductor (HCMOS) Microcomputer Unit
Manufacturer
Motorola
Datasheet
10.4
Excluding reset type interrupts, the MC68HC11PH8 has 22 interrupt vectors that support 32
interrupt sources. The 19 maskable interrupts are generated by on-chip peripheral systems.
These interrupts are recognized when the global interrupt mask bit (I) in the condition code
register (CCR) is clear. The three nonmaskable interrupt sources are illegal opcode trap, software
interrupt, and XIRQ pin. Refer to Table 10-5, which shows the interrupt sources and vector
assignments for each source.
For some interrupt sources, such as the SCI interrupts, the flags are automatically cleared during
the normal course of responding to the interrupt requests. For example, the RDRF flag in the SCI
system is cleared by the automatic clearing mechanism consisting of a read of the SCI status
register while RDRF is set, followed by a read of the SCI data register. The normal response to an
RDRF interrupt request would be to read the SCI status register to check for receive errors, then
to read the received data from the SCI data register. These two steps satisfy the automatic
clearing mechanism without requiring any special instructions.
10.4.1
An interrupt can be recognized at any time after it is enabled by its local mask, if any, and by the
global mask bit in the CCR. Once an interrupt source is recognized, the CPU responds at the
completion of the instruction being executed. Interrupt latency varies according to the number of
cycles required to complete the current instruction. When the CPU begins to service an interrupt,
the contents of the CPU registers are pushed onto the stack in the order shown in Table 10-6. After
the CCR value is stacked, the I-bit and the X-bit, if XIRQ is pending, are set to inhibit further
interrupts. The interrupt vector for the highest priority pending source is fetched, and execution
continues at the address specified by the vector. At the end of the interrupt service routine, the
return from interrupt instruction is executed and the saved registers are pulled from the stack in
reverse order so that normal program execution can resume. Refer to Section 11 for further
information.
MC68HC11PH8
Interrupts
Interrupt recognition and register stacking
Table 10-6 Stacking order on entry to interrupts
RESETS AND INTERRUPTS
Memory location CPU registers
SP Ð 1
SP Ð 2
SP Ð 3
SP Ð 4
SP Ð 5
SP Ð 6
SP Ð 7
SP Ð 8
SP
ACCA
ACCB
PCH
CCR
PCL
IYH
IXH
IYL
IXL
MOTOROLA
10-15
TPG
10

Related parts for MC68HC711PH8