-->
Page 1 of 1

esp8266 interrupts

PostPosted: Sat Jun 11, 2016 8:00 am
by berkutta
Hi,

Working currently on a DS18B20 implementation on the Espressif SDK. Have the issues that I don't get consistent values. I think the issue is that my things wouldn't get executed in the correct time. Reading the DS18B20 is timing critictal.

So somebody knows how I can temporarily disable everything other? Like the nointerrupt on Arduino?

Benjamin

Re: esp8266 interrupts

PostPosted: Sat Jun 11, 2016 8:06 am
by xtal
I've used the DS18b20 once and had no issues. You may be using an old library for the DS18b20..
You should show your includes and code for others to see and possibly help :mrgreen:

Re: esp8266 interrupts

PostPosted: Sat Jun 11, 2016 10:41 am
by berkutta
Got it working now. Have swapped accidentally the upper 4 bytes with each other, so I got non consistent false readings. Fixed that and it works now. Have added additionaly a interrupt deactivation with those commands:

Code: Select allets_intr_lock();
and
Code: Select allets_intr_unlock();