Forum: Mikrocontroller und Digitale Elektronik BASCOM-AVR: Bit-Positionen


von Heini (Gast)


Lesenswert?

In der BASCOM-AVR Hilfe findet sich folgender Text:

| To refer to the bit number you must precede the variable name by BIT.
|
| Sbrs R16 , BIT.B  'notice the point!
|
| Since this was the first dimensioned bit the bit number is 7.
| Bits are stored in bytes and the first dimensioned bit goes in
| the LS bit.

Nach meinem Verständnis bedeutet das Folgendes:

1.   Wer gezielt eine bestimmte Bit-Position besetzten möchte, muss
  notfalls zuvor eine geeignete Anzahl Dummy-Bits dimensionieren.

2.  Das LS-Bit trägt die Nummer 7, das MS-Bit die Nummer 0.

Stimmt das so?
Falls ja, fände ich das etwas eigenwillig.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.