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 CCS Technical Support

#USE RS232 -> ERRORS

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



Joined: 04 Aug 2015
Posts: 16
Location: United States

View user's profile Send private message

#USE RS232 -> ERRORS
PostPosted: Thu Aug 20, 2015 9:41 am     Reply with quote

Hey all,

After reading in the CCS C Compiler manual updated in May 2015, I still do not clearly understand what ERRORS mean for the #USE RS232 preprocessor directives. I have used it in my previous codes but it does not seem to change anything flow or content.

ERRORS: "Used to cause the compiler to keep receive errors in the variable RS232_ERRORS and to reset errors when they occur."

Anyone have a better definition for this?

Thank you!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Aug 20, 2015 10:39 am     Reply with quote

They mean UART framing errors and hardware buffer overrun errors.
jeremiah



Joined: 20 Jul 2010
Posts: 1353

View user's profile Send private message

PostPosted: Thu Aug 20, 2015 10:44 am     Reply with quote

When you operate a uart you can encounter the errors mentioned by pcm. Normally this makes your uart dead in the water until you clear them. The ERRORS keyword does this for you when read the uart buffer. It also provides a variable you can optionally check to see which errors occurred. It is considered a "required" option for the uart for most users
12Lapointep



Joined: 04 Aug 2015
Posts: 16
Location: United States

View user's profile Send private message

PostPosted: Thu Aug 20, 2015 11:36 am     Reply with quote

Thank you all for the comments. It is very clear now.
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