Hello. I am using the PICLITE C ompiler for my PIC programs and I need to refer to the 'R/W' bit of the SSPSTAT register. The compiler is not recognizing 'R/W' or 'RW'.
Anybody knows what that bit is called? Thanks a lot.
Hello. I am using the PICLITE C ompiler for my PIC programs and I need to refer to the 'R/W' bit of the SSPSTAT register. The compiler is not recognizing 'R/W' or 'RW'.
Anybody knows what that bit is called? Thanks a lot.
The answer is in the include file for your PIC. For a 16F87x, it would be STAT_RW. I guess it should be the same for any PIC16, but maybe check your include file to make sure?