4093| 5
|
STM8S103K3单片机PWM输出引脚与ADC干扰问题 |
1金钱
最佳答案问题已经解决,是互补比较输出被我打开了.. 关掉就好了
TIM1_OC1Init(TIM1_OCMODE_PWM2, TIM1_OUTPUTSTATE_DISABLE, TIM1_OUTPUTNSTATE_ENABLE, 0x0000, TIM1_OCPOLARITY_HIGH, TIM1_OCNPOLARITY_HIGH, TIM1_OCIDLESTATE_SET, TIM1_OCNIDLESTATE_SET);
TIM1_OC1Init(TIM1_OCMODE_PWM2, TIM1_OUTPUTSTATE_DISABLE, TIM1_OUTPUTNSTATE_DISABLE, 0x0000, TIM1_OCPOLARITY_HIGH, TIM1_OCNPOLARITY_HIGH, TIM1_OCIDLESTATE_SET, TIM1_O ...
| ||
| ||
| ||
发表于 2017-11-11 01:48:08
|
显示全部楼层
| ||
| ||
| ||
|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )
GMT+8, 2024-11-22 18:12
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网