Hi,
Hopefully a really quick one for the gurus. I am attempting to read the internal temp of my tiva in a much larger project.
However when I do this:
SysCtlPeripheralEnable(SYSCTL_PERIPH_ADC1);
ADCSequenceConfigure(ADC1_BASE, 0, ADC_TRIGGER_PROCESSOR, 0);
I get an immediate FAULT_ISR. It doesn't seem to matter which ADC peripheral I use that's what I get.
In fact it faults when I get to this section in ADC.C
HWREG(ui32Base + ADC_O_EMUX) = ((HWREG(ui32Base + ADC_O_EMUX) &
~(0xf << ui32SequenceNum)) |
((ui32Trigger & 0xf) << ui32SequenceNum));
I have tried using the while(!(SysCtlPeripheralReady(SYSCTL_PERIPH_ADC1))); in between the 2 lines of code above but the while loop never exits.
Any thoughts from the much smarter masses??
Thanks
Warwick