2.8.5 Enhanced Vectored Interrupt Controller (EVIC) Configuration

The MPLAB Harmony v3 utility provides the following configuration options:

  • Priorities and Sub-Priorities: When multiple PLIB modules are used with an interrupt, it is important to configure the priorities and sub-priorities of these interrupts. It must be done using this window and the corresponding code is generated in the EVIC_Initialize function of the plib_evic.c.
  • ISR Generation: The ‘Use’ column of the EVIC Configuration utility is used to generate the ISR for corresponding interrupts. By default, the Use option for all the interrupts are deselected. When a PLIB module is used in interrupt mode, the MCC automatically selects the corresponding Use option in the EVIC Configurator and the ISR is generated in the interrupts.c file. If the user wants to generate the ISR of a peripheral even without using its PLIB module, then the Use option can be manually selected, and the code can be generated. The ISR name can be configured using the ‘Handler Name’ column. The following figure shows an interrupt configured for the UART2_RX and UART_TX:
Figure 2-17. Interrupt Configuration
Note: If MCC is selected the ‘Use’ column of an interrupt, and the user tries to override that setting in the utility, the MCC allows that, but it may cause unpredictable or undesirable behavior.