esp32c6.inc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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 31 physical GPIO pins (GPIO0 ~ GPIO30). 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 12 20
  15. * - GPIO
  16. - Analog Function
  17. - LP GPIO
  18. - Comments
  19. * - GPIO0
  20. - ADC1_CH0
  21. - LP_GPIO0
  22. -
  23. * - GPIO1
  24. - ADC1_CH1
  25. - LP_GPIO1
  26. -
  27. * - GPIO2
  28. - ADC1_CH2
  29. - LP_GPIO2
  30. -
  31. * - GPIO3
  32. - ADC1_CH3
  33. - LP_GPIO3
  34. -
  35. * - GPIO4
  36. - ADC1_CH4
  37. - LP_GPIO4
  38. - Strapping pin
  39. * - GPIO5
  40. - ADC1_CH5
  41. - LP_GPIO5
  42. - Strapping pin
  43. * - GPIO6
  44. - ADC1_CH6
  45. - LP_GPIO6
  46. -
  47. * - GPIO7
  48. -
  49. - LP_GPIO7
  50. -
  51. * - GPIO8
  52. -
  53. -
  54. - Strapping pin
  55. * - GPIO9
  56. -
  57. -
  58. - Strapping pin
  59. * - GPIO10
  60. -
  61. -
  62. -
  63. * - GPIO11
  64. -
  65. -
  66. -
  67. * - GPIO12
  68. -
  69. -
  70. - USB-JTAG
  71. * - GPIO13
  72. -
  73. -
  74. - USB-JTAG
  75. * - GPIO14
  76. -
  77. -
  78. -
  79. * - GPIO15
  80. -
  81. -
  82. - Strapping pin
  83. * - GPIO16
  84. -
  85. -
  86. -
  87. * - GPIO17
  88. -
  89. -
  90. -
  91. * - GPIO18
  92. -
  93. -
  94. -
  95. * - GPIO19
  96. -
  97. -
  98. -
  99. * - GPIO20
  100. -
  101. -
  102. -
  103. * - GPIO21
  104. -
  105. -
  106. -
  107. * - GPIO22
  108. -
  109. -
  110. -
  111. * - GPIO23
  112. -
  113. -
  114. -
  115. * - GPIO24
  116. -
  117. -
  118. - SPI0/1
  119. * - GPIO25
  120. -
  121. -
  122. - SPI0/1
  123. * - GPIO26
  124. -
  125. -
  126. - SPI0/1
  127. * - GPIO27
  128. -
  129. -
  130. - SPI0/1
  131. * - GPIO28
  132. -
  133. -
  134. - SPI0/1
  135. * - GPIO29
  136. -
  137. -
  138. - SPI0/1
  139. * - GPIO30
  140. -
  141. -
  142. - SPI0/1
  143. .. note::
  144. - Strapping pin: GPIO4, GPIO5, GPIO8, GPIO9, and GPIO15 are strapping pins. For more infomation, please refer to `datasheet <{IDF_TARGET_DATASHEET_EN_URL}>`__.
  145. - SPI0/1: GPIO24-30 are usually used for SPI flash and not recommended for other uses.
  146. - USB-JTAG: GPIO 12 and 13 are used by USB-JTAG by default. In order to use them as GPIOs, USB-JTAG will be disabled by the drivers.
  147. - For chip variants with an SiP flash built in, GPIO24 ~ GPIO30 are dedicated to connecting the SiP flash; GPIO10 ~ GPIO11 are not led out to any chip pins; therefore, only the remaining 22 GPIO pins are available.
  148. - For chip variants without an in-package flash, GPIO14 is not led out to any chip pins.
  149. ---