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

PIC 16F877A and GSM modem Interface

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



Joined: 26 Jan 2011
Posts: 31

View user's profile Send private message

PIC 16F877A and GSM modem Interface
PostPosted: Wed Jan 26, 2011 7:53 pm     Reply with quote

I am trying to read SMS using serial communication. But my serial communication shows an error. If I send three, or more than three bits to serial it receives only the three letters for the first time, then stops receiving further. Then I have to reset the controller to receive further. But its ok if I am sending characters one by one.
I am using CCS compiler for programming. Please help me in clearing this problem.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jan 26, 2011 8:50 pm     Reply with quote

To fix your problem:

Use an interrupt-driven serial receive buffer. Call the bkbhit() function
to see if characters are available in the buffer. Then call bgetc() to get
the characters. Also add ERRORS to your #use rs232() statement.
See the following CCS example file which shows how to do this:
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