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.

[参考译文] TMS320F28069M:如何清除 MATLAB 中的捕获事件状态标志。

Guru**** 2962990 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/786503/tms320f28069m-how-to-clear-capture-event-status-flag-in-matlab

器件型号:TMS320F28069M

我正在进行电机控制、并且能够使用 Matlab Simulink 中的捕捉模块从霍尔传感器读取速度、但当我向电机提供停止命令时、将传递最后一个捕获值以进行速度计算。 从而导致误读。  

为此、我想使用捕获中断标志或捕获事件状态寄存器、但我不知道如何将该值设为零、以便能够区分新的捕获状态。

希望有人能帮忙。