esp32h2.inc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. .. This file gets included from other .rst files in this folder.
  2. .. It contains target-specific snippets.
  3. .. Comments and '---' lines act as delimiters.
  4. ..
  5. .. This is necessary mainly because RST doesn't support substitutions
  6. .. (defined in RST, not in Python) inside code blocks. If that is ever implemented,
  7. .. These code blocks can be moved back to the main .rst files, with target-specific
  8. .. file names being replaced by substitutions.
  9. .. gpio-summary
  10. The {IDF_TARGET_NAME} chip features 28 physical GPIO pins (GPIO0 ~ GPIO27). Each pin can be used as a general-purpose I/O, or to be connected to an internal peripheral signal. Through GPIO matrix and IO MUX, peripheral input signals can be from any IO pins, and peripheral output signals can be routed to any IO pins. Together these modules provide highly configurable I/O. For more details, see *{IDF_TARGET_NAME} Technical Reference Manual* > *IO MUX and GPIO Matrix (GPIO, IO_MUX)* [`PDF <{IDF_TARGET_TRM_EN_URL}#iomuxgpio>`__].
  11. The table below provides more information on pin usage, and please note the comments in the table for GPIOs with restrictions.
  12. .. list-table::
  13. :header-rows: 1
  14. :widths: 8 12 20
  15. * - GPIO
  16. - Analog Function
  17. - Comments
  18. * - GPIO0
  19. -
  20. -
  21. * - GPIO1
  22. - ADC1_CH0
  23. -
  24. * - GPIO2
  25. - ADC1_CH1
  26. - Strapping pin
  27. * - GPIO3
  28. - ADC1_CH2
  29. - Strapping pin
  30. * - GPIO4
  31. - ADC1_CH3
  32. -
  33. * - GPIO5
  34. - ADC1_CH4
  35. -
  36. * - GPIO6
  37. -
  38. -
  39. * - GPIO7
  40. -
  41. -
  42. * - GPIO8
  43. -
  44. - Strapping pin
  45. * - GPIO9
  46. -
  47. - Strapping pin
  48. * - GPIO10
  49. - Analog comparator reference voltage
  50. -
  51. * - GPIO11
  52. - Analog comparator input (non-inverting)
  53. -
  54. * - GPIO12
  55. -
  56. -
  57. * - GPIO13
  58. -
  59. -
  60. * - GPIO14
  61. -
  62. -
  63. * - GPIO15
  64. -
  65. - SPI0/1
  66. * - GPIO16
  67. -
  68. - SPI0/1
  69. * - GPIO17
  70. -
  71. - SPI0/1
  72. * - GPIO18
  73. -
  74. - SPI0/1
  75. * - GPIO19
  76. -
  77. - SPI0/1
  78. * - GPIO20
  79. -
  80. - SPI0/1
  81. * - GPIO21
  82. -
  83. - SPI0/1
  84. * - GPIO22
  85. -
  86. -
  87. * - GPIO23
  88. -
  89. -
  90. * - GPIO24
  91. -
  92. -
  93. * - GPIO25
  94. -
  95. - Strapping pin
  96. * - GPIO26
  97. -
  98. - USB-JTAG
  99. * - GPIO27
  100. -
  101. - USB-JTAG
  102. .. note::
  103. - Strapping pin: GPIO2, GPIO3, GPIO8, GPIO9, and GPIO25 are strapping pins. For more infomation, please refer to `ESP32H2 datasheet <{IDF_TARGET_DATASHEET_EN_URL}>`_.
  104. - SPI0/1: GPIO15-21 are usually used for SPI flash and not recommended for other uses.
  105. - USB-Serial-JTAG: GPIO 26 and 27 are used by USB-Serial-JTAG by default. In order to use them as GPIOs, USB-Serial-JTAG will be disabled by the drivers.
  106. - For chip variants with an SiP flash built in, GPIO15 ~ GPIO21 are dedicated to connecting the SiP flash and are not fan-out to the external pins. In addition, GPIO6 ~ GPIO7 are also not fan-out to the external pins. In conclusion, only GPIO0~ GPIO5, GPIO8~ GPIO14, GPIO22~ GPIO27 are available to users.
  107. - For chip variant without SiP flash, apart from the flash IOs mentioned above, GPIO22 is not fan-out to the external pin, thus they're not available to users.
  108. ---