AM62L FreeRTOS SDK  11.00.00
ADC Singleshot

Introduction

This example uses ADC to convert all channels and store the results in the FIFO. After this all the results are printed to the console.

The example does the below

  • Configure the ADC to convert all the four input channels.
  • ADC is configured in single shot mode.
  • ADC performs averaging of 16 samples to get the conversion result.
  • All the conversion results are stored in FIFO0.
  • After completion of all conversions, the results are read from the FIFO and displayed to the console.
  • Shows usage of ADC APIs

Supported Combinations

Parameter Value
CPU + OS a53ss0-0 freertos
a53ss0-0 nortos
Toolchain arm.gnu.aarch64-none
Board am62lx-evm
Example folder examples/drivers/adc/adc_singleshot/

Steps to Run the Example

See Also

ADC

Sample Output

Shown below is a sample output when the application is run,

ADC Single Shot Test Started ...
Number of Samples in FIFO : 4
Step ID Voltage Level
------- -------------
1 1636 mV
2 1638 mV
3 1443 mV
4 121 mV
ADC Single Shot Test Completed!!
All tests have passed!!