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 CCS Technical Support

how to change rs232 baud_rate on the fly

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



Joined: 27 Aug 2006
Posts: 5
Location: Memphis

View user's profile Send private message Visit poster's website

how to change rs232 baud_rate on the fly
PostPosted: Sun Oct 15, 2006 8:50 pm     Reply with quote

Hi,
Can I change speeds on the fly??

Eg, I want to run at 4800bps for a while then switch to 9600bps later.


Currently on PIC16F877A, I use:
#pragma use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8)


Thanks for any reply.
(This PCM compiler ain't half bad!)
j. pruett
www.gpscruise.com
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Oct 15, 2006 8:58 pm     Reply with quote

Quote:
Can I change speeds on the fly??

Download the CCS manual. Go to the section on "Built in Functions".
Each basic module in the PIC has a list of functions that are used with it.
In the list for RS-232, what function looks like it will do what you want ?

http://www.ccsinfo.com/downloads/ccs_c_manual.pdf
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