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.

TM4C123GH6PM: ADC Signed / Unsigned mode

Part Number: TM4C123GH6PM

Hi Everyone,

I would like to configure the ADC of the mentioned microcontroller into one of the modes - yet I found no description of it, neither in the datasheet, nor in the API. Is it possible to configure the ADC to either mode, or is it signed or unsigned by default and cannot be changed?

Thank you for your answers in advance,

Best regards,

Zsolt

  • Hello Zsolt,

    There is no signed / unsigned mode for the ADC. All conversions are unsigned and range from 0x000 to 0xFFF. You can reference Sections 13.3.4.1 and 13.3.5 of the device datasheet to see how those values are translated for both single-ended mode which will be always positive voltages and for differential mode which can support negative voltage ADC readings.

    Best Regards,

    Ralph Jacobi