I have a variable called temp1.I need to check its bits individually.
The below code works for SFR.
But it won't work for GP registers.It gives an error "Operator '.' is not applicable to these operands 'temp1'"
The below code works for SFR.
Code:
if(PORTB.B0==1){.....}
But it won't work for GP registers.It gives an error "Operator '.' is not applicable to these operands 'temp1'"
Code:
if(temp1.B0==1){.....}
Last edited: