Fix math: 8192 = 2 ** 13

Merges https://github.com/espressif/esp-idf/pull/3133
pull/3236/head
Dan 2019-03-06 11:12:23 +01:00 zatwierdzone przez krzychb
rodzic 69b58f1e9c
commit eb83924e95
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -139,7 +139,7 @@ For additional details regarding speed modes please refer to `ESP32 Technical Re
Supported Range of Frequency and Duty Resolution Supported Range of Frequency and Duty Resolution
------------------------------------------------ ------------------------------------------------
The LED PWM Controller is designed primarily to drive LEDs and provides wide resolution of PWM duty settings. For instance for the PWM frequency at 5 kHz, the maximum duty resolution is 13 bits. It means that the duty may be set anywhere from 0 to 100% with resolution of ~0.012% (13 ** 2 = 8192 discrete levels of the LED intensity). The LED PWM Controller is designed primarily to drive LEDs and provides wide resolution of PWM duty settings. For instance for the PWM frequency at 5 kHz, the maximum duty resolution is 13 bits. It means that the duty may be set anywhere from 0 to 100% with resolution of ~0.012% (2 ** 13 = 8192 discrete levels of the LED intensity).
The LEDC may be used for providing signals at much higher frequencies to clock other devices, e.g. a digital camera module. In such a case the maximum available frequency is 40 MHz with duty resolution of 1 bit. This means that duty is fixed at 50% and cannot be adjusted. The LEDC may be used for providing signals at much higher frequencies to clock other devices, e.g. a digital camera module. In such a case the maximum available frequency is 40 MHz with duty resolution of 1 bit. This means that duty is fixed at 50% and cannot be adjusted.