ESP8266 Developer ZoneThe Official ESP8266 Forum2015-12-18T14:57:12+08:00https://bbs.espressif.com:443/feed.php?f=7&t=15262015-12-18T14:57:12+08:002015-12-18T14:57:12+08:00https://bbs.espressif.com:443/viewtopic.php?t=1526&p=5086#p5086 Could your provide your test code and logs for debugging ?
Thanks for your interest in ESP8266 !
Statistics: Posted by ESP_Faye — Fri Dec 18, 2015 2:57 pm
]]>2015-12-15T07:32:14+08:002015-12-15T07:32:14+08:00https://bbs.espressif.com:443/viewtopic.php?t=1526&p=5048#p5048 From internet, it is said that it takes 45-50us to convert ADC to value: http://www.esp8266.com/viewtopic.php?f=13&t=800&start=16
Also checked, system_adc_read() (+ system_get_time()) takes about between 110 and 180us to read (using system_get_time()).
If I set "repeating" timer 1ms to read ADC value, WiFi softAP stops retreiving connections (I believe processor becomes too busy doing ADC stuff?). After some testing, minimum 10ms timer is needed for ADC to allow WiFi "breathing".
If I use non repeating timer, then app is working, properly, only ADC performance is not near 45-50us .
Is there any routine that would enable better performance of ADC or is there a bug that prevents faster reading of ADC?
Statistics: Posted by FrenkR — Tue Dec 15, 2015 7:32 am