Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .include <m32def.inc>
- .equ fc = 16000000 ; Prozessortakt (default)
- .cseg
- .def tmp = R16
- .def tgl = R17
- .def cnt = R18
- init:
- ldi tmp , 1<<4
- out DDRD , tmp
- ldi tgl , 1<<4
- tgrel:
- eor tmp , tgl
- out PORTD , tmp
- rcall delay1ms
- rjmp tgrel
- delay1ms:
- .equ c1ms = 65000;
- ldi R25,HIGH(c1ms)
- ldi R24,LOW(c1ms)
- delay:
- sbiw R24,1 ; herunter zaehlen
- brne delay ; zaehle bis Null
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement