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.

drv8312相电流采样的ADCRESULT与电流实际值的运算关系

Other Parts Discussed in Thread: DRV8312

drv8312相电流采样的ADCRESULT与电流实际值的运算关系

  • // ------------------------------------------------------------------------------
    // 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

    #ifdef DSP2803x_DEVICE_H
    clarke1.As=-(_IQ15toIQ((AdcResult.ADCRESULT1<<3)-cal_offset_A)<<1);
    clarke1.Bs=-(_IQ15toIQ((AdcResult.ADCRESULT2<<3)-cal_offset_B)<<1);
    #endif
  • 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计算吗?
  • 我是求实际值,你说的这个是标幺值
  • 已经ok了,求得输入输出关系式如下,Uout = 19.0542406*Uin+1.659777,之前有人问过这个问题,你们一直没有理会,麻烦你们再确认一下,计算结果对不对e2echina.ti.com/.../556940
  • current = (3.3/4096*ADRESULT-1.65977)/19.0542406/0.01
x 出现错误。请重试或与管理员联系。