Tool/software: Code Composer Studio
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.
Tool/software: Code Composer Studio
Mohsin,
you have linked the correct documentation page. Looking at that page it does seem like TS should be the correct output to observe.
How have you configured the eCAP?
I would suggest looking how this example sets up the eCAP and working from there. https://www.mathworks.com/help/supportpkg/texasinstrumentsc2000/ug/permanent-magnet-synchronous-motor-field-oriented-control.html
Regards,
Cody
Hello Cody,
Since I am using the eCAP simulink block. I have set the operating mode to eCAP and you can see the settings of block in the images below:
I want for the signal that is high the value stores in Capture event 1 and for low time the counter value stores in event 2 and it remains continuous.
Regards,
Mohsin
Mohsin,
i tried building an example and had the same issue as you. My scope wouldn't display the desired value. Additionally, when looking at the diagnostics window I had a warning about code size.
To correct this error I changed my parameter behavior to inline.
As soon as I did that the warning went away and the scope started working as expected.
This is about the extent of my knowledge in Simulink software, if this doesn't help i would suggest that you contact Mathworks support.
Regards,
Cody