stm32 pwm CH1 CH1N
时间: 2023-08-31 16:11:11 浏览: 221
在提供的引用中,可以看到在stm32的代码中,通过修改TIM1的CCR寄存器的值来控制PWM输出的占空比。CH1通道用于输出PWM波,而CH1N通道用于输出高电平。但是根据引用[2]的描述,通过修改CCR寄存器的值与比较值时,CH1与CH1N无法同时达到不同的PWM波输出,只能同时输出相同或互补的PWM波。因此,在代码中TIM_SetCompare1()函数用于设置CH1通道的占空比,而TIM_SetCompare1N()函数用于设置CH1N通道的占空比。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [stm32 TIM1的CH1N~CH3N、CH1~CH4基本配置](https://blog.csdn.net/qq_35831134/article/details/110932411)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [STM32学习笔记:PWM互补输出(无刷直流电机驱动控制)](https://blog.csdn.net/weixin_45910070/article/details/125228128)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文