I am using a 20MHz and i have 10MHz in spare. Can someone please tell me what baud rate i need to use in my UART code. The signal is Asynchronous and continous.
said you should ask more in a more clear way what you want or need.
1) Do you mean wich value you have to LOAD to the SPBRG to have the same baud rate with two pics one at 10Mhz and another at 20Mhz?
2) Do you mean wich value you have to LOAD to the SPBRG to have the same baud rate when switching your oscillator from 20Mhz to 10Mhz? --> the answer is there's no such a number that can do this. If SPBRG has a fixed value in the software then the baud rate will depend on the XTAL frequency.