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

#byte, #bit

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







#byte, #bit
PostPosted: Wed Apr 23, 2003 7:30 am     Reply with quote

In my code i need e.g. the byte SSPSTAT and its bit BF
I can define both by:

#byte SSPSTAT=0x94
#bit BF = SSPSTAT.0

Are there already any downloadable files, which make all
#byte and #bit definitions for a processor (PIC16F73,...) ?
___________________________
This message was ported from CCS's old forum
Original Post ID: 13942
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: #byte, #bit
PostPosted: Wed Apr 23, 2003 1:50 pm     Reply with quote

:=In my code i need e.g. the byte SSPSTAT and its bit BF
:=I can define both by:
:=
:=#byte SSPSTAT=0x94
:=#bit BF = SSPSTAT.0
:=
:=Are there already any downloadable files, which make all
:=#byte and #bit definitions for a processor (PIC16F73,...) ?
-------------------------------------------------------------

There was a previous post on this topic. It allows
you to access the register bits as elements of a structure.
For example, the BF bit can be accessed like this:

c = SSPSTAT.BF;

<a href="http://www.pic-c.com/forum/general/posts/990.html" TARGET="_blank">http://www.pic-c.com/forum/general/posts/990.html</a>
___________________________
This message was ported from CCS's old forum
Original Post ID: 13950
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