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

AntoniaRoons
Fri Apr 19 2024, 09:59 pm
carpinteyrowrl
Fri Apr 19 2024, 02:51 pm
DonaldJAX
Fri Apr 19 2024, 01:08 pm
Lewisuhakeply
Thu Apr 18 2024, 06:00 pm
Darrellciz
Thu Apr 18 2024, 11:07 am
Charlessber
Thu Apr 18 2024, 09:29 am
BartonSem
Thu Apr 18 2024, 04:56 am
DonaldKnown
Thu Apr 18 2024, 12:24 am