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.

MSP430F2132: MSP430, 10-bit ADC: sending output to MSP430 register.

Part Number: MSP430F2132

Hi,

I'm using MSP430F2132 with an inbuilt 10-bit ADC. I'm coding on IAR workbench & using Proteus 8 Pro for simulating the circuit & displaying it on the LCD Screen.

The ADC is rounding off the result of the A/D conversion and sending it to ADC10MEM which is holding it as an integer value.

Is it possible to get the ADC output before rounding & store it in any one of the MSP430 registers in float data type? If yes, how?

  • What do you mean by rounding? The ADC does not round anything - it outputs a value from 0 to 1023.
  • The ADC10MEM register is holding integer values like 891, but not floating point values like 891.43 or 890.72 (which round off to 891).

    I want to know if there is a way to fetch these kind of floating point values from ADC (before being rounded off & sent to ADC10MEM register).

  • Prajwal Dhatwalia said:
    I want to know if there is a way to fetch these kind of floating point values from ADC (before being rounded off & sent to ADC10MEM register).

    There's no float value inside any ADC. ADCs measure integer values, they do not round floating point to integer. 

**Attention** This is a public forum