MOTOROLA
9-10
RESETS, INTERRUPTS, AND LOW POWER MODES
MC68HC11A8
TECHNICAL DATA
9
bit related interrupt structure has no effect on the X bit, the external XIRQ pin remains
effectively non-masked. In the interrupt priority logic, the XIRQ interrupt is a higher pri-
ority than any source that is maskable by the I bit. All I bit related interrupts operate
normally with their own priority relationship. When an I bit related interrupt occurs, the
I bit is automatically set by hardware after stacking the condition code register byte,
but the X bit is not affected. When an X bit related interrupt occurs, both the X bit and
the I bit are automatically set by hardware after stacking the condition code register.
An RTI (return from interrupt) instruction restores the X and I bits to their pre-interrupt
request state.
9.2.4 Priority Structure
Interrupts obey a fixed hardware priority circuit to resolve simultaneous requests; how-
ever, one I bit related interrupt source may be elevated to the highest I bit priority po-
sition in the resolution circuit. The first six interrupt sources are not masked by the I bit
in the condition code register and have the fixed priority interrupt relationship of: reset,
clock monitor fail, COP fail, illegal opcode, and XIRQ. (SWI is actually an instruction
and has highest priority other than reset in the sense that once the SWI opcode is
fetched, no other interrupt can be honored until the SWI vector has been fetched).
Each of these sources is an input to the priority resolution circuit. The highest I bit
masked priority input to the resolution circuit is assigned under software control (of the
HPRIO register) to be connected to any one of the remaining I bit related interrupt
sources. In order to avoid timing races, the HPRIO register may only be written while
the I bit related interrupts are inhibited (I bit in condition code register is a logic one).
An interrupt that is assigned to this high priority position is still subject to masking by
any associated control bits or the I bit in the condition code register. The interrupt vec-
tor address is not affected by assigning a source to this higher priority position.
Figure 9-4
,
Figure 9-5
, and
Figure 9-6
illustrate the interrupt process as it relates to
normal processing.
Figure 9-4
shows how the CPU begins from a reset and how in-
terrupt detection relates to normal opcode fetches.
Figure 9-5
is an expansion of a
block in
Figure 9-4
and shows how interrupt priority is resolved.
Figure 9-6
is an ex-
pansion of the SCI interrupt block in
Figure 9-5
.
Figure 9-6
shows the resolution of
interrupt sources within the SCI subsystem.
9.2.5 Highest Priority I Interrupt Register (HPRIO)
This register is used to select one of the I bit related interrupt sources to be elevated
to the highest I bit masked position in the priority resolution circuit. In addition, four mis-
cellaneous system control bits are included in this register.
RBOOT — Read Bootstrap ROM
The read bootstrap ROM bit only has meaning when the SMOD bit is a one (special
bootstrap mode or special test mode). At all other times, this bit is clear and may not
be written.
7
6
5
4
3
2
1
0
$
1
03C
RESET
RBOOT
—
SMOD
—
MDA
—
IRV
—
PSEL3
0
PSEL2
1
PSEL1
0
PSEL0
1
HPRIO