TMS320F28P650DK: Sync ADC sampling with ECAP1 ISR2

Part Number: TMS320F28P650DK
Other Parts Discussed in Thread: TIDM-02013

Hello,

We're developing a battery charging application based on the TIDM921 / TIDM-02013.

We need to make some changes to both the board and the firmware.

Checking the firmware, we noticed that the current management routine CLLLC_runISR2_primToSecPowerFlow reads the current/voltage values ​​via the routine CLLLC_readSensedSignalsPrimToSecPowerFlow.

This might not be a serious issue, but I expected ISR2 to be synchronous with its ADC sampling of the corresponding values, which isn't the case.

ISR is synchronous with ECAP1, the ADC sampling is synchronous with EPWM1/5/6/7, not with ECAP1.

Am I missing something?

Could this cause errors in the control loop?

Best regards,

Michele Santucci