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.

Compiler/MSP430I2041: About the msp430i2041 SD24 sampling problem.

Part Number: MSP430I2041

Tool/software: TI C/C++ Compiler

Hello!

Now I am debugging the msp430i2041 SD24.There are several problems need ask you.

1.According to the data manual,The internal reference voltage is 1.2V,and the MCU VREF connect with 0.1uF capacitance to GND.But my software test ,When the voltage exceeds 0.6V,the AD value is 32767,Why did this happen?Shouldn't the detection voltage be 1.2V?

2.The detected voltage is over 1.2V,so I want to choose external reference voltage 3.0V,.the MCU VREF connect with 3.0V,But the same thing happens.Please help me .

Test sotfware:

unsigned long int results; // SD24 Conversion Results

void main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop WDT

//SD24CTL = SD24REFS; // Internal ref

SD24CCTL3 |= SD24SNGL |SD24DF; // Single sample, 2's complement

__delay_cycles(3200); // Delay ~200us for 1.2V ref to settle

while(1)
{
SD24CCTL3 |= SD24SC; // Set bit to start conversion
while(!(SD24CCTL3 & SD24IFG)); // Poll IFG until conversion completes
results = SD24MEM3; // Save SD24 conversion results
__no_operation(); // SET BREAKPOINT HERE
}
}

Thanks you!

  • Hi,

    Have you verified that your gain (SD24GAINx) is 1? If it is greater than that, you will be maxing out your voltage at lower input values.

    As for using 3V as your reference voltage, that will not work. Please see Table 5-20 in the datasheet. This shows that the maximum possible reference voltage (internal or external) is 1.5V. You will not be able to exceed that.

    Regards,
    Nathan

**Attention** This is a public forum