This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

philips reg924.h redefinition

in byte registers ,it declares
sfr CMP1 = 0xAC;
sfr CMP2 = 0xAD;

while in bit registers it declares
sbit KB7 = P0^7;
sbit T1 = P0^7;
sbit KB6 = P0^6;
sbit CMP1 = P0^6;
sbit KB5 = P0^5;
sbit CMPREF = P0^5;
sbit KB4 = P0^4;
sbit CIN1A = P0^4;
sbit KB3 = P0^3;
sbit CIN1B = P0^3;
sbit KB2 = P0^2;
sbit CIN2A = P0^2;
sbit KB1 = P0^1;
sbit CIN2B = P0^1;
sbit KB0 = P0^0;
sbit CMP2 = P0^0;


Is it a error?

IDE-Version:
uv ision3 V3.30
C Compiler: C51.Exe V8.02


thanks

Parents
  • sfr CMP1 = 0xAC;
    ...
    sbit CMP1 = P0^6;


    my horse is named Phred
    your horse is named Phred
    both are in the same stable
    Joe show up at the stable and tell the attendant to go get Phred

    Got it?

    Erik

Reply
  • sfr CMP1 = 0xAC;
    ...
    sbit CMP1 = P0^6;


    my horse is named Phred
    your horse is named Phred
    both are in the same stable
    Joe show up at the stable and tell the attendant to go get Phred

    Got it?

    Erik

Children
No data