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

Software Serial Port

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







Software Serial Port
PostPosted: Wed Jan 26, 2005 5:36 pm     Reply with quote

Hello...

I need to interfase a GPS (4800bps Inverted) with a PIC16F877 running at 16MHz. On the HUART I have a serial connection to the PC for Debug. My program is very simple, it uses two #USE_RS232 declaration, at two different speeds, and with differente STREAMS name (one is PC and another one is GPS).
The problem is that I can send Data to PC, but cannot receive data from the GPS. I'm using PortB.2 for receiving data... Do I need to set the TRIS register? or #USE_RS232 does it for me? Does anyvody experienced problems when using a software serial port?
Thanks
Ezequiel
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Thu Jan 27, 2005 6:09 am     Reply with quote

Do you have any interrupts enabled? Post your code.
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