【MCU实战经验】STM32F030芯片极限超频测试
【STM32F0开发日志】+STM32F030 修改官方提供的例程
【STM32F030开发日志/评测/笔记】+(2)STM32F0处理器I2C实例(...
STM32F030F4核心板自己整理的几个程序可以当模板参考(Keil MDK...
CubeMX之STM32F0 UART DMA接收的bug
stm32f030的i2c(eeprom)调试分享
STM32F030F4P6 PWM输出呼吸灯
【实战经验】STM32F030低温下RTC不工作
STM32F042Nucleo Mbed PWM+L298N驱动12V直流电机
[STM32F072 Nucleo]开发笔记(三) 修改USB代码用于游戏方向盘
回复:【STM32F0开发日志】STM32F030 TIM3 4路PWM 输出
已添加到社区网友原创汇总:
STM32F030探索套件开发日志,中文教程,使用问答70篇
回复:【STM32F0开发日志】STM32F030 TIM3 4路PWM 输出
回复:【STM32F0开发日志】STM32F030 TIM3 4路PWM 输出
真够辛苦的了,顶一个啊。
* @brief Enables or disables the TIM peripheral Main Outputs.
* @param TIMx: where x can be 1, 15, 16 or 17 to select the TIMx peripheral.
* @param NewState: 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属于高级定时器吗?貌似只有高级定时器才有这句吧?
datasheet上明明写的是AF0, 为什么楼主配置为AF2也能成功?