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

Example C code PIC to PIC serial Comunication

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



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Sep 28, 2006 4:14 pm     Reply with quote

This post has code for the 16F628 which uses the hardware UART
and just echoes back any character that it receives. To use this
code for your PIC, just change the #include file to 16F628A.H.
http://www.ccsinfo.com/forum/viewtopic.php?t=25130&start=2
domdom



Joined: 06 Sep 2006
Posts: 29

View user's profile Send private message

PostPosted: Fri Feb 09, 2007 9:56 pm     Reply with quote

But he is asking c code for PICs communication
Ttelmah
Guest







PostPosted: Sat Feb 10, 2007 6:08 am     Reply with quote

There is no difference.....
All you need is the RX on one chip connected to the TX on the other (and vice versa).

Best Wishes
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Sat Feb 10, 2007 7:09 am     Reply with quote

Please, don't respond to 5 months old threads, especially as the original poster didn't seem to have a problem with the given answer.
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