Hi
#if (G81PL != 0) interrupt void I2CINT1A_ISR(void) // I2C-A { // Set interrupt priority: volatile Uint16 TempPIEIER = PieCtrlRegs.PIEIER8.all; IER |= M_INT8; IER &= MINT8; // Set "global" priority PieCtrlRegs.PIEIER6.all &= MG81; // Set "group" priority PieCtrlRegs.PIEACK.all = 0xFFFF; // Enable PIE interrupts asm(" NOP"); //Wait for PIEACK to exit the pipeline EINT; PMBus_Slave_Interrupt_Handler(); // Restore registers saved: DINT; PieCtrlRegs.PIEIER8.all = TempPIEIER; // Next two lines for debug only to halt the processor here // Remove after inserting ISR Code //asm (" ESTOP0"); //for(;;); } #endif // Connected to PIEIER8_2 (use MINT8 and MG82 masks): #if (G82PL != 0) interrupt void I2CINT2A_ISR(void) // I2C-A { // Set interrupt priority: volatile Uint16 TempPIEIER = PieCtrlRegs.PIEIER8.all; IER |= M_INT8; IER &= MINT8; // Set "global" priority PieCtrlRegs.PIEIER6.all &= MG82; // Set "group" priority PieCtrlRegs.PIEACK.all = 0xFFFF; // Enable PIE interrupts asm(" NOP"); //Wait for PIEACK to exit the pipeline EINT; PMBus_Slave_Interrupt_Handler_FIFO(); // Restore registers saved: DINT; PieCtrlRegs.PIEIER8.all = TempPIEIER; // Next two lines for debug only to halt the processor here // Remove after inserting ISR Code //asm (" ESTOP0"); //for(;;); } #endif
should be:
#if (G81PL != 0) interrupt void I2CINT1A_ISR(void) // I2C-A { // Set interrupt priority: volatile Uint16 TempPIEIER = PieCtrlRegs.PIEIER8.all; IER |= M_INT8; IER &= MINT8; // Set "global" priority PieCtrlRegs.PIEIER8.all &= MG81; // Set "group" priority PieCtrlRegs.PIEACK.all = 0xFFFF; // Enable PIE interrupts asm(" NOP"); //Wait for PIEACK to exit the pipeline EINT; PMBus_Slave_Interrupt_Handler(); // Restore registers saved: DINT; PieCtrlRegs.PIEIER8.all = TempPIEIER; // Next two lines for debug only to halt the processor here // Remove after inserting ISR Code //asm (" ESTOP0"); //for(;;); } #endif // Connected to PIEIER8_2 (use MINT8 and MG82 masks): #if (G82PL != 0) interrupt void I2CINT2A_ISR(void) // I2C-A { // Set interrupt priority: volatile Uint16 TempPIEIER = PieCtrlRegs.PIEIER8.all; IER |= M_INT8; IER &= MINT8; // Set "global" priority PieCtrlRegs.PIEIER8.all &= MG82; // Set "group" priority PieCtrlRegs.PIEACK.all = 0xFFFF; // Enable PIE interrupts asm(" NOP"); //Wait for PIEACK to exit the pipeline EINT; PMBus_Slave_Interrupt_Handler_FIFO(); // Restore registers saved: DINT; PieCtrlRegs.PIEIER8.all = TempPIEIER; // Next two lines for debug only to halt the processor here // Remove after inserting ISR Code //asm (" ESTOP0"); //for(;;); } #endif