-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LEDC: Add examples/ledc_check.c for check freq and duty (Issue report). (IDFGH-14067) #14882
Conversation
👋 Hello IhorNehrutsa, we appreciate your contribution to this project! 📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more. 🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project. Click to see more instructions ...
Review and merge process you can expect ...
|
For testing |
f2791fb
to
5f741af
Compare
Signed-off-by: IhorNehrutsa <[email protected]>
78496e1
to
dd1b892
Compare
The last set of configuration (40MHz) does have a bit error on the duty read on old targets (esp32 etc.). The issue does not exist anymore for chips since esp32c6. We are still trying to figure it out. |
FYI, we confirmed that it is a hardware issue, and there is no software workaround for it. Later, the bug details will be officially documented in our errata. |
The ledc_timer_config() does not set the right frequencies.
The ledc_channel_config() does not set the right duties.
Tested in v5.2.2 and v5.3.1
Issue report:
Freq 1, 2, 3, and 4 are wrong.
Duty on freq 80, 200, ... 5000, 10000, 40000000 are wrong.