?? msp-uart-38400.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: 38400bps division factor: 65.1 effective baud rate: 38402.5bps maximum error: 0.1916us 0.74% time table (microseconds): event desired effective error error% startbit->D0 26.04 26.00 +0.0416 +0.16 D0->D1 52.08 52.00 +0.0833 +0.32 D1->D2 78.12 78.00 +0.125 +0.48 D2->D3 104.17 104.00 +0.167 +0.64 D3->D4 130.21 130.40 -0.192 -0.74 D4->D5 156.25 156.40 -0.15 -0.58 D5->D6 182.29 182.40 -0.108 -0.42 D6->D7 208.33 208.40 -0.0666 -0.26 D7->stopbit 234.38 234.40 -0.025 -0.10 end of stopb 260.42 260.40 +0.0166 +0.06*/UBR00=0x41; UBR10=0x00; UMCTL0=0x10; /* uart0 2500000Hz 38402bps */UBR01=0x41; UBR11=0x00; UMCTL1=0x10; /* uart1 2500000Hz 38402bps */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -