hallo, ich hab das problem dass das OCR1AH register immer mit 0x01 beschrieben wird. das geschieht immer an der selben stelle im prog. an dieser stelle wird das OCR1AH ungewollt auf 0x01 gesetzt. ldi temp, (1<<CS10) | (1<<WGM12) | (1<<WGM13) warum wird das register mit 0x01 überschrieben? hier ein auszug aus dem prog (atmega16).: ;startwert 6000 (entspricht servo mitte) ldi akt1H, 0x17 ldi akt1L, 0x70 ldi akt2H, 0x17 ldi akt2L, 0x70 ;timer top icr1 ldi temp, 0xFF out ICR1H, temp out ICR1L, temp ;Compare reg. out OCR1AH, akt1H out OCR1AL, akt1L out OCR1BH, akt2H out OCR1BL, akt2L ldi temp, (1<<COM1A1) | (1<<COM1B1) | (1<<WGM11) out TCCR1A, temp ldi temp, (1<<CS10) | (1<<WGM12) | (1<<WGM13) out TCCR1B, temp mfg relaxxo
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.