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.

关于instaspin foc 中的例程

Other Parts Discussed in Thread: DRV8305

labs中的USER_ADC_FULL_SCALE_CURRENT_A参数给的是47.14,这个值是按照电流增益放大倍数为10来的

但是我在8305.c中函数DRV8305_setupSpi中看到他定义的值

Spi_8305_Vars->Ctrl_Reg_0A.GAIN_CS1 = (DRV8305_CTRL0A_CSGain1_e)(drvDataNew & (uint16_t)DRV8305_CTRL0A_GAIN_CS1_BITS);
Spi_8305_Vars->Ctrl_Reg_0A.GAIN_CS2 = (DRV8305_CTRL0A_CSGain2_e)(drvDataNew & (uint16_t)DRV8305_CTRL0A_GAIN_CS2_BITS);
Spi_8305_Vars->Ctrl_Reg_0A.GAIN_CS3 = (DRV8305_CTRL0A_CSGain3_e)(drvDataNew & (uint16_t)DRV8305_CTRL0A_GAIN_CS3_BITS);

如果不是我理解错了 这个给出来的增益应该是80倍的,这个具体应该怎么理解呢?还是说增益倍数并不是在这个地方设置的?、

这个ADC量程电流应该是要按照电流增益来计算,那具体定义的地方在哪里呢?