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.

CC2540 串口0开偶检验无效

Other Parts Discussed in Thread: CC2540

使用CC2540打开串口0的偶校验,通过示波器观察并无校验位,添加的代码如下图,求解:

  • 找到问题了,还要设置传输位数从原来的8bit改为9bit:

    代码应该改为:

    真奇怪为什么还要加这个标志位,当加校验位的时候自动加上就省事多了,真是“万万没想到,啦啦啦啦啦!”只能怪我阅历太浅!