It is a must to set SPBRG value, when interfacing with UART/USART device with PIC micro controllers.
Where Fosc is the frequency of the crystal used in PIC micro eg: 20MHz. And Baud Rate is the desired required baud rate.
The tool below can be used to calculate the SPBRG and Error %.
Desired Baud rate :
Is Synchronous
Result: Use calculate button