Part Number: TMS320F28379D
Hi champs,
customer wants to configure eCAP unit 1 as APWM.
His board runs at 10MHz, internal 200 MHz, PWM is routed to GPIO28 via C-Bar.
It seems to run as expected, but PWM frequency is slightly different to what is expected,
Period is calculated PRD = PeripheralClock / Frequenz
1) aimed frequeny: 131,25 kHz
200000000 / 131250 = 1523,80952…
We set period value to 1523, which calculated backwards gives frequency : 200000000/1523 = 131,319 kHz
Measured with Osci on pin 131,246 kHz
2) Setting period to 1524, calced backwards frequency 200000000/1524 = 131,233 kHz
Measured on Oszi on Pin 131,160 kHz
3) Setting period to 1525, calced backward freq: 200000000/1525 = 131,147 kHz
Measured at Pin 131,074 kHz
So we see a systematic deviation between measuremnt and calced value of 73 Hz!
Q: is this a systematic, understanding or tolerance related error ?
Because customer is using an scope to measure frequency, which is probably not exact enough, I asked him to use a frequency counter instead to validate his observings.
Any explanation ?