View previous topic :: View next topic |
Author |
Message |
rampage
Joined: 16 Oct 2010 Posts: 7
|
Easy way to set RCONbits.POR? |
Posted: Sat Oct 16, 2010 7:21 pm |
|
|
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
|
|
Posted: Sat Oct 16, 2010 8:06 pm |
|
|
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
|
|
Posted: Sat Oct 16, 2010 9:06 pm |
|
|
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
|
|
Posted: Sat Oct 16, 2010 10:44 pm |
|
|
Thanks very much, I generated the register header file now. Very helpful |
|
|
|