Is there a way with the S12G128 to sync or trigger an ADC sample & conversion from the start of the PWM period?
PWM Frequence is 20k
I use HalfBridge to control a brush DC by PWM and need measure the current ,the current sense is a square wave(20k) .
Is there a clever way to solve the problem ? it is too late for me to change the chip.