查看ESP32 RTC的源代码
←
ESP32 RTC
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
== RTC GPIO == RTC_GPIO0 ~ RTC_GPIO17 [[文件:Esp32-pin-adc.jpg | 960px]] {| border="0" width=89% cellspacing="1" cellpadding="5" align="center" bgcolor=#0066bb | style="background:#eeeeee" width=50| Pin NO. | style="background:#eeeeee" | Pin Name | style="background:#eeeeee" | RTC_GPIO | style="background:#eeeeee" | Control Register | style="background:#eeeeee" | MUX Bits | style="background:#eeeeee" | After Reset | style="background:#eeeeee" | Notes |- | style="background:#ffffff" | 5 | style="background:#ffffff" | SENSOR_VP | style="background:#ffffff" | RTC_GPIO0 | style="background:#ffffff" | RTC_IO_SENSOR_PADS_REG | style="background:#ffffff" | SENSE1_MUX_SEL, BIT[27] | style="background:#ffffff" | 0 (Route to digital IO_MUX) | style="background:#ffffff" | Only Input |- | style="background:#ffffff" | 6 | style="background:#ffffff" | SENSOR_CAPP | style="background:#ffffff" | RTC_GPIO1 | style="background:#ffffff" | RTC_IO_SENSOR_PADS_REG | style="background:#ffffff" | SENSE1_MUX_SEL, BIT[26] | style="background:#ffffff" | 0 | style="background:#ffffff" | Only Input |- | style="background:#ffffff" | 7 | style="background:#ffffff" | SENSOR_CAPN | style="background:#ffffff" | RTC_GPIO2 | style="background:#ffffff" | RTC_IO_SENSOR_PADS_REG | style="background:#ffffff" | SENSE3_MUX_SEL, BIT[25] | style="background:#ffffff" | 0 | style="background:#ffffff" | Only Input |- | style="background:#ffffff" | 8 | style="background:#ffffff" | SENSOR_VN | style="background:#ffffff" | RTC_GPIO3 | style="background:#ffffff" | RTC_IO_SENSOR_PADS_REG | style="background:#ffffff" | SENSE4_MUX_SEL, BIT[24] | style="background:#ffffff" | 0 | style="background:#ffffff" | Only Input |- | style="background:#ffffff" | 10 | style="background:#ffffff" | VDET_1 | style="background:#ffffff" | RTC_GPIO4 | style="background:#ffffff" | RTC_IO_ADC_PAD_REG | style="background:#ffffff" | ADC1_MUX_SEL, BIT[29] | style="background:#ffffff" | 0 | style="background:#ffffff" | Only Input |- | style="background:#ffffff" | 11 | style="background:#ffffff" | VDET_2 | style="background:#ffffff" | RTC_GPIO5 | style="background:#ffffff" | RTC_IO_ADC_PAD_REG | style="background:#ffffff" | ADC2_MUX_SEL, BIT[28] | style="background:#ffffff" | 0 | style="background:#ffffff" | Only Input |- | style="background:#ffffff" | 12 | style="background:#ffffff" | 32K_XP | style="background:#ffffff" | RTC_GPIO9 | style="background:#ffffff" | RTC_IO_XTAL_32K_PAD_REG | style="background:#ffffff" | X32P_MUX_SEL, BIT[17] | style="background:#ffffff" | 0 (Route to digital IO_MUX) | style="background:#ffffff" | Set to 1 by esp-idf, route to RTC |- | style="background:#ffffff" | 13 | style="background:#ffffff" | 32K_XN | style="background:#ffffff" | RTC_GPIO8 | style="background:#ffffff" | RTC_IO_XTAL_32K_PAD_REG | style="background:#ffffff" | X32N_MUX_SEL, BIT[18] | style="background:#ffffff" | 0 (Route to digital IO_MUX) | style="background:#ffffff" | Set to 1 by esp-idf, route to RTC |- | style="background:#ffffff" | 14 | style="background:#ffffff" | DAC_1 | style="background:#ffffff" | RTC_GPIO6 | style="background:#ffffff" | RTC_IO_PAD_DAC1_REG | style="background:#ffffff" | PDAC1_MUX_SEL, BIT[17] | style="background:#ffffff" | 0 | style="background:#ffffff" | |- | style="background:#ffffff" | 15 | style="background:#ffffff" | DAC_2 | style="background:#ffffff" | RTC_GPIO7 | style="background:#ffffff" | RTC_IO_PAD_DAC2_REG | style="background:#ffffff" | PDAC2_MUX_SEL, BIT[17] | style="background:#ffffff" | 0 | style="background:#ffffff" | |- | style="background:#ffffff" | 16 ~ 24 | style="background:#ffffff" | TOUCH7 ~ TOUCH0 | style="background:#ffffff" | RTC_GPIO17 ~ 10 | style="background:#ffffff" | TOUCH_PADn_REG (n = 7 ~ 0) | style="background:#ffffff" | PADn_TO_GPIO, BIT[19] | style="background:#ffffff" | 0 (Route to RTC domain) | style="background:#ffffff" | |- | style="background:#ffffff" | | style="background:#ffffff" | | style="background:#ffffff" | | style="background:#ffffff" | | style="background:#ffffff" | | style="background:#ffffff" | | style="background:#ffffff" | |} You need to clear the following bits if you want to use the GPIO32 and GPIO33 as the general GPIO: <pre> REG_CLR_BIT(RTC_IO_XTAL_32K_PAD_REG, RTC_IO_X32P_MUX_SEL); /* gpio32 route to digital io_mux */ REG_CLR_BIT(RTC_IO_XTAL_32K_PAD_REG, RTC_IO_X32N_MUX_SEL); /* gpio33 route to digital io_mux */ </pre> <br><br>
返回到
ESP32 RTC
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面