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

PIC USART help !

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



Joined: 10 Nov 2009
Posts: 2

View user's profile Send private message

PIC USART help !
PostPosted: Wed Nov 11, 2009 4:04 am     Reply with quote

Hello,
I am fairly new to microcontrollers (EE analog designer normally); I am going through the PIC feature by feature.

I am having difficulty trying to receive an RS232 string from another uController (this is a test device that keeps sending a string to the receiving controller).

Does anyone have a basic template that could help me figure out how this works??? Something really simple that terminates on a 'carriage return'. Note: I am using the receive interrupt.

All book references I have show how to receive a single RS232 character only.

Thanks
Phil
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Nov 11, 2009 1:45 pm     Reply with quote

Look at the bget_string() function (buffered get_string) in this CCS file:
Quote:
c:\program files\picc\examples\ex_zmd.c
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