voidmain(void){// initialize the deviceSYSTEM_Initialize();// When using interrupts, you need to set the Global and Peripheral Interrupt Enable bits// Use the following macros to:// Enable the Global InterruptsINTERRUPT_GlobalInterruptEnable();// Enable the Peripheral InterruptsINTERRUPT_PeripheralInterruptEnable();while(1){// Add your application code__delay_ms(200);
LATAbits.LATA0^=1;
LATAbits.LATA1^=1;}}