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

rs232 communication between pics 18f2550

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



Joined: 12 Dec 2017
Posts: 3

View user's profile Send private message

rs232 communication between pics 18f2550
PostPosted: Tue Dec 12, 2017 11:19 am     Reply with quote

Hello,
I want to transmit an integer (either '1' or '2') from one pic to another, that reads it and does something with it. Both pics are 18f2550. How do I achieve this with CCS?
Thank you
temtronic



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

View user's profile Send private message

PostPosted: Tue Dec 12, 2017 11:31 am     Reply with quote

Start by reading the FAQ section of the manual, then there are examples..in the 'examples' folder, searching this forum and the code library will find several 'hits'.
Always code a '1Hz LED' program to confirm the PIC run at the proper speed.
Always add 'ERRORS' to the USE rs232( ..options...)
Be sure gnd as well as TXD and RXD are between PICs.
Ensure correct RS232 tranceivers are used.
Ttelmah



Joined: 11 Mar 2010
Posts: 12622

View user's profile Send private message

PostPosted: Tue Dec 12, 2017 1:42 pm     Reply with quote

and look at the functions putc and getc.
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