This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Enabling the ADC

Hello,

I am working on the Beagle bone with CCS & trying to make the ADC module up. I have followed couple of threads present in the TI community.I do not want to use interrrupts. I am reading once in the main the value returned by the ADC.For 1.8v I get 4095, 0v-439, 1v-4092 etc.I dont think I am reading the value at the right point.

I have configured the ADC in one-shot mode & I want to configure it in continuous mode eventually because as I change my analog voltage I want to see the corresponding changes.Do I have to set the threshold for the FIFO?I want to use only 1 channel.So how do I know that I am reading the latest value in the FIFO?

Regards Savitha

  • Hi Savitha,

    Sorry for the delayed response.

    You can try the following,
    configure the FIFO threshold interrupt and poll on the IRQSTATUS_RAW register for the FIFO threshold interrupt to read the Data. If you do not want to register an interrupts.

    Also, you can read the FIFO_WORD_COUNT from FIFOCOUNT register to keep track of the number
    of samples present in the FIFO.

    Hope this helps.

    Regards
    Anant Pai