← index #6945PR #3633
Related · medium · value 4.102
QUERY · ISSUE

ESP8266: PWM glitches when doing DHT measure

openby EddieParisopened 2021-02-21updated 2022-03-30
port-esp8266

When using a PWM channel in parallel of a DHT measure, there can be some glitches on the PWM channel at the measure time. This is because the DHT drivers locks interrupts for accurate protocol timing handling, and the PWM driver relies on these interrupts.

CANDIDATE · PULL REQUEST

ESP8266: Always run pwm timer to avoid glitches from full pwm to any …

closedby EddieParisopened 2018-02-23updated 2018-03-05

proposed resolution of #3631

Was simpler that I thought, just always run the timer even if no "active" PWM (non 0 or non full) is present. The glitch after full PWM disapeared, no cross effect on other channel introduced.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied