EDIT: Your baud looks good.
At first I didn't see your BRG16 =1, but Steves Picmulticalc is still good. I'll see if I can find anything real![]()
Steves PicMultiCalc tool works great for this, and give you text results you can just paste in to your code. Just enter OSC speed, baudrate, and press the go button.
DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_TXSTA 20h ' Enable transmit, BRGH = 0
DEFINE HSER_SPBRG 12 ' 9600 Baud @ 8MHz, 0.16%
DEFINE HSER_CLROERR 1 ' Clear overflow automatically
http://www.picbasic.co.uk/forum/cont....-PICMultiCalc
Bookmarks