Any Timer input capture available ?
Posted: Sun Jan 26, 2020 2:43 pm
Hi all,
I'm trying to use a temperature sensor (SMT172 from Smartec) that uses the duty ratio of a PWM signal to give the temperature.
Hence my need to precisely measure rising/falling times of a pin.
If i was using another "normal" MCU, I'd go for using a timer's input capture to get the timing but I could not find anything on this for ESP8266...
Would anyone be able to confirm that there is no such feature on this chip ??
Note : I tried using an interrupt handler to capture the cycle count for every change, but it works only 95% of the time ; 5% I have abnormal readouts (due to other interrupts I guess).
Is there any way to raise the GPIO priority above all other interrupts ?
Thanks for your time.
David
I'm trying to use a temperature sensor (SMT172 from Smartec) that uses the duty ratio of a PWM signal to give the temperature.
Hence my need to precisely measure rising/falling times of a pin.
If i was using another "normal" MCU, I'd go for using a timer's input capture to get the timing but I could not find anything on this for ESP8266...
Would anyone be able to confirm that there is no such feature on this chip ??
Note : I tried using an interrupt handler to capture the cycle count for every change, but it works only 95% of the time ; 5% I have abnormal readouts (due to other interrupts I guess).
Is there any way to raise the GPIO priority above all other interrupts ?
Thanks for your time.
David