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

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



Joined: 13 Jun 2007
Posts: 4

View user's profile Send private message

rs232
PostPosted: Wed Jun 13, 2007 3:40 am     Reply with quote

Hi..i have a problem..I am tryng to comunicate 2 pic with rs232..can I change default pin of comunication?? i'm using 18f4431..the pin of comunication are C6 anc C7. can I use any pin or there is a problem?? thanks
inservi



Joined: 13 May 2007
Posts: 128

View user's profile Send private message

PostPosted: Mon Jun 18, 2007 10:35 am     Reply with quote

Hello,

You can simply change these port in the #use rs232.
here is an example:
Code:

#define TX PIN_C4
#define RX PIN_C5
#use rs232( baud=9600, parity=N, xmit=TX, rcv=RX, bits=8 )


dro.
_________________
in médio virtus
Ttelmah
Guest







PostPosted: Mon Jun 18, 2007 12:58 pm     Reply with quote

You asked exactly this question only a few days ago.
The same answer applies.
You can use _any_ pin for RS232, but unless you use the hardware pins, you have to live with the restrictions of _software_ RS232. No buffering in either direction, to receive, your code _must_ be waiting for the characters as they arrive.

Best Wishes
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