Discussion in "Software" started by    nismo    Sep 13, 2008.
Sat Sep 13 2008, 02:52 am
#1
U1TCTL &= ~TXEPT;

what does the "&= ~" sign mean?
Sat Sep 13 2008, 10:39 am
#2
The '&=' is called the assignment operator.
For eg.the expression
x=x+2
can also be written as x+=2 using the assignment operator.

Thus U1TCTL &= ~TXEPT; means
U1TCTL = U1TCTL & (~TXEPT)
ie. U1TCTL is equal to the bitwise AND of U1TCTL with the complement (~) of TXEPT.

Also regarding assignment operators do note that expressions like x*=y+2 evaluates to
x=x*(y+2) and not x=x*y+2
Sat Sep 13 2008, 01:56 pm
#3
i have got it
thanks

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

ArktiTic
Sun May 05 2024, 07:06 pm
CesslasyNear
Sun May 05 2024, 02:58 pm
chimichmedic1204
Sun May 05 2024, 11:06 am
Jamiegob
Sun May 05 2024, 10:11 am
Gregoryjed
Sun May 05 2024, 10:02 am
Mariocax
Sun May 05 2024, 08:51 am
WilliamErync
Sun May 05 2024, 02:35 am
Danielnof
Sat May 04 2024, 11:12 pm