2023-06-05 06:56 AM
Is there a zero crossing detector inside the stm32 itself?
I am using a stm32f334R8
Solved! Go to Solution.
2023-06-05 07:04 AM
Well, the STM32F334 may only process voltages between 0...VDD, for 5V-tolerant GPIOs also 5V signals under consideration of special instructions.
A real zero crossing detection is only possible if you shift the signal to be detected by an offset and use it to feed one of the three included comparators, for example. Alternatively, you can also do the zero crossing detection externally and feed it in digitally.
Does it answer your question?
Regards
/Peter
2023-06-05 07:04 AM
Well, the STM32F334 may only process voltages between 0...VDD, for 5V-tolerant GPIOs also 5V signals under consideration of special instructions.
A real zero crossing detection is only possible if you shift the signal to be detected by an offset and use it to feed one of the three included comparators, for example. Alternatively, you can also do the zero crossing detection externally and feed it in digitally.
Does it answer your question?
Regards
/Peter
2023-06-05 07:15 AM
Yeah very useful
Actually i want impelement a pll. By finding the phase shift between the pwm signal and the output of current transformer(ct) that i put on the output of my inverter.
Do you have any idea how can i find the phase shift just using ct signal?
Without measring voltage.
2023-06-05 07:28 AM
Well, it should be no problem to measure the PWM with a timer (frequency, possibly also duty cycle) and then measure the time shift of the CT signal. The phase shift can then be calculated from the time shift relative to the PWM frequency.
Regards
/Peter
2023-06-05 07:31 AM
Thank you so much
Is the any documentation i can use for implementing zero crossing detection?
2023-06-05 07:36 AM
Zero crossing detection is a basic function, but can be realised in different ways depending on requirements and electrical conditions.
Your favourite seach engine should find plenty of suggestions with "zero crossing detection".
Regards
/Peter