Part Number: LAUNCHXL-F2800137
My setup:
- SYSCLK = 120 MHz
- 1 eCAP count = 8.33 ns
- Input PWM ON time = 1200 µs
Observed behavior:
- When using external clock, the captured count converts correctly to 1200 µs
- When using internal clock, the captured count converts to 1210 µs
Calculation:
Expected count:
1200 us / 8.33 ns = 144000 counts
But internal clock measurement shows about:
145200 counts
This gives about 10 µs error.
My question:
Can someone explain why this happens?
Does anyone have a solution to measure accurate PWM ON time using the internal eCAP clock?