Hardware

From ESP8266-RE Wiki
Jump to: navigation, search

This section is intended for research into the physical aspects of the ESP8266 chip and the modules built from it.

TODO: There's already various information around the net about the different ESP modules and their construction which could be added to this page

GPIO/IOMUX Details

Confirmed by measurements:

  • Internal pull-up resistors are approximately 47K (68 uA current draw measured from 3.2 V supply)
  • Enabling the IOMUX "pull-down" bit for a port actually enables its pull-up resistor, the same as the "pull-up" bit does. There do not appear to be any pull-down resistors on the normal (GPIO0-15) pins (this is consistent with the datasheet, which only claims pull-up, not pull-down for these pins).
  • GPIO pins are not 5V-tolerant. Max voltage appears to be approximately 4.2 V. (Tested by applying 5V to an input pin (with pullup disabled) through a 1M resistor and measuring the voltage at the pin)
  • Input gates appear to be always connected to the pin, even when the output driver is enabled. This means that when open-drain output is configured but the pin is set high (i.e. not driven low), the actual pin voltage can be measured by reading from it, the same as in "input" mode.

Things to Investigate

  • Attempt to determine the size and characteristics of the cache layer which backs the memory-mapping of the SPI Flash
IDEA: It may be possible to determine the size by doing repeated reads of increasingly larger (flash) memory areas and timing the results
  • All of the Espressif documentation seems to be adamant that the ADC can be used for measuring VDD or for measuring TOUT, but not both in the same application. It is unclear whether this is a limitation of the hardware, or just the way the SDK routines are implemented. Is it possible to switch back and forth between the two ADC modes without having to change the hardware design, and thus (for example), measure one value, then the other? (Specifically: What happens when you try to measure VDD but have TOUT connected to something?)