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.
Hi,
We are using MSP430i2040 for measuring the differential analog input and found there is a difference of 0.67mV in the ADC result when we short the A+ and A- terminal which should result in 0mV as the difference will be zero.
I have attached the schematics and the sample code used for testing, please let us know the gain or any other missing configuration that required to be added in the code.
#include "msp430i2040.h"
unsigned int storeone;
void main(void) {
WDTCTL = WDTPW | WDTHOLD;
SD24CTL = SD24REFS;
SD24CCTL0 |= SD24SNGL | SD24DF;
SD24CCTL1 |= SD24SNGL | SD24DF;
__delay_cycles(3200); // Delay
__bis_SR_register(GIE);
while (1) {
SD24CCTL0 |= SD24SC;
while (!(SD24CCTL0 & SD24IFG))
;
storeone = SD24MEM0;
}
}
Did you include a copy of low_level_init.c? That provides a function (_system_pre_init) which is automatically called to load the calibration constants. If you need it, there's a copy in the msp430i20xx_sd24_04 Example project (I'm pretty sure they're all the same):
http://dev.ti.com/tirex/explore/node?node=AF07UvYuuIkPyVw8AiNGLg__IOGqZri__LATEST
Hi Bruce,
The low_level_init.c file is included, any additional configurations are required??
Thanks,
Santosh.
I recall being able to get 0s from the SD24 by connecting the +/- together, though that was some years ago, and I was using my own program rather than one of the Examples. It now appears I broke my breakout board sometime since.
I suspect we'll need to wait for a Wizard to appear.
Hi Bruce,
Do you mean that it is only the firmware corrections that is required to be looked into ??
Thanks,
Santosh
Hi,
Could you please try below code example with single channel.
https://dev.ti.com/tirex/explore/node?node=AAiKb7Eq2A2gHvxInprt-w__IOGqZri__LATEST
BTW, you may try to remove the C13,15,16 on your board and test again.
**Attention** This is a public forum