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.
请问TMS320F28035中AdcOffsetSelfCal()应该放在main程序中的什么位置?
用在InitAdc(void)之后?
或者用在main之前?Make sure you run the AdcOffsetSelfCal() function after the DeviceCal() function and not before.
AdcOffsetSelfCal()就是偏置校准的方法,也可以周期性校准,只要你把这个函数放在一个周期性函数中即可。
至于偏置校准则需要额外输入一个基准电压,如1.65V,然后通过两个具体的电压值,算出公式中的a,和b, Y=aX+b, X为输入电压,Y为采样结果寄存器的值。
初始化完ADC后,调用void AdcOffsetSelfCal()进行偏置校准。