Hi,
I'm testing the ledc example.
https://github.com/espressif/esp-idf/tr ... erals/ledc
In my environment, when I set LEDC_TEST_DUTY to a higher value than 300, it works well.
However when I set LEDC_TEST_DUTY to a value less than 200, the example doesn't output high.
Is there any hardware limitation or software issue?
What I changed from original code is:
---
#define LEDC_HS_CH0_GPIO (32)
#define LEDC_LS_CH2_GPIO (23)
#define LEDC_LS_CH3_GPIO (33)
#define LEDC_TEST_DUTY (200)
#define LEDC_TEST_FADE_TIME (1000)
.duty_resolution = LEDC_TIMER_11_BIT, // resolution of PWM duty
.freq_hz = 30000, // frequency of PWM signal
---
The monitor doesn't show any error like ""requested frequency and duty resolution can not be achieved" in this setting.
Thank you.
ledc doesn't output high when duty is small value
Who is online
Users browsing this forum: axellin and 113 guests