Panasonic F77G, MN101C77C user manual Processing Sequence for Maskable Interrupts

Models: F77G MN101C77C

1 544
Download 544 pages 59.61 Kb
Page 105
Image 105

Chapter 3 Interrupts

Maskable Interrupt

Figure 3-1-6 shows the processing flow when a second interrupt with a lower priority level (xxxLV1- xxxLV0='10') arrives during the processing of one with a higher priority level (xxxLV1-xxxLV0='00').

(Clear MIE

 

 

 

 

 

Reset

 

 

 

 

 

 

 

 

 

IM0,1='00')

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Main program

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Set MIE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

IM1,0='11'

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Interrupt 1 generated

Accepted because IL<IM and MIE='1'

 

 

(xxxLV1,0='00')

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(IM1,0='00')

 

 

 

 

Interrupt acceptance cycle

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Interrupt service routine: 1

 

 

 

 

 

 

 

 

 

 

*1

 

 

 

 

 

 

 

 

 

 

Interrupt 2 generated

 

 

 

 

 

 

 

 

 

 

 

( xxxLV1,0='10')

 

 

 

 

 

 

 

 

 

 

 

 

*2

 

 

RTI

 

 

(IM1,0='11')

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(IM1,0='10')

 

 

 

 

Interrupt acceptance cycle

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Interrupt service routine: 2

RTI (IM1,0='11')

Interrupt generated

Not accepted because IM=IL

(xxxLV1,0='11')

Parentheses ( ) indicate hardware processing.

*1 If during the processing of the first interrupt, an interrupt request with an interrupt level (IL) numerically lower than the interrupt mask (IM) arrives, it is accepted as a nested interrupt. If IL IM, however, the interrupt is not accepted.

*2 The second interrupt, postponed because its interrupt level (IL) was numerically greater than the interrupt mask (IM) for the first interrupt service routine, is accepted when the first interrupt handler returns.

Figure 3-1-6 Processing Sequence for Maskable Interrupts

Overview III - 11

Page 105
Image 105
Panasonic F77G, MN101C77C user manual Processing Sequence for Maskable Interrupts