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

pic16f877a serial communication

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



Joined: 28 Feb 2012
Posts: 1

View user's profile Send private message Send e-mail

pic16f877a serial communication
PostPosted: Tue Feb 28, 2012 8:52 am     Reply with quote

Hey ppl,
I'm working on a project in which I've to send a number from one pic16f877a to another one of the same kind, so that the data could be processed there. No matter what I do, its not working :( ... The data is sent, but is not received correctly.
Could somebody please help me with at least the smallest example of pic to pic serial communication that works perfectly. I tried googling, but I couldn't find anything.

I'm kinda desperate here. Please do help.

Thanks.
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Tue Feb 28, 2012 9:10 am     Reply with quote

OK, look at the top of the .lst file in your compiler directory and give us your
compiler version ( 3.xxx or 4.xxx) and then show us what code you have so far.
_________________
Google and Forum Search are some of your best tools!!!!
temtronic



Joined: 01 Jul 2010
Posts: 9231
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Feb 28, 2012 10:57 am     Reply with quote

Have you even looked at the examples CCS kindly supplies in the EXAMPLES folder ?? What about opening the HELP files and looking in the FAQ section where they show and tell how to do serial communications?
It's the same FAQ they had back in 1999, the example worked then for me. it has to work for you today!!

Also HOW do you know it's the receiving PICs problem? You haven't shown us either program..... AND what hardware are you using ???
gpsmikey



Joined: 16 Nov 2010
Posts: 588
Location: Kirkland, WA

View user's profile Send private message

PostPosted: Tue Feb 28, 2012 7:27 pm     Reply with quote

Another key piece of information missing is the baud rate you are trying to run at and are you using the internal uart or bit-banging ?

mikey
_________________
mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 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