Thanks for all the replies. Perhaps we have not chosen the best one example code.
We have already fixed the problem. We think the failure was in the autobauding. When we test with the PC the ...
Here is the code. We have proved with a wide range of baud rates, so that's not the problem. THe characters are sended right (tested with Hyperterminal), but the receiver PIC corrupts them. We have th ...
Somebody knows why a program in which the serial communications (USART) worked perfectly with a PIC16F87A (with USART) doesn't do the same in a PIC18F2520 (with EUSART).
Are there incompatible?.