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 config FSRSSEL is assigned to same level, or use 'SOFT' if not)
	mINT0ClearIntFlag();		//<Clear the flag


Generate INT Pin Interrupt In Code

	INTSetFlag(INT_INT0);		//Set interrupt request flag.

Code based INT pin IRQ flag detect

	//----- SETUP INT 4 PIN -----
	ConfigINT4(EXT_INT_PRI_1 | FALLING_EDGE_INT | EXT_INT_DISABLE);		//Priority, edge trigger, enable.  This also clear the irq flat
	//if (mINT4GetIntFlag())
	//	mINT4ClearIntFlag();			//Reset the flag


We benefit hugely from resources on the web so we decided we should try and give back some of our knowledge and resources to the community by opening up many of our company’s internal notes and libraries through mini sites like this. We hope you find the site helpful.
Please feel free to comment if you can add help to this page or point out issues and solutions you have found, but please note that we do not provide support on this site. If you need help with a problem please use one of the many online forums.


Your email address will not be published.