It’s not clear to me what flag needs to be set to schedule an interrupt … want it to interrupt when the ADC is done taking a measurement… the ISR captures the data and then returns to the ADC to measure new info. Here is a snippet of code ... not sure what to set for ADCINT to interrupt.
//-----------------------------------------------------------------------------
void gInitAdc(void)
{
EALLOW;
PieVectTable.ADCINT = &IsrAdc;
EDIS;
IER |= M_INT1;
PieCtrlRegs.PIEIER1.bit.INTx6 = 1;
AdcRegs.ADCCHSELSEQ1.bit.CONV00 = 0;
AdcRegs.ADCTRL1.bit.CONT_RUN = 1;
AdcRegs.ADCTRL2.bit.SOC_SEQ1 = 1;
}//gInitAdc
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
interrupt void IsrAdc(void)
{
Uint16 x = AdcRegs.ADCRESULT0;
PieCtrlRegs.PIEACK.all = PIEACK_GROUP1;
}//IsrAdc
//-----------------------------------------------------------------------------