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.

msp430G2332 ADC 基准源校正

Other Parts Discussed in Thread: MSP430G2332

您好!

         请教以下问题:

1、 msp430g2332   ADC 的片内,1.5V参考源精度是多少?

2、参考源校准,

现在我们遇到测量电压有比较明显的 静态偏差,  一共测了30套,有5套 由于静态偏差需要调整。  

程序如下:

__interrupt void ADC10_ISR (void)
{
unsigned int ADCValue;
unsigned long ADC0;

ADCValue = ADC10MEM;

ADC0=*((unsigned int*)(0x10DA+6));
ADC0=(ADCValue*ADC0)>>15;
ADCValue=ADC0;

if (ADCValue >= FirstADCVal + ADCDeltaOn)
P1OUT |= 0x01; // LED on
else
P1OUT &= ~0x01; // LED off
}

这样校准是否正确?

3、32位乘以16位的乘法运算,需要占用的flash空间比较大。如下3行代码占用了150Byte   flash空间。是否有好的建议?

ADC0=*((unsigned int*)(0x10DA+6));
ADC0=(ADCValue*ADC0)>>15;
ADCValue=ADC0;