esp32c3.inc 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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 22 physical GPIO pins (GPIO0 ~ GPIO21). Each pin can be used as a general-purpose I/O, or 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: 12 12 22
  15. * - GPIO
  16. - Analog Function
  17. - Comment
  18. * - GPIO0
  19. - ADC1_CH0
  20. - RTC
  21. * - GPIO1
  22. - ADC1_CH1
  23. - RTC
  24. * - GPIO2
  25. - ADC1_CH2
  26. - Strapping pin;RTC
  27. * - GPIO3
  28. - ADC1_CH3
  29. - RTC
  30. * - GPIO4
  31. - ADC1_CH4
  32. - RTC
  33. * - GPIO5
  34. - ADC2_CH0
  35. - RTC
  36. * - GPIO6
  37. -
  38. -
  39. * - GPIO7
  40. -
  41. -
  42. * - GPIO8
  43. -
  44. - Strapping pin
  45. * - GPIO9
  46. -
  47. - Strapping pin
  48. * - GPIO10
  49. -
  50. -
  51. * - GPIO11
  52. -
  53. -
  54. * - GPIO12
  55. -
  56. - SPI0/1
  57. * - GPIO13
  58. -
  59. - SPI0/1
  60. * - GPIO14
  61. -
  62. - SPI0/1
  63. * - GPIO15
  64. -
  65. - SPI0/1
  66. * - GPIO16
  67. -
  68. - SPI0/1
  69. * - GPIO17
  70. -
  71. - SPI0/1
  72. * - GPIO18
  73. -
  74. - USB-JTAG
  75. * - GPIO19
  76. -
  77. - USB-JTAG
  78. * - GPIO20
  79. -
  80. -
  81. * - GPIO21
  82. -
  83. -
  84. .. note::
  85. - Strapping pin: GPIO2, GPIO8 and GPIO9 are strapping pins. For more information, please refer to `ESP32-C3 Datasheet <{IDF_TARGET_DATASHEET_EN_URL}>`_.
  86. - SPI0/1: GPIO12-17 are usually used for SPI flash and PSRAM and are not recommended for other uses.
  87. - USB-JTAG: GPIO 18 and 19 are used by USB-JTAG by default. In order to use them as GPIOs, USB-JTAG will be disabled by the drivers.
  88. - RTC: GPIO0-5 can be used to wake up the chip from Deep-sleep mode. Other GPIOs can only wake up the chip from Light-sleep mode. For more information, please refer to Section :ref:`Wakeup Sources<api-reference-wakeup-source>`.
  89. ---