From 432385604cd0616084429be771d77d56b0ac236c Mon Sep 17 00:00:00 2001 From: Testato Date: Wed, 24 Jun 2015 22:32:59 +0200 Subject: [PATCH 1/5] Update core_esp8266_phy.c added vdd33_const explanation from official Espressif documentation --- cores/esp8266/core_esp8266_phy.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/cores/esp8266/core_esp8266_phy.c b/cores/esp8266/core_esp8266_phy.c index 2ac33a8a6..8a3c0ccf8 100644 --- a/cores/esp8266/core_esp8266_phy.c +++ b/cores/esp8266/core_esp8266_phy.c @@ -195,12 +195,18 @@ static uint8_t phy_init_data[128] = // 5.5m, 11m power index [0~5] [98] = 0, + // vdd33_const - // the voltage of PA_VDD - // x=0xff: it can measure VDD33, - // 18<=x<=36: use input voltage, - // the value is voltage*10, 33 is 3.3V, 30 is 3.0V, - // x<18 or x>36: default voltage is 3.3V + // the value of this byte depend from the TOUT pin usage (1 or 2): + // 1) + // analogRead function (system_adc_read()): + // is only available when wire TOUT pin17 to external circuitry, Input Voltage Range restricted to 0 ~ 1.0V. + // For this function the vdd33_const must be set as real power voltage of VDD3P3 pin 3 and 4 + // The range of operating voltage of ESP8266 is 1.8V~3.6V,the unit of vdd33_const is 0.1V,so effective value range of vdd33_const is [18,36] + // 2) + // getVcc function (system_get_vdd33): + // is only available when TOUT pin17 is suspended (floating), this function measure the power voltage of VDD3P3 pin 3 and 4 + // For this function the vdd33_const must be set as 255. [107] = 33, // disable RF calibration for certain number of times From 61f800ec1452cd115be1d94ddf1c59e73143208a Mon Sep 17 00:00:00 2001 From: Testato Date: Thu, 25 Jun 2015 11:33:34 +0200 Subject: [PATCH 2/5] Update core_esp8266_phy.c --- cores/esp8266/core_esp8266_phy.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cores/esp8266/core_esp8266_phy.c b/cores/esp8266/core_esp8266_phy.c index 8a3c0ccf8..130c5e36d 100644 --- a/cores/esp8266/core_esp8266_phy.c +++ b/cores/esp8266/core_esp8266_phy.c @@ -197,6 +197,12 @@ static uint8_t phy_init_data[128] = // vdd33_const + // the voltage of PA_VDD + // x=0xff: it can measure VDD33, + // 18<=x<=36: use input voltage, + // the value is voltage*10, 33 is 3.3V, 30 is 3.0V, + // x<18 or x>36: default voltage is 3.3V + // // the value of this byte depend from the TOUT pin usage (1 or 2): // 1) // analogRead function (system_adc_read()): From cd5228f7c2b89a0648bdeafee60b9c4678a84013 Mon Sep 17 00:00:00 2001 From: Testato Date: Thu, 25 Jun 2015 11:34:53 +0200 Subject: [PATCH 3/5] Update core_esp8266_phy.c --- cores/esp8266/core_esp8266_phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp8266/core_esp8266_phy.c b/cores/esp8266/core_esp8266_phy.c index 130c5e36d..53c781113 100644 --- a/cores/esp8266/core_esp8266_phy.c +++ b/cores/esp8266/core_esp8266_phy.c @@ -198,7 +198,7 @@ static uint8_t phy_init_data[128] = // vdd33_const // the voltage of PA_VDD - // x=0xff: it can measure VDD33, + // x=0xff: it can measure VDD33, // 18<=x<=36: use input voltage, // the value is voltage*10, 33 is 3.3V, 30 is 3.0V, // x<18 or x>36: default voltage is 3.3V From 4d740bd8e1637fe11c6e92addfc63fed479d8a89 Mon Sep 17 00:00:00 2001 From: Testato Date: Thu, 25 Jun 2015 11:35:24 +0200 Subject: [PATCH 4/5] Update core_esp8266_phy.c --- cores/esp8266/core_esp8266_phy.c | 1 - 1 file changed, 1 deletion(-) diff --git a/cores/esp8266/core_esp8266_phy.c b/cores/esp8266/core_esp8266_phy.c index 53c781113..fed475888 100644 --- a/cores/esp8266/core_esp8266_phy.c +++ b/cores/esp8266/core_esp8266_phy.c @@ -195,7 +195,6 @@ static uint8_t phy_init_data[128] = // 5.5m, 11m power index [0~5] [98] = 0, - // vdd33_const // the voltage of PA_VDD // x=0xff: it can measure VDD33, From 411773dffa07f881254e184761f4dcd23c0ebf34 Mon Sep 17 00:00:00 2001 From: Testato Date: Thu, 25 Jun 2015 11:38:43 +0200 Subject: [PATCH 5/5] Update core_esp8266_phy.c --- cores/esp8266/core_esp8266_phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp8266/core_esp8266_phy.c b/cores/esp8266/core_esp8266_phy.c index fed475888..25693daf9 100644 --- a/cores/esp8266/core_esp8266_phy.c +++ b/cores/esp8266/core_esp8266_phy.c @@ -211,7 +211,7 @@ static uint8_t phy_init_data[128] = // 2) // getVcc function (system_get_vdd33): // is only available when TOUT pin17 is suspended (floating), this function measure the power voltage of VDD3P3 pin 3 and 4 - // For this function the vdd33_const must be set as 255. + // For this function the vdd33_const must be set to 255 (0xFF). [107] = 33, // disable RF calibration for certain number of times