LEDC PWM Synchronization

Ichoravor
Posts: 2
Joined: Wed May 18, 2022 7:19 pm

LEDC PWM Synchronization

Postby Ichoravor » Thu May 19, 2022 4:58 pm

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.

ESP_morris
Posts: 290
Joined: Wed Sep 05, 2018 6:23 am

Re: LEDC PWM Synchronization

Postby ESP_morris » Fri May 20, 2022 4:28 am


cuoconet
Posts: 1
Joined: Fri Aug 16, 2024 2:13 am

Re: LEDC PWM Synchronization

Postby cuoconet » Fri Aug 16, 2024 2:18 am


Who is online

Users browsing this forum: No registered users and 153 guests