Hallo! Versuche verzweifelt auf eeprom vom Tiny 15 zuzugreifen doch mir gelingt das nicht. Simulator macht irgendetwas obwohl ich mich nach datenblatt halte. hier mein Code. Schaut mal drüber. .include"tn15def.inc" .def temp_1=r16 .def temp_2=r17 .def zaehle=r18 .def zaehle_2=r19 .org 0x000 rjmp RESET RESET: ser temp_1 out ddrb,temp_1 clr temp_1 out portb,temp_1 ldi temp_1,0x01 out eear,temp_1 ldi temp_1,0x01 out eedr,temp_1 sbi eecr,eemwe sbi eecr,eewe rcall delay ldi temp_1,0x01 out eear,temp_1 sbi eecr,eere in temp_1,eedr out portb,temp_1 mainloop: rjmp mainloop delay: clr zaehle ldi temp_1,0xff loop1: inc zaehle cpse temp_1,zaehle rjmp loop1 clr zaehle inc zaehle_2 cpse temp_1,zaehle_2 rjmp loop1 clr zaehle clr zaehle_2 ret
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.