GPIO寄存器描述 《STM32参考手册中文-p75》
1、端口配置低寄存器(GPIOx_CRL)(x = A...E)
2、端口配置高寄存器(GPIOx_CRH)(x = A...E)
3、端口输入数据寄存器(GPIOx_IDR)(x = A...E)
这些位为只读并只能以字(16位)的形式读出。读出的值为对应I/O口的状态。
4、端口输出数据寄存器(GPIOx_ODR)(x = A...E)
只能以字(16bit)的形式操作,复位值全是0。写0即输出0,写1即输出1。
5、端口位设置/清除寄存器(GPIOx_BSRR)(x = A...E)
高16bit写1用于清0,低16bit写1用于置位,同时写1的话低16bi有效。
6、端口位清除寄存器(GPIOx_BRR)(x = A...E)
低16位写1用于置位。
7、端口配置锁定寄存器(GPIOx_LCKR)(x = A...E)
GPIO八种模式
typedef enum
{ GPIO_Mode_AIN = 0x0, /* 模拟输入 */
GPIO_Mode_IN_FLOATING = 0x04, /* 浮空输入,复位后的状态 */
GPIO_Mode_IPD = 0x28, /* 下拉输入 */
GPIO_Mode_IPU = 0x48, /* 上拉输入 */
GPIO_Mode_Out_OD = 0x14, /* 开漏输出 */
GPIO_Mode_Out_PP = 0x10, /* 推挽输出 */
GPIO_Mode_AF_OD = 0x1C, /* 复用开漏输出 */
GPIO_Mode_AF_PP = 0x18 /* 复用推挽输出 */
}GPIOMode_TypeDef;
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
stm32f103 +差分输入AD纯C实现2048点FFT,加补充说明 (194个子文件)
BH-F103.uvguix.Administrator 137KB
流水灯.axf 370KB
流水灯_sct.Bak 479B
keilkill.bat 401B
stm32f10x_tim.c 107KB
stm32f10x_flash.c 61KB
stm32f10x_rcc.c 50KB
stm32f10x_adc.c 46KB
stm32f10x_i2c.c 45KB
stm32f10x_can.c 44KB
stm32f10x_usart.c 37KB
system_stm32f10x.c 36KB
stm32f10x_fsmc.c 35KB
stm32f10x_spi.c 30KB
stm32f10x_dma.c 29KB
stm32f10x_sdio.c 28KB
stm32f10x_gpio.c 23KB
stm32f10x_dac.c 19KB
core_cm3.c 17KB
stm32f10x_cec.c 11KB
stm32f10x_pwr.c 9KB
stm32f10x_rtc.c 8KB
stm32f10x_bkp.c 8KB
misc.c 7KB
stm32f10x_it.c 7KB
stm32f10x_exti.c 7KB
stm32f10x_wwdg.c 6KB
main.c 5KB
stm32f10x_dbgmcu.c 5KB
stm32f10x_iwdg.c 5KB
usart.c 4KB
in.c 3KB
stm32f10x_crc.c 3KB
fft.c 3KB
bsp_TiMbase.c 2KB
bsp_exti.c 2KB
stm32f10x_tim.crf 362KB
main.crf 358KB
fft.crf 356KB
stm32f10x_can.crf 349KB
stm32f10x_it.crf 349KB
stm32f10x_adc.crf 348KB
stm32f10x_rcc.crf 348KB
stm32f10x_flash.crf 348KB
stm32f10x_i2c.crf 347KB
usart.crf 346KB
stm32f10x_usart.crf 346KB
stm32f10x_fsmc.crf 346KB
stm32f10x_sdio.crf 345KB
stm32f10x_spi.crf 345KB
stm32f10x_gpio.crf 344KB
stm32f10x_dma.crf 344KB
stm32f10x_dac.crf 342KB
stm32f10x_cec.crf 342KB
in.crf 342KB
system_stm32f10x.crf 342KB
stm32f10x_bkp.crf 342KB
stm32f10x_pwr.crf 342KB
stm32f10x_rtc.crf 342KB
stm32f10x_exti.crf 341KB
stm32f10x_wwdg.crf 341KB
misc.crf 341KB
bsp_led.crf 341KB
bsp_timbase.crf 341KB
bsp_exti.crf 341KB
stm32f10x_iwdg.crf 341KB
stm32f10x_crc.crf 340KB
stm32f10x_dbgmcu.crf 340KB
core_cm3.crf 4KB
stm32f10x_it.d 2KB
stm32f10x_dbgmcu.d 2KB
stm32f10x_usart.d 2KB
stm32f10x_flash.d 2KB
stm32f10x_wwdg.d 2KB
stm32f10x_gpio.d 2KB
stm32f10x_iwdg.d 2KB
stm32f10x_exti.d 2KB
stm32f10x_fsmc.d 2KB
stm32f10x_sdio.d 2KB
main.d 2KB
system_stm32f10x.d 2KB
stm32f10x_spi.d 2KB
stm32f10x_rcc.d 2KB
stm32f10x_dac.d 2KB
stm32f10x_i2c.d 2KB
stm32f10x_rtc.d 2KB
stm32f10x_pwr.d 2KB
stm32f10x_tim.d 2KB
stm32f10x_dma.d 2KB
stm32f10x_can.d 2KB
stm32f10x_cec.d 2KB
stm32f10x_adc.d 2KB
stm32f10x_crc.d 2KB
stm32f10x_bkp.d 2KB
bsp_timbase.d 2KB
fft.d 2KB
bsp_exti.d 2KB
usart.d 2KB
bsp_led.d 2KB
misc.d 2KB
共 194 条
- 1
- 2
资源评论
- FelaniaLiu2023-07-26通过学习这篇文件,我们可以从零开始,一步一步了解如何使用stm32f103进行AD采集与FFT算法处理,是一份非常实用的学习资料。
- 蔓誅裟華2023-07-26作者通过简洁明了的语言,向我们展示了如何在实际应用中实现2048点FFT算法,对于掌握相关知识的读者来说,十分实用。
- 宝贝的麻麻2023-07-26这篇文件的编写风格朴实无华,很容易让人理解,让我们能够直接从中获取到需要的知识。
- 不知者无胃口2023-07-26作者除了介绍基础知识之外,还额外附带了一些实际应用的补充说明,让这篇文件更加全面丰富。
- 创业青年骁哥2023-07-26这篇文件详细地介绍了如何使用stm32f103实现差分输入AD纯C编程,非常适合初学者入门。
墨色眼镜王二
- 粉丝: 3
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功