You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
.INCLUDE "tn13def.inc"
|
|
|
|
; data direction = output
|
|
sbi DDRB, 1 ; PB1
|
|
|
|
loop:
|
|
|
|
; clear bit
|
|
cbi PORTB, 1
|
|
|
|
; wait
|
|
loop1:
|
|
sbiw ZL, 1
|
|
brne loop1
|
|
|
|
; set bit
|
|
sbi PORTB, 1
|
|
|
|
; wait
|
|
loop2:
|
|
sbiw ZL, 1
|
|
brne loop2
|
|
|
|
; again! again! again!
|
|
rjmp loop
|