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

Easy way to set RCONbits.POR?

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



Joined: 16 Oct 2010
Posts: 7

View user's profile Send private message

Easy way to set RCONbits.POR?
PostPosted: Sat Oct 16, 2010 7:21 pm     Reply with quote

Hi,
I'm new to CCS. Wonder is there a easy way to set RCONbits.POR like I can do in C18?

Thanks,
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

PostPosted: Sat Oct 16, 2010 8:06 pm     Reply with quote

See #bit on page 94 of the current manual.
_________________
Google and Forum Search are some of your best tools!!!!
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Oct 16, 2010 9:06 pm     Reply with quote

Also, if you have the CCS IDE version of the compiler (PCWH, PCWHD)
you can create a file of structures of register bits, which can be accessed
exactly as you show.

This thread explains how to make the register bits header file:
http://www.ccsinfo.com/forum/viewtopic.php?t=40862
rampage



Joined: 16 Oct 2010
Posts: 7

View user's profile Send private message

PostPosted: Sat Oct 16, 2010 10:44 pm     Reply with quote

Thanks very much, I generated the register header file now. Very helpful
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