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.
Hi,
My customer use eCAP to capture PWM wave. To count when switch between high and low level to know the time on high and low voltage. It is used to
calculate PWM frequency and duty cycle.
Read value periodically. We find the value is "0" sometimes during low voltage. But no this issue during high voltage.
The count should be some number, but why it's zero during low voltage?
Nothing unusual on waveform.
Count is zero during low voltage.
Hi Nirav
The green wave is the PWM waveform that fed to eCAP.
Use two eCap to capture the same one PWM. As you see on below picture, there are no "zero" count value at High_Level_ecap2 and High_Level_ecap register.
But it has "zero" value happened on Low_Level_ecap and Low_Level_ecap2. Even we changed PWM duty cycle to recount.
There is a important finding that it have above issue if load the motor. If unloaded motor, just use eCAP to count PWM waveform, it hasn't this issue.
Hi Nirav,
Yes, your understanding is correct.
Let's continue the topic on email to protect customer code. Thanks.
Thanks Nirav,
We will test it and give you feedback soon.
To set CPxQSEL register?
Hi Nirav,
Many thanks for your help.
There's no problem after running one day at room temperature. We are continue testing it at low temperature now.