Divide by 10 Clock divider

RickRac
Posts: 7
Joined: Thu Apr 29, 2021 8:10 pm

Divide by 10 Clock divider

Postby RickRac » Fri Oct 03, 2025 3:57 pm

On a ESP32-S3, I want to create a simple clock output of say 7.8 Hz.

ledcAttachChannel(1,78,12, 2); //will give me 78 Hz quite nicely.
How can I divide the clock down by 10 or even 100? This is simple for some but I am so frustrated trying things.
Thanks Rick

Who is online

Users browsing this forum: Applebot and 7 guests