Search found 2 matches

by mark
Fri Mar 27, 2020 12:38 am
Forum: ESP8266 boards
Topic: ESP8266 microsecond timer missing, what can I do?
Replies: 3
Views: 2303

Re: ESP8266 microsecond timer missing, what can I do?

jimmo wrote:
Thu Mar 26, 2020 11:43 pm
Could you use PWM instead?
what I am trying to do actually is pwm (even the dimmer module pin is called that). I am guessing you are refering to the PWM module and as far as I know this one does not support zero cross detection. Please expand a bit what you mean. Thanks
by mark
Thu Mar 26, 2020 4:46 pm
Forum: ESP8266 boards
Topic: ESP8266 microsecond timer missing, what can I do?
Replies: 3
Views: 2303

ESP8266 microsecond timer missing, what can I do?

I am new to micropython and I noticed that the ESP8266 port sadly does not provide timer interrupts with microsecond precision. As I workaround I tried to use sleep_us inside the zero_cross isr but it did not work (obviously using sleeps in isr is not a good idea). What would be the best strategy fo...