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.
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!
**Attention** This is a public forum