Part Number Search

Cross Reference Search

About information presented in this cross reference

The information presented in this cross reference is based on TOSHIBA's selection criteria and should be treated as a suggestion only. Please carefully review the latest versions of all relevant information on the TOSHIBA products, including without limitation data sheets and validate all operating parameters of the TOSHIBA products to ensure that the suggested TOSHIBA products are truly compatible with your design and application.
Please note that this cross reference is based on TOSHIBA's estimate of compatibility with other manufacturers' products, based on other manufacturers' published data, at the time the data was collected.
TOSHIBA is not responsible for any incorrect or incomplete information. Information is subject to change at any time without notice.

Keyword Search

Parametric Search

Stock Check & Purchase

Select Product Categories

Execution Order of Exception Processing

Simulation : [Clock switching] [Operation in the low-power consumption mode] [Execution order of the exception processing]

What is an exception?

  • An exception causes the CPU to stop the currently executing process and handle another process.
  • There are two types of exceptions: those that are generated when some error condition occurs or when an instruction to generate an exception is executed; and those that are generated by hardware, such as an interrupt request signal from an external pin or peripheral function.
  • All exceptions are handled by the Nested Vectored Interrupt Controller (NVIC) in the CPU according to the respective priority levels. When an exception occurs, the CPU stores the current state to the stack and branches to the corresponding interrupt service routine (ISR).
  • Upon completion of the ISR, the information stored to the stack is automatically restored.

Execution order of the exception processing

The execution sequence of exception processing is simulated. Click the "Execute" button after setting an exception generating order and the exception priority, and then the sequence of executing exception processing will be displayed. 
(Conditions)

  • The exception (A) (exception no.1) and exception (B) (exception no.2) occur in the main routine operation.
  • Interrupt is enabled for exception A and exception B.

Sequence selection of the exception generating situation, and priority setting

The exceptions generating orderThe exception priority setting
(pre-emption)
Exception A occurs. Exception B occurs after Exception A processing.
Exception A occurs. Exception B occurs during exception A processing.
Exception B occurs. Exception A occurs after Exception A processing.
Exception B occurs. Exception A occurs during exception A processing.
Simultaneous occurrence of exception A and B.
exception A > exception B
exception A = exception B
exception A < exception B

Processing execution sequence

Main routine
The exception A occurs
The exception processing A
The exception B occurs
The exception processing B

Notes

A new window will open