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.

MSP430FR6820: ADC calculations provide wrong results?

Expert 4980 points

Replies: 2

Views: 80

Part Number: MSP430FR6820

Hi,

we are working on a design with MSP430FR6820, now trying to measure accurate values of thermistor, but It doesn´t work. Replaced termistor with fix resistors to check if ADC is counting properly; unfortunately counted values didn´t match with measured values of the ADC.

We checked gain factor and offset information from manufacturer, then found those values in the memory of MCU and when calculated final values(value*gain +offset), it didn´t match too.

I attached document with our calculations.

WrongResultsFromADC.xls

Can you help to understand where is the issue?

Thanks

 

2 Replies

  • In your register display, P9SEL0.4 is set to 1, but P9SEL1.4 is set to 0, which is function "N/A", whatever that means. [Ref Data Sheet (SLASE23E) Table 6-31]

    Try adding:

    > P9SEL1 |= BIT4;   // P9.4 as A12 per data sheet Table 6-31

  • In reply to Bruce McKenney47378:

    Hi Bart,

    In addition to Bruce's suggestions (thanks, Bruce!) did you check:

    1. Your ADC reference voltage? Is it set to what you want it to be?

    2. The data format? This is the ADC12DF bit.

    3. The actual voltage going into the ADC input? You can use a multi-meter to probe the voltage going into the ADC to double check that the thermistor circuit is correct.

    Thanks,

    Mitch

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.