Mich verwirrt das es im Datenblatt bei den Registern heißt das wenn "When this bit is set" steht, das ich nie weiß ob das jetzt eine 0 oder eine 1 im Register bedeutet. Wo steht das?
Warum steht dann manchmal im Datenblatt in klammer ..bit is set(one)? Das macht es doch überflüssig, oder etwa bei manchen Registern ist es umgekehrt? Auszug: attiny45 Bit 7 – CTC1 : Clear Timer/Counter on Compare Match When the CTC1 control bit is set (one), Timer/Counter1 is reset to $00 in the CPU clock cycle after a compare match with OCR1A register. If the control bit is cleared, Timer/Counter1 continues counting and is unaffected by a compare match.
ghgas schrieb: > Das macht es doch überflüssig Ja. jojo schrieb: > 0 = cleared. Oder auch einfach “the bit is clear”.
ghgas schrieb: > Warum steht dann manchmal im Datenblatt in klammer ..bit is set(one)? > Das macht es doch überflüssig, oder etwa bei manchen Registern ist es > umgekehrt? Warum auch immer. Das (one) ändert an der Tatsache set=1 nichts. > > Auszug: attiny45 > > Bit 7 – CTC1 : Clear Timer/Counter on Compare Match > When the CTC1 control bit is set (one), Timer/Counter1 is reset to $00 > in the CPU clock cycle after a compare > match with OCR1A register. If the control bit is cleared, Timer/Counter1 > continues counting and is unaffected by a > compare match.
Hallo! Du musst nur bei den Fusebits aufpassen: programmed=low unprogrammed=high !!!
Route 66 schrieb: > Hallo! > Du musst nur bei den Fusebits aufpassen: > programmed=low > unprogrammed=high Wer PROMs kennt, versteht das. Unprogrammiert ist der Inhalt immer 0xFF. Beim Programmieren "brennt" man die Bits (Fuses) einfach durch - also LOW.
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
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.