Interrupts usage in component's generated code

Some high-level components use interrupt service routines to provide their functionality. Usage of interrupts can usually be enabled/disabled through property Interrupt service/event. If the interrupt service is used, complete interrupt service routine is generated into component's driver and the generated code contains configuration of the corresponding peripheral to invoke the interrupts.

You should be careful while disabling an interrupt. If a component should operate properly, it is necessary to allow the interrupt invocation by having interrupts enabled and (if the processor contains priority system) set the corresponding interrupt priority level. This can be done using the appropriate method of the processor component.

Note: It is a common bug in user code, if the application is waiting for a result of the component action while the interrupts are disabled. In this situation, the result of the component method does not change until the interrupt service routine is handled. Refer to the description of the property Interrupt service/event for detailed information about the particular component.