View previous topic :: View next topic |
Author |
Message |
hadeelqasaimeh
Joined: 05 Jan 2006 Posts: 105
|
software RS232 |
Posted: Tue Apr 25, 2006 3:17 am |
|
|
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](images/smiles/icon_redface.gif) |
|
![](templates/subSilver/images/spacer.gif) |
hadeelqasaimeh
Joined: 05 Jan 2006 Posts: 105
|
|
Posted: Tue Apr 25, 2006 3:19 am |
|
|
sorry imean this:
Code: |
fprintf(RF,"%S",RX);
|
|
|
![](templates/subSilver/images/spacer.gif) |
Storic
Joined: 03 Dec 2005 Posts: 182 Location: Australia SA
|
|
![](templates/subSilver/images/spacer.gif) |
hadeelqasaimeh
Joined: 05 Jan 2006 Posts: 105
|
|
Posted: Tue Apr 25, 2006 2:19 pm |
|
|
thats exactly like what i have done.....also i tried again but still not working!!! |
|
![](templates/subSilver/images/spacer.gif) |
Storic
Joined: 03 Dec 2005 Posts: 182 Location: Australia SA
|
|
Posted: Tue Apr 25, 2006 5:40 pm |
|
|
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](images/smiles/icon_wink.gif) |
|
![](templates/subSilver/images/spacer.gif) |
|