Jieli-Tech / fw-AC63_BT_SDK

Firmware for Generic Bluetooth SDK(AC63 series), Support AC631N/AC635N/AC636N/AC637N/AC632N, compatible with AC69 series without audio support.
Apache License 2.0
172 stars 99 forks source link

AC6329C PWM受其他引脚影响 #108

Closed FunnyKong closed 3 years ago

FunnyKong commented 3 years ago

在用PB7作PWM输出时,受PB6的影响(PB6设置为AD key,外部上拉),当按键没有按下时 (PB6高电平)PWM占空比乱跳,按键按下时就是准确的
timer_pwm_init(JL_TIMER3, IO_PORTB_07, 10000, 2000); 可能是什么原因造成的呢

FunnyKong commented 3 years ago

后续发现:第一种情况,取消AD key PWM 按键不按键都在乱跳,发现外部晶振没有起振; 第二种情况,AD key使能,当按键按下时晶振起振,未按下时未起振;