ESP8266: Difference between revisions

Tags: Mobile edit Mobile web edit
Tags: Mobile edit Mobile web edit
 
Line 25: Line 25:
|-
|-
|}
|}
The minimum PWM resolution is 45ns (an approximate PWM clock of 22.72MHz), supporting 14 bits of PWM resolution at 1KHz. Active PWM prevents the system from entering Deep Sleep mode, and entering Light Sleep will disrupt PWM.
Unfortunately, the Espressif-provided PWM API only supports frequencies up to 1KHz. Libraries such as [https://github.com/StefanBruens/ESP8266_new_pwm ESP8266_new_pwm] can exceed these limitations. It ought be possible to achieve 7-bit PWM at the 25KHz required for [[PC Fans|pc fans]].


===ADC===
===ADC===