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

RS-232 and INT_RDA

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







RS-232 and INT_RDA
PostPosted: Fri Jun 27, 2003 9:51 am     Reply with quote

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
R.J.Hamlett
Guest







Re: RS-232 and INT_RDA
PostPosted: Fri Jun 27, 2003 10:27 am     Reply with quote

:=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
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