Bitweise Operatoren — Änderungen 6152 → 6153

Zeile 92: Zeile 92:
  
 
=== Anwendung in C ===
 
=== Anwendung in C ===
−
PORTx |=  (1 << BitNummer);  // Bit in PORTx setzen
+
<c>PORTx |=  (1 << BitNummer);  // Bit in PORTx setzen </c><br>
−
PORTx &= ~(1 << BitNummer);  // Bit in PORTx löschen
+
<c>PORTx &= ~(1 << BitNummer);  // Bit in PORTx löschen</c>