2011-07-15, 16:46:18
I ran your code in MPLAB SIM and looked at these registers:
BAUDCON1, RCSTA1, TXSTA1, SPBRG1, and SPBRGH1.
I found these two differences:
The C code sets TXSTA1.CSRC and RCSTA1.ADDEN. Both should make no difference.
I guess it's something with the oscillator or pin configuration.
BAUDCON1, RCSTA1, TXSTA1, SPBRG1, and SPBRGH1.
I found these two differences:
The C code sets TXSTA1.CSRC and RCSTA1.ADDEN. Both should make no difference.
I guess it's something with the oscillator or pin configuration.