Page 1 of 1

LEDC PWM Synchronization

Posted: Thu May 19, 2022 4:58 pm
by Ichoravor
Hello,

I've been using the LEDC peripheral of the ESP32-C3 device to produce PWM signals, I've been successful at creating the signals I want with respect to the frequencies and I've been happy with the stability of the signals being produced. However, the phases of the signals relative to each other are never aligned, which is not the result I would like. I've tried playing with the settings and even directly accessing the timer_group and channel_group settings as is done in the ledc.c file but I haven't been able to find a way to produce a synchronized result between the different outputs. I was hoping that someone might know of an approach that would allow me to synchronize the start of the signals as I'm trying to use the chip to produce clock signals that need to be properly aligned among themselves.

Thanks for your help.

Re: LEDC PWM Synchronization

Posted: Fri May 20, 2022 4:28 am
by ESP_morris

Re: LEDC PWM Synchronization

Posted: Fri Aug 16, 2024 2:18 am
by cuoconet