MATLAB: I am using C2000 TMS320F28379D board with Matlab. I am not clear in using ePWM and eQEP blocks with Matlab. In case of ePWM, how can I set exact duty cycle and the frequency that we need?. And in the eQEP how should I use that for speed reading

c2000 blocksetepwm

If anyone has used this, please help me.

Best Answer

Checkout the example 'c2807x_2837xx_adcpwmasynctest_ert.slx' from the support package for ePWM use case. For eQEP the example 'c28335pmsmfoc_ert' has an example of decoding the rotor position using eQEP module.
Related Question