Interupt Flags

Test Interrupt if (INTGetFlag(INT_SPI1)) Clear Interrupt INTClearFlag(INT_T5); Is Interrupt Enabled if (!INTGetEnable(INT_INT0)) ConfigINT0(EXT_INT_PRI_7 | RISING_EDGE_INT | EXT_INT_ENABLE);  

Read More

INT Pin IRQs

Interrupt based INT pin handler //—– SETUP INT 0 PIN —– ConfigINT0(EXT_INT_PRI_7 | RISING_EDGE_INT | EXT_INT_ENABLE); //Priority, edge trigger, enable. This also clears the irq flag   //********************************** //********** INT0 PIN IRQ ********** //********************************** void __ISR(_EXTERNAL_0_VECTOR, IPL7SOFT) External_Interrupt_0(void) //(<<<<<<< IPL# must match the priority level assigned to the irq where its enabed, Use 'SRS' if […]

Read More

Interrupt Functions

Interrupt Priority Level 1 (lowest) to 7 (highest) Multi Vector / Single Vector Interrupts //—————————– //—– ENABLE INTERRUPTS —– //—————————– //INTEnableSystemSingleVectoredInt(); INTEnableSystemMultiVectoredInt(); Interrupt Functions New Style void __ISR(_TIMER_5_VECTOR, IPL7SRS) Timer5IntHandler(void) //(<<<<<<< IPL# must match the priority level assigned to the irq where its enabed, Use 'SRS' if config FSRSSEL is assigned to same level, or use […]

Read More