ESP8266 Developer Zone The Official ESP8266 Forum 2015-07-07T17:35:50+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=682 2015-07-07T17:35:50+08:00 2015-07-07T17:35:50+08:00 https://bbs.espressif.com:443/viewtopic.php?t=682&p=2548#p2548 <![CDATA[Re: confused with the value of system_adc_read]]>
Harold L. wrote:
I'm using a 3.3v VDD to power up 8266, and expect system_adc_read() returns 0~1023 mapped to 0~1v as the document says, and it works perfectly until I write esp_init_default.bin to the flash.

before flash esp_init_default.bin, the content of 0x1FC000 was filled with 0xff, and all the things worked perfectly.

after flash esp_init_default.bin, strange things happen: system_adc_read() always returns 1023

Should I write esp_init_default.bin to our new product?


1. If the flash data of the init.bin address is filled with 0xff, CHIP will use the default value inside.
2. to use the ADC function( instead of READ VDD33), you need to set the byte[107] to the real input voltage.
eg. Set the byte[107] to 0x22(34) if the practical input voltage is 3.4v.
Find details in programming guide COMPARING WITH system_get_vdd33 function.

Statistics: Posted by costaud — Tue Jul 07, 2015 5:35 pm


]]>
2015-07-03T23:25:20+08:00 2015-07-03T23:25:20+08:00 https://bbs.espressif.com:443/viewtopic.php?t=682&p=2485#p2485 <![CDATA[confused with the value of system_adc_read]]> until I write esp_init_default.bin to the flash.

before flash esp_init_default.bin, the content of 0x1FC000 was filled with 0xff, and all the things worked perfectly.

after flash esp_init_default.bin, strange things happen: system_adc_read() always returns 1023

Should I write esp_init_default.bin to our new product?

Statistics: Posted by Harold L. — Fri Jul 03, 2015 11:25 pm


]]>