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

software RS232

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



Joined: 05 Jan 2006
Posts: 105

View user's profile Send private message

software RS232
PostPosted: Tue Apr 25, 2006 3:17 am     Reply with quote

hi all

i have some proplem with sending and recieving on software RS232
its dont work...i dont know why!!
Code:
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7,stream=GSM)
#use rs232(baud=9600, xmit=PIN_D0, rcv=PIN_D1,stream=RF)


Code:

fprintf(RF"%S",RX);


any body can help ,,please Embarassed
hadeelqasaimeh



Joined: 05 Jan 2006
Posts: 105

View user's profile Send private message

PostPosted: Tue Apr 25, 2006 3:19 am     Reply with quote

sorry imean this:

Code:


fprintf(RF,"%S",RX);


Storic



Joined: 03 Dec 2005
Posts: 182
Location: Australia SA

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

PostPosted: Tue Apr 25, 2006 3:20 am     Reply with quote

check this link http://www.ccsinfo.com/forum/viewtopic.php?t=26808 there are some similarities that may help

Andrew
_________________
What has been learnt if you make the same mistake? Wink
hadeelqasaimeh



Joined: 05 Jan 2006
Posts: 105

View user's profile Send private message

PostPosted: Tue Apr 25, 2006 2:19 pm     Reply with quote

thats exactly like what i have done.....also i tried again but still not working!!!
Storic



Joined: 03 Dec 2005
Posts: 182
Location: Australia SA

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

PostPosted: Tue Apr 25, 2006 5:40 pm     Reply with quote

Are you running an interupt in your code. I had soft RS232 problems some time ago and i had to add the disable ints in the #uses RS232
Code:
#use rs232(Stream=Term,baud=38400,xmit=PIN_B7,rcv=PIN_B6,bits=8,DISABLE_INTS)


Andrew
_________________
What has been learnt if you make the same mistake? Wink
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