mmm, could be many things, can you post your whole code?
One pointer, if you don't use any HSERIN/HSEROUT in your code, the compiler will never consider your SPBRG, TXSTA, RCSTA define. In this case you should write directly to them. Same thing with The TRISx. HSERIN/HSEROUT will do the job for you, but if you don't use them... maybe you'll receive character but... maybe you'll never saw them at the output... maybe.
Another Thing...

Originally Posted by
Koosa's code
DEFINE HSER_CLOERR 1 ' automatic clear overrun error
should be
Code:
DEFINE HSER_CLROERR 1 ' automatic clear overrun error
The define's spelling is verrrrrrrrrrrrrrrryyy important. In uppercase tooo.
Maybe the following may help you.
http://www.picbasic.co.uk/forum/show...42&postcount=2
http://www.picbasic.co.uk/forum/show...1&postcount=11
Last edited by mister_e; - 8th January 2006 at 18:18.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks