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.
// ------------------------------------------------------------------------------
// Measure phase currents, subtract the offset and normalize from (-0.5,+0.5) to (-1,+1).
// Connect inputs of the CLARKE module and call the clarke transformation macro
// ------------------------------------------------------------------------------
#ifdef F2806x_DEVICE_H
clarke1.As=-(((AdcResult.ADCRESULT0)*0.00024414-cal_offset_A)*2); // Phase A curr.
clarke1.Bs=-(((AdcResult.ADCRESULT1)*0.00024414-cal_offset_B)*2); // Phase B curr.
#endif // ((ADCmeas(q12)/2^12)-0.5)*2
F28069的ADC采样值计算公式是:
Digital Value = 0 when Input ≤ 0v
Digital Value = 4096 [(Input – VREFLO)/3.3v] when 0v < Input < 3.3v
Digital Value = 4095, when Input ≥ 3.3v
在芯片技术手册532页有说明。你有具体到某个例程的ADC计算吗?