Sinustest: in temp1, PINB sbrs temp1, 1 rjmp Sinustest Sinustest2: nop nop cbi PORTB, 2 ldi temp1, 0x53 out SPDR, temp1 lp753: sbis SPSR, SPIF rjmp lp753 ldi temp1, 0xEF out SPDR, temp1 lp853: sbis SPSR, SPIF rjmp lp853 ldi temp1, 0x6E out SPDR, temp1 lp953: sbis SPSR, SPIF rjmp lp953 ldi temp1, 0x44 out SPDR, temp1 lp1053: sbis SPSR, SPIF rjmp lp1053 ldi temp1, 0x00 out SPDR, temp1 lp74: sbis SPSR, SPIF rjmp lp74 ldi temp1, 0x00 out SPDR, temp1 lp84: sbis SPSR, SPIF rjmp lp84 ldi temp1, 0x00 out SPDR, temp1 lp94: sbis SPSR, SPIF rjmp lp94 ldi temp1, 0x00 out SPDR, temp1 lp104: sbis SPSR, SPIF rjmp lp104 ; ============================= ; Warteschleifen-Generator ; 8000000 Zyklen: ; ----------------------------- ; warte 7999992 Zyklen: ldi R17, $48 WGLOOP04: ldi R18, $BC WGLOOP14: ldi R19, $C4 WGLOOP24: dec R19 brne WGLOOP24 dec R18 brne WGLOOP14 dec R17 brne WGLOOP04 ; ----------------------------- ; warte 6 Zyklen: ldi R17, $02 WGLOOP34: dec R17 brne WGLOOP34 ; ----------------------------- ; warte 2 Zyklen: nop nop ; ============================= sbi PORTB, 2 nop nop cbi PORTB,2 ldi temp1, 0x45 out SPDR, temp1 lp73: sbis SPSR, SPIF rjmp lp73 ldi temp1, 0x78 out SPDR, temp1 lp83: sbis SPSR, SPIF rjmp lp83 ldi temp1, 0x69 out SPDR, temp1 lp93: sbis SPSR, SPIF rjmp lp93 ldi temp1, 0x74 out SPDR, temp1 lp103: sbis SPSR, SPIF rjmp lp103 ldi temp1, 0x00 out SPDR, temp1 lp731: sbis SPSR, SPIF rjmp lp731 ldi temp1, 0x00 out SPDR, temp1 lp831: sbis SPSR, SPIF rjmp lp831 ldi temp1, 0x00 out SPDR, temp1 lp931: sbis SPSR, SPIF rjmp lp931 ldi temp1, 0x00 out SPDR, temp1 lp1031: sbis SPSR, SPIF rjmp lp1031 sbi PORTB, 2 ; ============================= ; Warteschleifen-Generator ; 8000000 Zyklen: ; ----------------------------- ; warte 7999992 Zyklen: ldi R17, $48 WGLOOP02: ldi R18, $BC WGLOOP12: ldi R19, $C4 WGLOOP22: dec R19 brne WGLOOP22 dec R18 brne WGLOOP12 dec R17 brne WGLOOP02 ; ----------------------------- ; warte 6 Zyklen: ldi R17, $02 WGLOOP32: dec R17 brne WGLOOP32 ; ----------------------------- ; warte 2 Zyklen: nop nop ; ============================= rjmp Sinustest2