11.07.2015 Views

uPD789074 Subseries 8-Bit Single-Chip Microcontrollers UD - Home

uPD789074 Subseries 8-Bit Single-Chip Microcontrollers UD - Home

uPD789074 Subseries 8-Bit Single-Chip Microcontrollers UD - Home

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 10 INTERRUPT FUNCTIONS10.4.2 Maskable interrupt request acknowledgment operationA maskable interrupt request can be acknowledged when the interrupt request flag is set to 1 and thecorresponding interrupt mask flag is cleared to 0. A vectored interrupt request is acknowledged in the interruptenabled status (when the IE flag is set to 1).The time required to start the interrupt servicing after a maskable interrupt request has been generated is shownin Table 10-3.See Figures 10-10 and 10-11 for the interrupt request acknowledgment timing.Table 10-3. Time from Generation of Maskable Interrupt Request to ServicingMinimum TimeMaximum Time Note9 clocks 19 clocksNote The wait time is maximum when an interruptrequest is generated immediately before BT andBF instruction.1Remark 1 clock: (fCPU: CPU clock)fCPUWhen two or more maskable interrupt requests are generated at the same time, they are acknowledged startingfrom the interrupt request assigned the highest priority.A pending interrupt is acknowledged when a status in which it can be acknowledged is set.Figure 10-9 shows the algorithm of interrupt requests acknowledgment.When a maskable interrupt request is acknowledged, the contents of the PSW and PC are saved to the stack inthat order, the IE flag is reset to 0, and the data in the vector table determined for each interrupt request is loaded tothe PC, and execution branches.To return from interrupt servicing, use the RETI instruction.160User’s Manual U14801EJ3V1<strong>UD</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!