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.

Reading ADC Value with digital comparator enable

Dear all.

I have a motor application with ADC digital comparator enabled.

I have read in the libary pdf, that it isn't possible read teh ADC value when the comparator is enabled :

Note:
If the Digital Comparator is present and enabled using the ADC_CTL_CMP0 through
ADC_CTL_CMP7 selects, the ADC sample is NOT written into the ADC sequence data FIFO.

Do you know a workaround for make this:

How can I read the ADC value in ADC comparator interrupt routine ?


Thanks

Stefano

  • Hello Stefano,

    There is no workaround for this. The only thing that can be done is to use the next channel in Sequencer to sample the data and write it to the FIFO. The user code has to read out this data as soon as a Interrupt us generated.

    Regards

    Amit