yfgww 发表于 2012-10-9 17:16:39

关于AVR194的BLDC电流闭环控制程序


U16 mci_get_measured_current(void)
{
return mci_measured_current/64;
}

/**
* @brief Set the variable 'mc_measured_current' for initialization.
* @pre none
* @post 'mc_measured_current' set with the current value
*/
void mci_store_measured_current(U16 current)
{
mci_measured_current = ((63*mci_measured_current)+(64*current))>>6;
}

请问看过AVR194的指点下,mci_measured_current 为什么需要这些换算?

无刷电机的电流闭环采样,AD采样的是电机电流的即时值,需要转换为有效值吗? 主要是不是很理解AD电流采样的原理。请大侠们解惑呀
页: [1]
查看完整版本: 关于AVR194的BLDC电流闭环控制程序