Simulink eQEP block for frequency calculation with F28069 MCU
1 次查看(过去 30 天)
显示 更早的评论
Hi,
I'm using eQEP block to read the frequency input of a signal and having some difficulties. Here are the Simulink settings for eQEP block:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/434253/image.jpeg)
I'm reading Position Counter (QPOSCNT) and here is the logic to calculate the frequency:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/434258/image.jpeg)
It reads the frequency of input signal correctly when it's above ~200Hz and for any value smaller than 200Hz the reading is not accurate. For values below 20Hz it's totally off. Any help would be appreciated.
Thanks,
--Kash
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!