Get a copy of PicMulticalc, click on USART calc, enter your parameter, and you should have something like...
	Code:
	DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
DEFINE HSER_SPBRG 32  ' 19200 Baud @ 10MHz, -1.36%
DEFINE HSER_CLROERR 1 ' Clear overflow automatically
 If that device have an EUSART, you can also use...
	Code:
	DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
DEFINE HSER_CLROERR 1 ' Clear overflow automatically
DEFINE HSER_SPBRG 129 ' 19200 Baud @ 10MHz, 0.16%
SPBRGH = 0
BAUDCON.3 = 1         ' Enable 16 bit baudrate generator
 Error % is better.
NOW, you have to show us your configuration fuse setting.
PICMultiCalc available bellow...
http://www.mister-e.org/pages/utilitiespag.html
Configuration Fuses setup and how to..
http://www.picbasic.co.uk/forum/showthread.php?t=543
Maybe your PIC is running @10MHZ... but you you didn't set the right Fuses.  That one have a few to set first  
				
			
Bookmarks