Question 1:
What's the min frequency of LEDC PWM?
I tried with ledc example in IDF 4.4.2 and modified the number.
The allowed min number of freq_hz was 10.
But why isn't the min frequency 40MHz/(2^10+1)/(2^14)=2.38Hz ? (chapter 30.3.2.3 of technical reference)
And if we use RTC 8MHz as timer clock, 8MHz/(2^10+1)/(2^14)=0.47Hz
Am I getting the technical reference wrong?
Problem 2:
If I set freq_hz=10 (the lowest allowed value),
I can see the LED blinks at a frequency much lower than 10Hz.
Problem 3:
Get watchdog error if set freq_hz=10. No error when freq_hz high.
Code: Select all
E (10265) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (10265) task_wdt: - IDLE (CPU 0)
E (10265) task_wdt: Tasks currently running:
E (10265) task_wdt: CPU 0: main
E (15265) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (15265) task_wdt: - IDLE (CPU 0)
E (15265) task_wdt: Tasks currently running:
E (15265) task_wdt: CPU 0: main
E (20265) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (20265) task_wdt: - IDLE (CPU 0)
E (20265) task_wdt: Tasks currently running:
E (20265) task_wdt: CPU 0: main