Thanks you all, is there a codes samples can be offered?

As I mentioned I am beginner with proton development suite and pic basic pro compiler,

Mister e was given some good high light,
somehow my points is my target X device baud rate unknown, device it might be even or odd parity, I want to build a baud trace function for that, when I get correct handshake with target device I take that result in temporary variable as a my default baud rate for communicate with that device..
If I made connection to another X device process routines will be same,

Baud rates range can be 150 ~ 115000 it doesn’t matter what baud rate is come or generated from X device, for example it can be 9900.

So far I get some information from Other forms and manual of compilers what I am using for instance 1000000 / baud rate – 20 gives decimal numbers set up my device sufficient, if I know my target X device will communicate with baud rate for example 9600 above mentioned calculation formula result Hex format should be 54h .

It might be there is some limitation with micro controller according the clock rate however my theory I do not want to depend on micro controller serial port pins it can be shifted any I/O pin get a freedom of max usage of such a micro controller.

Regards

Joe