a question

#567277
Lesenswert?
• ▲
▼
> I want to kown the differece between PIOUT&=~BIT0 andPIOUT ^=BIT0. they
> are all Reset  ,all right ?

No.
&  means and
^  means xor (exclusive or)

So in the first case bit BIT0 gets reset.
But in the second case the bit gets toggled. It depends
on the previous state of of the bit what its new state
will be. 0 toggles to 1, 1 toggles to 0

> thank you!
you are welcome

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren