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

basic USART question

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



Joined: 29 Jul 2009
Posts: 154
Location: at work

View user's profile Send private message MSN Messenger

basic USART question
PostPosted: Thu Mar 17, 2011 11:53 am     Reply with quote

Previously I've been using software RS-232 to communicate between an RF receiver and a 16F684, but while the pic receives data the whole program slows down. I've been considering switching to a 16f688 which has a built in USART. Will having hardware USART fix the problem of the code slowing as data is received?
_________________
Vinnie Ryan
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Mar 17, 2011 12:10 pm     Reply with quote

Well, yes, if you use a interrupt-driven receive buffer. The amount of time
taken from your main program to receive one character can be as little as
10 or 11 microseconds, if you run the PIC at 20 MHz. Look at this CCS
example file:
Quote:

c:\program files\picc\examples\ex_sisr.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