CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Changing Soft Uart Baud

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Sparky



Joined: 02 Sep 2005
Posts: 7

View user's profile Send private message

Changing Soft Uart Baud
PostPosted: Sat Mar 05, 2011 6:02 pm     Reply with quote

Hello,

Is it possible to change a soft uart baud while the program is running? I know there is set_uart_speed() but I believe that only works for the hardware uart.

Thanks.
temtronic



Joined: 01 Jul 2010
Posts: 9173
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Sat Mar 05, 2011 6:58 pm     Reply with quote

If you use the 'search' feature here, you should get a couple of hits about setting up 2(or more) use rs232(....) with stream option.

Far easier than the old way of locating the memory location of the baud rate counter and changing it.....!!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Mar 05, 2011 7:53 pm     Reply with quote

Quote:
Is it possible to change a soft uart baud while the program is running?

See this thread which has sample code by Ttelmah:
http://www.ccsinfo.com/forum/viewtopic.php?t=24090
Sparky



Joined: 02 Sep 2005
Posts: 7

View user's profile Send private message

PostPosted: Sun Mar 06, 2011 5:41 am     Reply with quote

Thank you very much for the help.

I am now using 2 streams with different bauds on the same pins and it works perfectly.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group