Skip to content

Commit d26d7a3

Browse files
authored
Merge pull request #11653 from eMUQI/patch-1
docs: Correct ADC default resolution statement for ESP32-S2
2 parents 4eff7f9 + b9c0f68 commit d26d7a3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/en/api/adc.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@ This function will return analog value in millivolts (calibrated).
5252
analogReadResolution
5353
^^^^^^^^^^^^^^^^^^^^
5454

55-
This function is used to set the resolution of ``analogRead`` return value. Default is 12 bits (range from 0 to 4095)
56-
for all chips except ESP32-S3 where default is 13 bits (range from 0 to 8191).
55+
This function is used to set the resolution of ``analogRead`` return value. Default is 12 bits (range from 0 to 4095) for all chips.
5756
When different resolution is set, the values read will be shifted to match the given resolution.
5857

58+
.. note::
59+
For **ESP32-S2 chip revision v0.0**, the default ADC resolution is 13 bits (0-8191) due to the `ADC-112 errata <https://docs.espressif.com/projects/esp-chip-errata/en/latest/esp32s2/03-errata-description/esp32s2/sar-adc-bit1-no-flip.html>`_. This is fixed in later revisions (v1.0+), which use the standard 12-bit resolution.
60+
5961
Range is 1 - 16 .The default value will be used, if this function is not used.
6062

6163
.. note:: For the ESP32, the resolution is between 9 to12 and it will change the ADC hardware resolution. Else value will be shifted.

0 commit comments

Comments
 (0)