SPRUJ79 November 2024 F29H850TU , F29H859TU-Q1
FILE: interrupt_ex1_int_rtint_latency.c
This example demonstrates the interrupt latencies of INT and RTINT. This configures 2 CPU timer interrupts with following priorities.
User can set the macro ENABLE_FUNCTION_CALL_IN_ISR to 1 to configure both the ISRs to invoke a function call, hence multiple core registers needs to be saved and restored. If the macro is set to 0, both ISRs just updates a counter variable, hence requires only 1 register to be saved and restored. In case of RTINT, register saves and restores are done by the hardware. In case of INT, register saves and restores are done by the software.
The ERAD module is configured to measure the cycles taken between the timer interrupt event to the first instruction in the ISR.
Note : Run the example for some duration to get the min and max values. The watch variables are arrays with min and max values [Min, Max]
External Connections
Watch Variables
| RTINT | RTINT | INT | INT |
| w/o func | with func | w/o func | with func |intEvent_to_isr | 21-27 | 21-27 | 19-25 | 19-25 |
isr_to_data | 1 | 1 | 2 | 25-26 |