?? msp-uart-115200.txt
字號:
/* uart calculator: http://mspgcc.sourceforge.net/baudrate.html this program license is at: http://www.fsf.org/licenses/licenses.html#GPL this program is distributed WITHOUT ANY WARRANTY clock: 2500000Hz desired baud rate: 115200bps division factor: 21.7 effective baud rate: 115207bps maximum error: 0.2444us 2.82% time table (microseconds): event desired effective error error% startbit->D0 8.68 8.80 -0.119 -1.38 D0->D1 17.36 17.60 -0.239 -2.75 D1->D2 26.04 26.00 +0.0416 +0.48 D2->D3 34.72 34.80 -0.0777 -0.90 D3->D4 43.40 43.60 -0.197 -2.27 D4->D5 52.08 52.00 +0.0833 +0.96 D5->D6 60.76 60.80 -0.0361 -0.42 D6->D7 69.44 69.20 +0.244 +2.82 D7->stopbit 78.12 78.00 +0.125 +1.44 end of stopb 86.81 86.80 +0.0055 +0.06*/UBR00=0x15; UBR10=0x00; UMCTL0=0x5B; /* uart0 2500000Hz 115207bps */UBR01=0x15; UBR11=0x00; UMCTL1=0x5B; /* uart1 2500000Hz 115207bps */
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -