I'm using the pi 3a+ pwm to send sync informations to my music gear. When I stop the pwm, I don't use the pwm.stop(), but rather set the duty cycle to 0. This is because I run the pww from a different process, and can't stop() otherwise when I start again the frequency bugs (I think it's a known issue with GPIO from different process)
The issue is that when I restart, setting the duty cycle back to normal (50 in my case) the pwm signal doesn't go directly to HIGH, it finished the previous cycle (with the duty cycle of 0). This leads to sync errors with my music gear.
Any idea how I could fix that ? I've tried changing the frequency to something very high just before reseting the duty cycle to normal but didn't work