View previous topic :: View next topic |
Author |
Message |
steve.booth
Joined: 18 Oct 2004 Posts: 7
|
USART & High BRG Bit |
Posted: Mon Oct 18, 2004 5:09 am |
|
|
I cannot get the CCS compiler to set the USART BRG 'HIGH' bit.
Is there a flag I need to use ?
Thanks _________________ Steve |
|
|
ppa
Joined: 24 Sep 2004 Posts: 2
|
|
Posted: Mon Oct 18, 2004 5:35 am |
|
|
Hi Steve,
Have you tried the following ?:
#bit BRGH=0x98.2
BRGH=1
Paresh |
|
|
steve.booth
Joined: 18 Oct 2004 Posts: 7
|
|
Posted: Mon Oct 18, 2004 5:40 am |
|
|
Paresh,
Yes I have tried that, and it works OK, bit it seemed rather crude having to set that specifically.
Thanks anyway,
Steve _________________ Steve |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Mon Oct 18, 2004 6:42 am |
|
|
Are you using #use RS232? There is a flag for it. I think it only uses it if need be though. |
|
|
|