Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Communication problem [solved]
#6
You configure the intosc to 500kHz. Take a look at the OSCCON register in the datasheet again.
Code:
            bsf        OSCCON, IRCF0    ;bank 1
            bsf        OSCCON, IRCF1
            bsf        OSCCON, IRCF2
9600 is not a valid baud rate with 500kHz oscillator and your current UART configuration. The error is 8.5%.
Reply


Messages In This Thread
Communication problem [solved] - by egoltzman - 2012-07-20, 22:18:15
RE: Communication problem - by Mikael Gustavsson - 2012-07-21, 21:49:03
RE: Communication problem - by egoltzman - 2012-07-21, 21:59:47
RE: Communication problem - by Mikael Gustavsson - 2012-07-24, 00:05:16
RE: Communication problem - by egoltzman - 2012-07-24, 07:17:48
RE: Communication problem - by Mikael Gustavsson - 2012-07-25, 20:35:20
RE: Communication problem - by egoltzman - 2012-07-25, 21:28:26
RE: Communication problem - by Mikael Gustavsson - 2012-07-29, 23:05:56

Forum Jump:


Users browsing this thread: 1 Guest(s)