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.

moto ware proj-lab01 的ad采样

Other Parts Discussed in Thread: MOTORWARE

请讲解一下 moto ware proj-lab01 中ad是如何采样的?   pwm的中心触发ad采样,是一下子采样完 7路吗?仿真时dcbus的ad值怎么一直在变? 如果我在主程序中查询另外一路ad,程序如何写了?

  • motorware 中,默认是配置是在PWM计数器等于零点触发7路AD采样,ADC配置在drv.c的DRV_setupAdcs(DRV_Handle handle)函数中。

    dcbus值为IQ24,这个值肯定是否点变化的,因为每次采样的值有很小的偏差,请问楼主变化范围有多大?

    母线是否稳定?读ADC的话,可以参考drv.h中下面函数做法:

    DRV_readAdcData(DRV_Handle handle,DRV_AdcData_t *pAdcData)。