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.
Hello,
i've got some problems with speed measuring via eQEP and eCAP units.
The is no problem with typical use of the peripherals, but i'm using dynamical prescale changing.
Everytime I change the prescaler, the is a peak that results to incorrect measurement.
I've tried to study this event at eCAP unit and I think there is a problem which cause to generate EVT1 interrupt in incorrect time,
so the counter value is wrong.
Can you please give me some advice how to use dynamical prescaler changing at eCAP unit or tell me if there are some problems which should be treated?
BR
Jan
Hi Wang,
i've got one point to QCAPCTL[CPPS] - if I can change dynamically VCLK3 prescaler only when the capture unit is disabled,
i can't be called dynamicall changing yet. I need speed measuring every moment but when i disable the unit i can loose some
values for controlling.
Jan
Hi Wang,
thank you for your response. I have decided to use eCAP unit for evaluation of speed because of 32-bit counters.
The dynamical changing of range seems to be okay.
At eQEP unit i have problems with untreated overflowing of 16-bit CAP counter.
Jan