Zitat aus 'm Datenblatt
1. Initialize the SPBRG register for the appropriate
baud rate. If a high speed baud rate is desired,
set bit BRGH (Section 9.1). -> falsche Reihenfolge
2. Enable the asynchronous serial port by clearing
bit SYNC and setting bit SPEN. -> SPEN nicht gesetzt!
3. If interrupts are desired, then set enable bit
RCIE.
4. If 9-bit reception is desired, then set bit RX9.
5. Enable the reception by setting bit CREN.
6. Flag bit RCIF will be set when reception is complete
and an interrupt will be generated if enable
bit RCIE is set.
7. Read the RCSTA register to get the ninth bit (if
enabled) and determine if any error occurred
during reception.
8. Read the 8-bit received data by reading the
RCREG register.
9. If any error occurred, clear the error by clearing
enable bit CREN.
10. If using interrupts, ensure that GIE and PEIE
(bits 7 and 6) of the INTCON register are set.
korrigier erstmal das und dann poste, ob du Erfolg hattest, oder nicht...
Wenn nicht, dann setz ich mich mal genauer mit dem Problem auseinander...
MfG
Stefan
PS: Sorry dass ich mich erst heute deinem Problem annehme, aber bin grad etwas darmgrippig...
Lesezeichen