esp32c2.inc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. {IDF_TARGET_NAME} 芯片具有 21 个物理 GPIO 管脚(GPIO0 ~ GPIO20)。对于内置 SiP flash 的芯片型号,GPIO11 ~ GPIO17 专门用于连接 SiP flash。因此,对于这类芯片只有 14 个 GPIO 管脚可用。
  11. 每个管脚都可用作一个通用 IO,或连接一个内部的外设 信号。通过 GPIO 交换矩阵和 IO MUX,可配置外设模块的输入信号来源于任何的 IO 管脚,并且外设模块的输 出信号也可连接到任意 IO 管脚。这些模块共同组成了芯片的 IO 控制。更多详细信息,请参阅 *{IDF_TARGET_NAME} 技术参考手册* > *IO MUX 和 GPIO 矩阵(GPIO、IO_MUX)* [`PDF <{IDF_TARGET_TRM_CN_URL}#iomuxgpio>`__]。
  12. 下表提供了各管脚的详细信息,部分 GPIO 具有特殊的使用限制,具体可参考表中的注释列。
  13. .. list-table::
  14. :header-rows: 1
  15. :widths: 12 12 22
  16. * - GPIO
  17. - 模拟功能
  18. - 注释
  19. * - GPIO0
  20. - ADC1_CH0
  21. - RTC
  22. * - GPIO1
  23. - ADC1_CH1
  24. - RTC
  25. * - GPIO2
  26. - ADC1_CH2
  27. - RTC
  28. * - GPIO3
  29. - ADC1_CH3
  30. - RTC
  31. * - GPIO4
  32. - ADC1_CH4
  33. - RTC
  34. * - GPIO5
  35. -
  36. - RTC
  37. * - GPIO6
  38. -
  39. -
  40. * - GPIO7
  41. -
  42. -
  43. * - GPIO8
  44. -
  45. - Strapping 管脚
  46. * - GPIO9
  47. -
  48. - Strapping 管脚
  49. * - GPIO10
  50. -
  51. -
  52. * - GPIO11
  53. -
  54. -
  55. * - GPIO12
  56. -
  57. - SPI0/1
  58. * - GPIO13
  59. -
  60. - SPI0/1
  61. * - GPIO14
  62. -
  63. - SPI0/1
  64. * - GPIO15
  65. -
  66. - SPI0/1
  67. * - GPIO16
  68. -
  69. - SPI0/1
  70. * - GPIO17
  71. -
  72. - SPI0/1
  73. * - GPIO18
  74. -
  75. -
  76. * - GPIO19
  77. -
  78. -
  79. * - GPIO20
  80. -
  81. -
  82. .. note::
  83. - Strapping 管脚:GPIO8 和 GPIO9 是 Strapping 管脚。更多信息请参考 `ESP8684 技术规格书 <{IDF_TARGET_DATASHEET_CN_URL}>`_。
  84. - SPI0/1:GPIO12-17 通常用于 SPI flash,不推荐用于其他用途。
  85. - RTC:GPIO0-5 可用于将芯片从 Deep-sleep 模式中唤醒,其他 GPIO 仅能将芯片从 Light-sleep 模式中唤醒。更多信息请参考 :ref:`唤醒源<api-reference-wakeup-source>` 章节。
  86. ---