Bitweise Operatoren — Änderungen 6153 → 6154

Zeile 91: Zeile 91:
 
  (????????b OR 00110010b) = ??11??1?b
 
  (????????b OR 00110010b) = ??11??1?b
  
−
=== Anwendung in C ===
+
=== Bits-Setzen-Löschen in C ===
 
<c>PORTx |=  (1 << BitNummer);  // Bit in PORTx setzen </c><br>
 
<c>PORTx |=  (1 << BitNummer);  // Bit in PORTx setzen </c><br>
 
<c>PORTx &= ~(1 << BitNummer);  // Bit in PORTx löschen</c>
 
<c>PORTx &= ~(1 << BitNummer);  // Bit in PORTx löschen</c>