Hi
There is a 1-kHz, ±12-V PWM signal, duty cycle 10%~53,3. This signal is scaled between 0 and 3.3 volts(for reading with adc). Also this pwm is generated by mcu with timer. I need to keep measuring the signal with or without pwm constantly.
What is the best way to read adc value? I need to read voltage with adc both edges (rising and falling edge) When pwm signal is active I need to meausere both rising and falling edge. But sametime, I need to keep measuring signal without pwm.
(its control pilot signal for ev)