Code: Select all
/******************************************************************************
*
* PeriodicAD - DMA Driven, periodic sampling Analog to Digital example
*
* This example shows how to setup a periodic sampling Analog to Digital
* conversion with buffering. It uses the onboard Analog to Digital Converter
* in loop mode to continuously sample. It then utilizes the DMA Timer to
* trigger a dma transfer from the selected ADC channel, to the next location
* in the sample buffer. The example includes interrupt triggers at a half-full
* and completely full buffer. Finally, the specific result of the application
* is to sample for some period of time, record the data to an output .wav file,
* and repeat.
*
*****************************************************************************/
-Dan