1/baud = (3 + TSEG1 + TSEG2)x 2 x(1/fxtal)x(BTR0 + 1)
====》
baud = FXTAL / ( 2 x (BTR0 + 1)x (TSEG1 + TESG2 + 3))
说明:BTR0代表BTR0寄存器低6位的值,TSEG1代表BTR1寄存器低4位的值,TSEG2代表BTR1寄存器中4 5位二进制数的值
---------------------
作者:kerneler_
来源:CSDN
原文:https://blog.csdn.net/skyflying2012/article/details/8937601
版权声明:本文为博主原创文章,转载请附上博文链接!