README


adcsinglechannel


Example Summary

Example that uses the ADC driver to make a number of samples and print them via UART.

Peripherals Exercised

Resources & Jumper Settings

If you’re using an IDE (such as CCS or IAR), please refer to Board.html in your project directory for resources used and board-specific jumper settings. Otherwise, you can find Board.html in the directory <SDK_INSTALL_DIR>/source/ti/boards/<BOARD>.

Example Usage

Important: Caution should be used when connecting the pins to analog inputs greater than 3VDC.

The connection will have the following settings:

    Baud-rate:     115200
    Data bits:          8
    Stop bits:          1
    Parity:          None
    Flow Control:    None

Example snippet of outputs:

        ADC channel 1 raw result (4): 230

        ADC channel 1 convert result (4): 2500000 uV
                    .                 .     .
                    .                 .     .
                    .                 .     .
        ADC channel 1 raw result (9): 280

        ADC channel 1 convert result (9): 3000000 uV

Application Design Details

This application uses two threads:

threadFxn0 - performs the following actions:

  1. Opens an ADC driver object.

  2. Uses the ADC driver object to perform a single sample and outputs the result.

  3. Closes the ADC driver object.

threadFxn1 - performs the following actions:

  1. Opens an ADC driver object.

  2. Uses the ADC driver object to perform 10 samples and output the results.

  3. Closes the ADC driver object.

TI-RTOS:

FreeRTOS: