Bei mir spuckt der Online Baudraten Rechner was anderes aus:
Calculator output:
1 | /*
|
2 | uart calculator: http://mspgcc.sourceforge.net/baudrate.html
|
3 | this program license is at: http://www.fsf.org/licenses/licenses.html#GPL
|
4 | this program is distributed WITHOUT ANY WARRANTY
|
5 |
|
6 | clock: 4912500Hz
|
7 | desired baud rate: 115200bps
|
8 | division factor: 42.6
|
9 | effective baud rate: 115317bps
|
10 | maximum error: 0.1012us 1.17%
|
11 |
|
12 | time table (microseconds):
|
13 | event desired effective error error%
|
14 | startbit->D0 8.68 8.75 -0.0726 -0.84
|
15 | D0->D1 17.36 17.30 +0.0583 +0.67
|
16 | D1->D2 26.04 26.06 -0.0143 -0.16
|
17 | D2->D3 34.72 34.81 -0.0869 -1.00
|
18 | D3->D4 43.40 43.36 +0.0439 +0.51
|
19 | D4->D5 52.08 52.11 -0.0286 -0.33
|
20 | D5->D6 60.76 60.87 -0.101 -1.17
|
21 | D6->D7 69.44 69.41 +0.0296 +0.34
|
22 | D7->stopbit 78.12 78.17 -0.0429 -0.49
|
23 | end of stopb 86.81 86.72 +0.0879 +1.01
|
24 | */
|
25 |
|
26 | UBR00=0x2A; UBR10=0x00; UMCTL0=0x6D; /* uart0 4912500Hz 115200bps (115317bps) */
|
27 | UBR01=0x2A; UBR11=0x00; UMCTL1=0x6D; /* uart1 4912500Hz 115200bps (115317bps) */
|
Es kann ja noch an anderen Dingen hängen (falsche Verdrahtung, falsche
Einstellung der Gegenseite). Klappern die Bits an den UART1-Pins
wenigstens?
Ein cooles Tool übrigens!