esp32p4.inc 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  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 57 physical GPIO pins (GPIO0 ~ GPIO56). 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. -
  21. - LP_GPIO0
  22. -
  23. * - GPIO1
  24. -
  25. - LP_GPIO1
  26. -
  27. * - GPIO2
  28. - TOUCH0
  29. - LP_GPIO2
  30. -
  31. * - GPIO3
  32. - TOUCH1
  33. - LP_GPIO3
  34. -
  35. * - GPIO4
  36. - TOUCH2
  37. - LP_GPIO4
  38. -
  39. * - GPIO5
  40. - TOUCH3
  41. - LP_GPIO5
  42. -
  43. * - GPIO6
  44. - TOUCH4
  45. - LP_GPIO6
  46. -
  47. * - GPIO7
  48. - TOUCH5
  49. - LP_GPIO7
  50. -
  51. * - GPIO8
  52. - TOUCH6
  53. - LP_GPIO8
  54. -
  55. * - GPIO9
  56. - TOUCH7
  57. - LP_GPIO9
  58. -
  59. * - GPIO10
  60. - TOUCH8
  61. - LP_GPIO10
  62. -
  63. * - GPIO11
  64. - TOUCH9
  65. - LP_GPIO11
  66. -
  67. * - GPIO12
  68. - TOUCH10
  69. - LP_GPIO12
  70. -
  71. * - GPIO13
  72. - TOUCH11
  73. - LP_GPIO13
  74. -
  75. * - GPIO14
  76. - TOUCH12
  77. - LP_GPIO14
  78. -
  79. * - GPIO15
  80. - TOUCH13
  81. - LP_GPIO15
  82. -
  83. * - GPIO16
  84. - ADC1_CH0
  85. -
  86. -
  87. * - GPIO17
  88. - ADC1_CH1
  89. -
  90. -
  91. * - GPIO18
  92. - ADC1_CH2
  93. -
  94. -
  95. * - GPIO19
  96. - ADC1_CH3
  97. -
  98. -
  99. * - GPIO20
  100. - ADC1_CH4
  101. -
  102. -
  103. * - GPIO21
  104. - ADC1_CH5
  105. -
  106. -
  107. * - GPIO22
  108. - ADC1_CH6
  109. -
  110. -
  111. * - GPIO23
  112. - ADC1_CH7
  113. -
  114. -
  115. * - GPIO24
  116. -
  117. -
  118. -
  119. * - GPIO25
  120. -
  121. -
  122. -
  123. * - GPIO26
  124. -
  125. -
  126. -
  127. * - GPIO27
  128. -
  129. -
  130. -
  131. * - GPIO28
  132. -
  133. -
  134. -
  135. * - GPIO29
  136. -
  137. -
  138. -
  139. * - GPIO30
  140. -
  141. -
  142. -
  143. * - GPIO31
  144. -
  145. -
  146. -
  147. * - GPIO32
  148. -
  149. -
  150. -
  151. * - GPIO33
  152. -
  153. -
  154. -
  155. * - GPIO34
  156. -
  157. -
  158. - Strapping pin
  159. * - GPIO35
  160. -
  161. -
  162. - Strapping pin
  163. * - GPIO36
  164. -
  165. -
  166. - Strapping pin
  167. * - GPIO37
  168. -
  169. -
  170. - Strapping pin
  171. * - GPIO38
  172. -
  173. -
  174. - Strapping pin
  175. * - GPIO39
  176. -
  177. -
  178. -
  179. * - GPIO40
  180. -
  181. -
  182. -
  183. * - GPIO41
  184. -
  185. -
  186. -
  187. * - GPIO42
  188. -
  189. -
  190. -
  191. * - GPIO43
  192. -
  193. -
  194. -
  195. * - GPIO44
  196. -
  197. -
  198. -
  199. * - GPIO45
  200. -
  201. -
  202. -
  203. * - GPIO46
  204. -
  205. -
  206. -
  207. * - GPIO47
  208. -
  209. -
  210. -
  211. * - GPIO48
  212. -
  213. -
  214. -
  215. * - GPIO49
  216. - ADC1_CH8
  217. -
  218. -
  219. * - GPIO50
  220. - ADC1_CH9
  221. -
  222. -
  223. * - GPIO51
  224. - ADC1_CH10, ANA_CMPR_CH0 reference voltage
  225. -
  226. -
  227. * - GPIO52
  228. - ADC1_CH11, ANA_CMPR_CH0 input (non-inverting)
  229. -
  230. -
  231. * - GPIO53
  232. - ADC1_CH12, ANA_CMPR_CH1 reference voltage
  233. -
  234. -
  235. * - GPIO54
  236. - ADC1_CH13, ANA_CMPR_CH1 input (non-inverting)
  237. -
  238. -
  239. * - GPIO55
  240. -
  241. -
  242. -
  243. * - GPIO56
  244. -
  245. -
  246. -
  247. .. note::
  248. - Strapping pin: GPIO34, GPIO35, GPIO36, GPIO37, and GPIO38 are strapping pins. For more infomation, please refer to `datasheet <{IDF_TARGET_DATASHEET_EN_URL}>`__.
  249. - USB-JTAG: GPIO 24 and 25 are used by USB-JTAG by default. In order to use them as GPIOs, USB-JTAG will be disabled by the drivers.
  250. ---