STM8中GPIO的12种模式
STM8中GPIO的12种模式
(1)GPIO_Mode_In_FL_No_IT:浮空输入无中断
(2)GPIO_Mode_In_PU_No_IT:上拉输入无中断
(3)GPIO_Mode_In_FL_IT:浮空输入有中断
(4)GPIO_Mode_In_PU_IT :上拉输入有中断
(5)GPIO_Mode_Out_OD_Low_Fast :开漏-输出低-高速 Output open-drain, low level, 10MHz
(6)GPIO_Mode_Out_PP_Low_Fast :推挽-输出低-高速 Output push-pull, low level, 10MHz
(7)GPIO_Mode_Out_OD_Low_Slow :开漏-输出低-低速 Output open-drain, low level, 2MHz
(8)GPIO_Mode_Out_PP_Low_Slow :推挽-输出低-低速 Output push-pull, low level, 2MHz
(9)GPIO_Mode_Out_OD_HiZ_Fast :开漏-输出高阻-高速 Output open-drain, high-impedance level, 10MHz
(10)GPIO_Mode_Out_PP_High_Fast :推挽-输出高-高速 Output push-pull, high level, 10MHz
(11)GPIO_Mode_Out_OD_HiZ_Slow :开漏-输出高阻-低速 Output open-drain, high-impedance level, 2MHz
(12)GPIO_Mode_Out_PP_High_Slow :推挽-输出高-低速 Output push-pull, high level, 2MHz
总结
以上是生活随笔为你收集整理的STM8中GPIO的12种模式的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 十六进制时间戳转换成十进制时间戳
- 下一篇: STM8获取电压值