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

18f252 rs232 int_rda problem

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







PostPosted: Tue Jul 22, 2008 2:29 am     Reply with quote

A a comment, the 'variable never used RS232_ERRORS' warning, is just an annoyance of the compiler, and remember is only a _warning_. It does not in itself imply that anything is really wrong, it is just telling you this, so that if it is a variable that isn't used, you can possibly get rid of it, and save a small amount of RAM
If you add the 'errors' statement to the RS232 setup (which should be the default), the compiler does two things. First it adds to the getc code, routines to clear errors if set. Then it generates a variable called 'RS232_ERRORS', and when it clears an error, makes a copy of the error bits into this. Hence you can at any time read this variable, and see what the last error was. However if you don't read the variable, you get the warning, which 'worries' some people, who don't understand what is happening.

Best Wishes
sella
Guest







PostPosted: Tue Jul 22, 2008 7:44 am     Reply with quote

Hi! Thanks for the reply.
I tried to compare the data received with another data, but I still couldn't get the output desired. I can't understand why the data is not compared.
Please kindly reply.
thanks
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