?? msp-uart-19200.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: 19200bps division factor: 130.2 effective baud rate: 19201.2bps maximum error: 0.1833us 0.35% time table (microseconds): event desired effective error error% startbit->D0 52.08 52.00 +0.0833 +0.16 D0->D1 104.17 104.00 +0.167 +0.32 D1->D2 156.25 156.40 -0.15 -0.29 D2->D3 208.33 208.40 -0.0666 -0.13 D3->D4 260.42 260.40 +0.0166 +0.03 D4->D5 312.50 312.40 +0.0999 +0.19 D5->D6 364.58 364.40 +0.183 +0.35 D6->D7 416.67 416.80 -0.133 -0.26 D7->stopbit 468.75 468.80 -0.05 -0.10 end of stopb 520.83 520.80 +0.0333 +0.06*/UBR00=0x82; UBR10=0x00; UMCTL0=0x84; /* uart0 2500000Hz 19201bps */UBR01=0x82; UBR11=0x00; UMCTL1=0x84; /* uart1 2500000Hz 19201bps */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -