Tool/software:
Hi,
I'm using ePWM1 SOCA (occurs when CTR=CMPB when counter is incrementing) to trigger a sequence of SOC0 (ACQPS = 40 SYSCLK) and SOC1 (ACQPS = 50 SYSCLK).
EOC1 triggers a CLA task in late interrupt mode and I toggle a GPIO on first instruction of CLA task.
As I want a very accurate timing, I observe ADC SOCA trigger on a GPIO via the output XBar.
My ADC is 12-bit conversion.
My CPU is running at 190MHz.
My ADC clock is running at 47.5MHz => prescale ratio 4 so t_eoc = 41 SYSCLK according to table 20-11 of TRM.
On my scope, I measure 990.8ns between ADC SOCA and the first instruction of the CLA task.
According to the datasheet, I should measure t_sh_SOC0 + t_eoc + t_sh_SOC1 + t_eoc + CLA_latency soit 40 SYSCLK + 41 SYSCLK + 50 SYSCLK + 41 SYSCLK + 4 SYSCLK = 926.3ns.
Any idea of the delta = 990.8ns - 926.3ns = 64.5ns => ~12 SYSCLK ?
Maybe, there is latency between ePWM1 SOCA pulse and the GPIO I observe due to OUTPUT XBAR ?
Thanks for yopur support,
Adrien
