2026-06-07 12:26 AM - edited 2026-06-07 12:28 AM
I have a requirement from customer to read the mains input voltage (down converted to 3.3V) which is 50Hz using ADC and identify the phase delay between the input and after the ADC reading(Ideally it shall be 0 requirement). How to demonstrate? I am using STM32G474RET6. Please guide.
Edit: I am trying to trigger ADC sample at every 20KHz PWM signal.
2026-06-07 1:39 AM - edited 2026-06-07 3:06 AM
Zero delay is impossible, the ADC needs 0,25us to convert, so at 50 Hz about 0,0045°.
2026-06-07 2:30 AM
Only for re confirmation i get the below values
0.0045 and 0.02 Degrees i get a factor 0.1 less, can you please confirm if i am making any mistake?
2026-06-07 3:06 AM
I just used online calculator...
1us -> 0,02° ....and wrote one zero too few... :)
Your right.
(corrected now.)
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.