STM32 TIM引脚电平解释
source link: https://www.taterli.com/8313/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
STM32 TIM引脚电平解释
有些问题本身很简单,但是解释了又解释,简单地理解为比较时输出高低电平并不合理,其实几句话就能概括,定时器本身并没高低电平说法,电平存在3种状态,激活/非激活/空闲.只要出于正常工作,就不会出于空闲电平,除非MOE失能,或者BDTR模块起作用,那么强行CHx和CHxN为空闲设定的电平,正常工作时候,匹配后就会进入激活配置的电平.否则进行非激活电平.
激活/非激活电平:LL_TIM_OCPOLARITY_HIGH / LL_TIM_OCPOLARITY_LOW
空闲电平:LL_TIM_OCIDLESTATE_HIGH / LL_TIM_OCIDLESTATE_LOW
设置电平的函数:LL_TIM_OC_ConfigOutput
然而如此简单的问题,直到今天还能看到有人在一些群里讨论了半天.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK