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.

TMS320F280033: ADC采样结果只有实际的一半

Part Number: TMS320F280033

程序中ADC转换结果只有实际值的一半,比如1.52V的输入电压,ADC结果为930,而实际ADC结果应该为 (1.52/3.3)*4096=1886

检查自己的工程,没有发现配置问题,然后用Ti的例程adc_ex1_soc_epwm来测试,结果仍然如此。

ADC采用内部参考电压3.3V

TI例程中的部分代码:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
void initADC(void)
{
//
// Setup VREF as internal
//
SetVREF(ADC_ADCA, ADC_INTERNAL, ADC_VREF3P3);
EALLOW;
//
// Set ADCCLK divider to /4
//
AdcaRegs.ADCCTL2.bit.PRESCALE = 6;
//
// Set pulse positions to late
//
AdcaRegs.ADCCTL1.bit.INTPULSEPOS = 1;
//
// Power up the ADC and then delay for 1 ms
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX