i'm not sure how PBP will handle this baudrate crystal with a define osc of 20MHZ... i guess everything will run 22.1184/20 time faster SO, SPBRG must be 22.1184/20 = 1.10592 slow
SPBRG=10 'should be 9.946...
Or maybe i'm totally wrong there...
BUT, can you try 20MHZ one with a simple
DEFINE HSER_BAUD 115200
instead of setting SPBRG to test only! if nothing is different try at a slower baudrate, let's say 2400.
suggest to include this line in your receiver too to avoid buffer overrun...
DEFINE HSER_CLROERR 1
BUT, what happen when you connect via MAX232 to your PC. Can you receive/transmitt correctly???
P.S wilma=(wilma*3)-50.... and wilma is a BYTE ?!? Should be word IMO.
Last edited by mister_e; - 19th December 2004 at 13:10.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks