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

different baud rates on hardware uart

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



Joined: 22 Nov 2003
Posts: 32

View user's profile Send private message

different baud rates on hardware uart
PostPosted: Wed Jan 14, 2004 4:17 pm     Reply with quote

I have a display that transmits at 19200 and has no need to receive and a GPS that receives at 4800 and has no need to transmit. Is it possible to use the hardware usart with Tx at 19200 and the Rx at 4800 at the same time?

Bob
bcs99



Joined: 22 Nov 2003
Posts: 32

View user's profile Send private message

correction
PostPosted: Wed Jan 14, 2004 4:18 pm     Reply with quote

That should be that - I want to transmit at 19200 to the display and receive at 4800 from the GPS.

Bob
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Wed Jan 14, 2004 4:59 pm     Reply with quote

You can use the function SET_UART_SPEED(baud, [stream]) to change the baud rate on the fly.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Wed Jan 14, 2004 7:19 pm     Reply with quote

But you cannot send and receive at the same time with different baud rates.
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Wed Jan 14, 2004 8:15 pm     Reply with quote

Yes. What you have to do is to set the baud rate and send, then switch the baud rate and receive. Shouldn't be difficult to manage.
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