Tool/software: Code Composer Studio
Howdy!
I am trying to configure the TIVA TM4C23G microcontroller to collect voltage samples at a frequency of 1 MHz. I need to sample a pulse occurring at an arbitrary time using the ADC and store the data for later
analysis. However, the sampling needs to be taken care of in the background by hardware as much as possible to free up the CPU for other tasks.
Additionally, it would be preferable if there was a way to obtain several data points before the pulse occurs.
I am currently thinking that this may be accomplished by using a timer interrupt to trigger sampling by the ADC and configuring the uDMA to collect the samples. The pulse could be detected by an ADC interrupt,
which would call functions for data analysis or transmit the data over UART for processing elsewhere. But I am unsure exactly how to configure the ADC to sample at such a high rate, and I am completely unfamiliar
with the uDMA. Could someone shed some light on this for me? Simple example code would also be extremely helpful.
Thank You in Advance!
Derek Janak59