cancel
Showing results for 
Search instead for 
Did you mean: 

ADC reading without phase delay

STuser2
Senior III

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.

3 REPLIES 3
AScha.3
Super User

Zero delay is impossible, the ADC needs 0,25us to convert, so at 50 Hz about 0,0045°.

To "prove" ds is correct, maybe : read ADC and write data direct to DAC , to view output with scope.
But this will add about 1us for data handling , DAC conversion time and settling.
So should show about 0,02° at 50 Hz .
btw
Show this on a dual trace scope, 50Hz -> 20ms, at 2ms/div setting you can see no delay , because 2us delay would show as 0,01mm on screen...not visible. So you can show: no delay (visible). :)
If you feel a post has answered your question, please click "Accept as Solution".

Only for re confirmation i get the below values

STuser2_0-1780824550230.png

0.0045 and 0.02 Degrees  i get a factor 0.1 less, can you please confirm if i am making any mistake?

I just used online calculator...

AScha3_0-1780826551478.png

1us -> 0,02° ....and wrote one zero too few... :)  

Your right.

(corrected now.)

If you feel a post has answered your question, please click "Accept as Solution".