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

Urgent, Help with Usart

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



Joined: 18 Sep 2008
Posts: 2

View user's profile Send private message

Urgent, Help with Usart
PostPosted: Thu Sep 18, 2008 4:25 pm     Reply with quote

I've made an application where I need to receive a data from the usart.
I used to compile with MPLAB, but now I need to compile with CCS. The
problem that I have is that when I receive data I need to clear the buffer
of the Usart, because next I need to receive some other data. But in
some cases I have one or two of the data that have been sent before.

The real question here is, is there any instruction or way to clear the
receive usart buffer?

thanx a lot for your soon answer.
Jose
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Sep 18, 2008 4:42 pm     Reply with quote

See the clear_usart_receiver() function in this post:
http://www.ccsinfo.com/forum/viewtopic.php?t=1571&start=3
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