This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2541 PWM

Other Parts Discussed in Thread: CC2541

芯片:CC2541

协议栈:1.4

使用场景:无线遥控车

问题描述:

我是使用1.4里的从机例程,通过蓝牙来输出PWM来控制小车(禁止了POWER_SAVING)。

想输出周期20ms,宽度1.5ms的PWM,但是在蓝牙例程中输出的结果却是显示有误差。

以为是在蓝牙期间有内外振荡器的切换,但经过测试之后显示并没有这样。

也经过去掉蓝牙,只留PWM,输出结果就是正确的。

如果不去掉蓝牙,不经过蓝牙设置PWM,手动开启,也会出现误差,但我需要精确的PWM,不能有误差。

出现误差的原因是什么?又该怎么解决?