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.
在开发 TMS320F28069的 eCAP 功能时,遇到了一个问题;在相关文档中找不到解释,这导致问题持续存在;
如所附文件所示,ECAPx 引脚(来自 GPIO)--输入脉冲--后预调器(例如,预调器(计数器)的值为10)-- PSout 每10个脉冲增加1个;
也就是说:ECAPx 引脚(来自 GPIO)--每10个输入脉冲数-- ECAPx 的寄存器值增加1;
下面是问题:
如果最后一次,ECAPx 引脚(来自 GPIO)——输入脉冲数为16——ECAPx 的寄存器值增加1;
下次重新启动计数时,ECAPx 引脚(来自 GPIO)——输入脉冲数为4——ECAPx 的寄存器值增加1;
它通常是正确的;
但是,当我启动新的脉冲捕获(ECAP)时,我可以将先前脉冲捕获(ECAP)的---prescaler(counter)残余脉冲计数器值清除为零;
但我没有找到——怎么能——