Part Number: TMS320F280025
Other Parts Discussed in Thread: TMS320F28379D,
We need very precise measurement of a frequency measurement using eCAP module of TMS320F280025. I have discussed my initial findings regarding some offset error in the original thread where I noticed that my frequency measurement appear to have around 2 usec offset from the 50 Hz signal generator. Frank Ankapong suggested that I generate a 50 Hz PWM from the DSP itself and measure its frequency. I have done this and found that the measurement is very accurate i.e. 2000000 counter value or 20.00000 msec. From this observation I understand that the eCap is setup correctly for measurement. Assuming that the function generator could have some offset (around 2.2 uSec), I did one more experiment: I programmed a Delfino (TMS320F28379D) launchpad for 50 Hz PWM. When I do its measurement with the TMS320F280025 we again see an error of about 2.4 uSec (as compared to 2.2 uSec with function generator). I have captured the 50 Hz PWMs generated from the TMS320F280025C (Channel 1) and TMS320F28379D (Channel 2) using digital logic analyzer and below is the screenshot.
So I am getting more than 2 uSec measurement error in the frequency measurement for both the function generator as well as Delfino. The magnitude is also comparable. There seems to be a common source of error. Kindly guide on this and recommend if there is some method to improve the frequency measurement accuracy. Kindly also note that we are shifting our design to Delfino so if there is some better option in this controller then please let me know.