Ayne
New Member
Can we define a constant to our SFR like below???
&
supose i define a constant x = PORTB,3 like below
if i change the the value of x then the whole PORTB will effected or just bit 3 of PORTB will be effected??
what will be the result ???
OR
&
supose i define a constant x = PORTB,3 like below
Code:
#define x PORTB,3
Code:
movlw b'10110110'
movwf x
Code:
PORTB = 10110110
Code:
PORTB.3 = 0