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?
confused with the value of system_adc_read
Re: confused with the value of system_adc_read
Postby costaud » Tue Jul 07, 2015 5:35 pm
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.
Who is online
Users browsing this forum: No registered users and 93 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.