I use the Tiva™ C Series TM4C129X board development kit to configure ADC1 module,but it doesn't generate an interrupt to the Microcontroller NVIC. I don't why?
My code as following:
void ADC1IntHandler(void)
{
//interrupt code
.................................
}
void ADC1Init(void)
{
SysCtlPeripheralEnable(SYSCTL_PERIPH_ADC1);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOE);
GPIOPinTypeADC(GPIO_PORTE_BASE, GPIO_PIN_1);
ADCSequenceConfigure(ADC1_BASE, 0, ADC_TRIGGER_PROCESSOR, 0);
ADCSequenceStepConfigure(ADC1_BASE, 0, 0, ADC_CTL_CH2 | ADC_CTL_IE |
ADC_CTL_END);
IntEnable(INT_ADC1SS0_BLIIARD);
ADCIntEnable(ADC1_BASE,0);
ADCSequenceEnable(ADC1_BASE,0);
}
int main()
{
//set system clock
..........
// initialize ADC1 module
ADC1Init();
IntMasterEnable();
// trigger ADC1 module
ADCProcessorTrigger(ADC1_BASE, 0);
....................................................
}