![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
Sirio Guest
|
RS-232 and INT_RDA |
Posted: Fri Jun 27, 2003 9:51 am |
|
|
I've got some problems with PIC16F876A and RS-232.
The communication work properly, but sometimes the u stop to receive data from rs-232.
I think is some overrun problem.
#fuses HS,NOBROWNOUT,NOWDT,NOPROTECT,NOLVP,NOPUT
#use delay(clock = 8000000)
#use rs232(baud = 9600, xmit = PIN_C6 , rcv = PIN_C7, ERRORS)
#use fast_io(a)
#use fast_io(b)
#use fast_io(c)
The question is:
how to manage and reset rs-232 errors?
Thanks.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515607 |
|
![](templates/subSilver/images/spacer.gif) |
R.J.Hamlett Guest
|
Re: RS-232 and INT_RDA |
Posted: Fri Jun 27, 2003 10:27 am |
|
|
:=I've got some problems with PIC16F876A and RS-232.
:=The communication work properly, but sometimes the u stop to receive data from rs-232.
:=I think is some overrun problem.
:=
:=#fuses HS,NOBROWNOUT,NOWDT,NOPROTECT,NOLVP,NOPUT
:=#use delay(clock = 8000000)
:=#use rs232(baud = 9600, xmit = PIN_C6 , rcv = PIN_C7, ERRORS)
:=#use fast_io(a)
:=#use fast_io(b)
:=#use fast_io(c)
:=
:=The question is:
:=how to manage and reset rs-232 errors?
:=Thanks.
There are two routes.
The first, is to monitor the 'errors' variable, that you have allready specified to use. The second is to go 'DIY'. Have a look at my post about handling an 11byte packet, where I clear the overrun error.
Best Wishes
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515608 |
|
![](templates/subSilver/images/spacer.gif) |
|
|
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
|