Hi Experts,
I have a 160 rpm; 4 pole; PMSM motor for my univesity project with 8192 encode
I am struggling to understand the timer period CAPCLK and UPEVENT and time period. I went to the example for 28004x for eqep, I dont understand
1) Why have they considered 10ms? are we free to choose any ? what is the criteria
In the example it considered 100Hz but in the cfg configuration, it is using 1000000 instead of 100.
2) How exactly and on what circumstances do I select CAPCLK and UPEVENT values?

Any
//If base RPM = 6000 rpm: // 6000 rpm = [(x2 - x1) / 4000] / 10ms -Equation 2 // = [(x2 - x1) / 4000] / (.01s * 1 min / 60 sec) // = [(x2 - x1) / 4000] / (1 / 6000) min // // max (x2 - x1) = 4000 counts or 1 revolution in 10 ms // // If both sides of Equation 2 are divided by 6000 rpm, then: // 1 = [(x2 - x1) / 4000] rev / [(1 / 6000) min * 6000rpm] // // Because (x2 - x1) must be < 4000 (max) for QPOSCNT increment, // (x2 - x1) / 4000 < 1 for CW rotation, and because (x2 - x1) must be >- 4000 // for QPOSCNT decrement, (x2 - x1) / 4000 > -1 for CCW rotation // // speedFR = [(x2 - x1) / 4000] / [(1 / 6000) min * 6000rpm] // = (x2 - x1) / 4000 -Equation 3 //help will be highly appreciated?

