esp32s3.inc 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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 45 physical GPIO pins (GPIO0 ~ GPIO21 and GPIO26 ~ GPIO48). Each pin can be used as a general-purpose I/O, or be connected to an internal peripheral signal. Through GPIO matrix, IO MUX, and RTC IO MUX, peripheral input signals can be from any GPIO pin, and peripheral output signals can be routed to any GPIO pin. 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. - RTC GPIO
  18. - Comment
  19. * - GPIO0
  20. -
  21. - RTC_GPIO0
  22. - Strapping pin
  23. * - GPIO1
  24. - ADC1_CH0
  25. - RTC_GPIO1
  26. -
  27. * - GPIO2
  28. - ADC1_CH1
  29. - RTC_GPIO2
  30. -
  31. * - GPIO3
  32. - ADC1_CH2
  33. - RTC_GPIO3
  34. - Strapping pin
  35. * - GPIO4
  36. - ADC1_CH3
  37. - RTC_GPIO4
  38. -
  39. * - GPIO5
  40. - ADC1_CH4
  41. - RTC_GPIO5
  42. -
  43. * - GPIO6
  44. - ADC1_CH5
  45. - RTC_GPIO6
  46. -
  47. * - GPIO7
  48. - ADC1_CH6
  49. - RTC_GPIO7
  50. -
  51. * - GPIO8
  52. - ADC1_CH7
  53. - RTC_GPIO8
  54. -
  55. * - GPIO9
  56. - ADC1_CH8
  57. - RTC_GPIO9
  58. -
  59. * - GPIO10
  60. - ADC1_CH9
  61. - RTC_GPIO10
  62. -
  63. * - GPIO11
  64. - ADC2_CH0
  65. - RTC_GPIO11
  66. -
  67. * - GPIO12
  68. - ADC2_CH1
  69. - RTC_GPIO12
  70. -
  71. * - GPIO13
  72. - ADC2_CH2
  73. - RTC_GPIO13
  74. -
  75. * - GPIO14
  76. - ADC2_CH3
  77. - RTC_GPIO14
  78. -
  79. * - GPIO15
  80. - ADC2_CH4
  81. - RTC_GPIO15
  82. -
  83. * - GPIO16
  84. - ADC2_CH5
  85. - RTC_GPIO16
  86. -
  87. * - GPIO17
  88. - ADC2_CH6
  89. - RTC_GPIO17
  90. -
  91. * - GPIO18
  92. - ADC2_CH7
  93. - RTC_GPIO18
  94. -
  95. * - GPIO19
  96. - ADC2_CH8
  97. - RTC_GPIO19
  98. - USB-JTAG
  99. * - GPIO20
  100. - ADC2_CH9
  101. - RTC_GPIO20
  102. - USB-JTAG
  103. * - GPIO21
  104. -
  105. - RTC_GPIO21
  106. -
  107. * - GPIO26
  108. -
  109. -
  110. - SPI0/1
  111. * - GPIO27
  112. -
  113. -
  114. - SPI0/1
  115. * - GPIO28
  116. -
  117. -
  118. - SPI0/1
  119. * - GPIO29
  120. -
  121. -
  122. - SPI0/1
  123. * - GPIO30
  124. -
  125. -
  126. - SPI0/1
  127. * - GPIO31
  128. -
  129. -
  130. - SPI0/1
  131. * - GPIO32
  132. -
  133. -
  134. - SPI0/1
  135. * - GPIO33
  136. -
  137. -
  138. - SPI0/1
  139. * - GPIO34
  140. -
  141. -
  142. - SPI0/1
  143. * - GPIO35
  144. -
  145. -
  146. - SPI0/1
  147. * - GPIO36
  148. -
  149. -
  150. - SPI0/1
  151. * - GPIO37
  152. -
  153. -
  154. - SPI0/1
  155. * - GPIO38
  156. -
  157. -
  158. -
  159. * - GPIO39
  160. -
  161. -
  162. -
  163. * - GPIO40
  164. -
  165. -
  166. -
  167. * - GPIO41
  168. -
  169. -
  170. -
  171. * - GPIO42
  172. -
  173. -
  174. -
  175. * - GPIO43
  176. -
  177. -
  178. -
  179. * - GPIO44
  180. -
  181. -
  182. -
  183. * - GPIO45
  184. -
  185. -
  186. - Strapping pin
  187. * - GPIO46
  188. -
  189. -
  190. - Strapping pin
  191. * - GPIO47
  192. -
  193. -
  194. -
  195. * - GPIO48
  196. -
  197. -
  198. -
  199. .. Note::
  200. - Strapping pin: GPIO0, GPIO3, GPIO45 and GPIO46 are strapping pins. For more infomation, please refer to `ESP32-S3 datasheet <{IDF_TARGET_DATASHEET_EN_URL}>`_.
  201. - SPI0/1: GPIO26-32 are usually used for SPI flash and PSRAM and not recommended for other uses. When using Octal Flash or Octal PSRAM or both, GPIO33~37 are connected to SPIIO4 ~ SPIIO7 and SPIDQS. Therefore, on boards embedded with ESP32-S3R8 / ESP32-S3R8V chip, GPIO33~37 are also not recommended for other uses.
  202. - USB-JTAG: GPIO 19 and 20 are used by USB-JTAG by default. In order to use them as GPIOs, USB-JTAG will be disabled by the drivers.
  203. ---