zlo007 发表于 2016-8-9 16:41:12


真够辛苦的了,顶一个啊。

ql1000 发表于 2016-8-11 15:46:33

学习学习!

紫暮凝雨 发表于 2016-9-19 11:18:42

咱们有个问题讨论下,你看KEIL5,/**
* @briefEnables or disables the TIM peripheral Main Outputs.
* @paramTIMx: where x can be 1, 15, 16 or 17 to select the TIMx peripheral.
* @paramNewState: new state of the TIM peripheral Main Outputs.
*          This parameter can be: ENABLE or DISABLE.
* @retval None
*/
void TIM_CtrlPWMOutputs(TIM_TypeDef* TIMx, FunctionalState NewState)
{
/* Check the parameters */
assert_param(IS_TIM_LIST2_PERIPH(TIMx));
assert_param(IS_FUNCTIONAL_STATE(NewState));
if (NewState != DISABLE)
{
    /* Enable the TIM Main Output */
    TIMx->BDTR |= TIM_BDTR_MOE;
}
else
{
    /* Disable the TIM Main Output */
    TIMx->BDTR &= (uint16_t)(~((uint16_t)TIM_BDTR_MOE));
}
}
TIM3属于高级定时器吗?貌似只有高级定时器才有这句吧?

microcraft 发表于 2019-5-22 15:49:52


datasheet上明明写的是AF0, 为什么楼主配置为AF2也能成功?



zhenweiaaa 发表于 2020-8-29 14:07:14

不错喔
页: 1 [2]
查看完整版本: 【STM32F0开发日志】STM32F030 TIM3 4路PWM 输出