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
Re: #byte, #bit
Posted: Wed Apr 23, 2003 1:50 pm
:=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
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