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: How to Clear capture event status Flag in MATLAB.

Part Number: TMS320F28069M


I am working on motor control and i am able to read the speed from the Hall sensor using the Capture module in Matlab-Simulink, But when I give stop command to the motor, the last capture value is passed on for my speed calculation. and hence giving a false reading. 

For this, I am thinking to use either capture interrupt flag or capture event status register, But I adon't know how to make this value zero so that I can differentiate between fresh capture status.

Hope Somebody can help.