ledc doesn't output high when duty is small value

KAZ32i
Posts: 1
Joined: Thu Jan 11, 2018 11:09 pm

ledc doesn't output high when duty is small value

Postby KAZ32i » Thu Jan 11, 2018 11:39 pm

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.

Who is online

Users browsing this forum: Baidu [Spider] and 132 guests