Dear TI community,
I am using an eCAP module to observe and check the generated signal of an ePWM module via the X-BAR. (example ecap_ex2_capture_pwm.c as basis)
After setting everything up (4 capture events to observe the PWM characteristic, counter reset on event enabled) and enabling the interrupt, I am stumbling over the following problem:
- first interrupt: event time stamp of ECAP_EVENT_1 is 15214 where all others (2-4) are all equal 8003 (as expected having a period count of 2000)
- following interrupts: event time stamp of ECAP_EVENT_1 is between 8000-8006 where all others (2-4) are still all equal 8003 (as expected)
It seems that the timestamp value of the first interrupt drifts a lot after initialization and setup.
But why is it also unconsistent after the first cycle and for all following cycles regarding capture event 1 when all other events (2-4) are still consistently 8003?
What is the expected maximum shift of the value of the first event?
Thanks in advance!