Hi,

Have searched and re-read the PBP Manual but can't see the solution!

Using the USART I can't seem to select a Baud rate from within a program.
Am I missing something obvious!!! or can't it be done?
I define the port at the start as shown:

DEFINE HSER_RCSTA 90h
DEFINE HSER_TXSTA 20h
DEFINE HSER_SPBRG 32
DEFINE HSER_CLROERR 1

But any attempt to change these values brings a compiler error.

I had no problems with the software commands SERIN2 or SEROUT2.

Thanks,
Bob