Quicky on USART Baud rates at 20MHz crystal.

General discussion relating to the library modules supplied with the compiler

Moderators: David Barker, Jerry Messina

Post Reply
Francis
Registered User
Registered User
Posts: 314
Joined: Sun Mar 25, 2007 9:40 am
Location: Devon

Quicky on USART Baud rates at 20MHz crystal.

Post by Francis » Sun Dec 13, 2009 4:40 pm

If I wanted to make a selectable USART baud rate for slower baud options is there a slick way to do the equivalent of

Code: Select all

#option USART_BRGH = False
on the fly?

Or do I have to set the BRG manually?
I don't mind doing it manually, but I was wondering if there was a 'pretty' way of doing it in an SF way ;)

Post Reply