I am trying to measure the speed of motor using ECAP module of TI in matlab. I am able to measure frequency of PWM signal which I am generating though my board itself. But when I apply speed sensor signal, the module is not able to measure the frequency of applied speed signal.
I have made different logic for edge and then frequency detection and that logic is giving me good results. But still I believe those results are not accurate enough for me and I want to measure signal frequency through ECAP only.
Can anyone help me to trace out where the problem would be?
Environment details:
Controller: TMS320F28335
Code generation through MATLAB-Embedded Coder-CCS
IDE- CCS3.3