MC68HC901P MOTOROLA [Motorola, Inc], MC68HC901P Datasheet - Page 34

no-image

MC68HC901P

Manufacturer Part Number
MC68HC901P
Description
Multi-Function Peripheral
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
Interrupt Structure
GPIP5-GPIP4 — General Purpose Interrupt Servicing
Timer C — Timer C Interrupt Servicing
Timer D — Timer D Interrupt Servicing
GPIP3-GPIP0 — General Purpose Interrupt Servicing
4.4 NESTING MFP INTERRUPTS
In an M68000 vectored interrupt system, the MFP is assigned to one of seven possible
interrupt levels. When an interrupt is received from the MFP, an interrupt acknowledge for
that level is initiated. Once an interrupt is recognized at a particular level, interrupts at the
same level or below are masked by the processor. As long as the processor's interrupt mask
is unchanged, the M68000 interrupt structure will prohibit nesting the interrupts at the same
interrupt level. However, additional interrupt requests from the MFP can be recognized
before a previous channel's interrupt service routine is finished by lowering the processor's
interrupt mask to the next lower interrupt level within the interrupt handler.
When nesting MFP interrupts, it may be desirable to permit interrupts on any MFP channel
regardless of its priority, to pre-empt or delay interrupt processing of an earlier channel's
interrupt service request. Or, it may be desirable to only allow subsequent higher priority
channel interrupt requests to supercede previously recognized lower priority interrupt
requests. The MFP interrupt structure provides the flexibility by offering two end-of-interrupt
options for vectored interrupt schemes. The end-of-interrupt modes are not active in a polled
interrupt scheme.
4.4.1 Selecting the End-Of-Interrupt Mode
In a vectored interrupt scheme, the MFP may be programmed to operate in either the
automatic end-of-interrupt mode or the software end-of-interrupt mode. The mode is
selected by writing the S bit of the vector register. When the S bit is programmed to a one,
4-11
ISRB REGISTER
RESET
FIELD
ADDR
BIT
1 = In-service.
0 = No service in progress.
1 = In-service.
0 = No service in progress.
1 = In-service.
0 = No service in progress.
1 = In-service.
0 = No service in progress.
GPIP5
7
0
GPIP4
6
0
TIMER C
MC68HC901 USER’S MANUAL
5
0
TIMER D
4
0
$11
GPIP3
3
0
GPIP2
2
0
GPIP1
1
0
MOTOROLA
GPIP0
0
0

Related parts for MC68HC901P