2025-02-17 06:40 AM - edited 2025-02-17 06:43 AM
Im building some phase shifting control sensing for a Dual Active Bridge.
Im using TIMA and TIMD (shown in pictures) in retrigerable single mode, both signals are triggered by sepparate CR from the master timer. https://community.st.com/t5/stm32-mcus-products/synching-hrtim-s-tima-and-timb/td-p/770972
Im trying to trigger ADC measurements only on the high side of the PWM but im getting low side aswel.
:( , i dont want those 0s there
Is there any way of using PWM in centered mode and also just triggering ADC measurements in high PWM period?
Solved! Go to Solution.
2025-02-18 01:27 AM - edited 2025-02-18 01:28 AM
I managed, I just setup extra CR3 in TIMERA dedicated exclusively to trigger ADCs, then CR3 setup == timer period
that way i get the ADC measurements exactly where i want them , fitting well with the phase shift modulation.
2025-02-17 08:08 AM
if i do ADC sampling just when master timer updates i loose the center of the PWM cycle when doind the phase shifting
2025-02-18 01:27 AM - edited 2025-02-18 01:28 AM
I managed, I just setup extra CR3 in TIMERA dedicated exclusively to trigger ADCs, then CR3 setup == timer period
that way i get the ADC measurements exactly where i want them , fitting well with the phase shift modulation.