Hello,
I'm using a TM4C1294 lauchpad and i was trying to get the adc running with the sample code single_ended.c in the Peripheral library. The only changes i made was change the GPIO pin to 0 i.e GPIOPinTypeADC(GPIO_PORTE_BASE, GPIO_PIN_0); and change the baudrate of uart i.e UARTStdioConfig(0, 9600, 16000000); .
This was working for a while, and now it just gets stuck in the while loop ->while(!ADCIntStatus(ADC0_BASE, 3, false)).
I'm not able to figure out what might have caused it to stop working because atleast when it was working, i could read some junk data.
No changes were made in the code than above mentioned. I even tried with another launchpad, and still it does not work.
My clock is set at -
SysCtlClockSet(SYSCTL_SYSDIV_10 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN |
SYSCTL_XTAL_16MHZ);
Please help me out in this . Let me know if i'm missing something. Its just annoying because it was working with the same code sometime back.
Thanks in advance,
Pooja