Pic Gecikme ile İlgili

Başlatan Fahrenheit, 04 Kasım 2014, 22:36:37

Fahrenheit

PİC programlamaya yeni başladım ve bir gecikme döngüsü yazdım.Acaba bu çalışır mı?

            movlw d'255'
            movwf sayac2
            movlw d'255'
            movwf sayac3
test     movlw d'255'
            movwf sayac1
            decfsz sayac1,f
            goto test
            decfsz sayac2,f
            goto test
            decfsz sayac3,f
            movlw d'255'
            movwf sayac2
            Nop
            movlw d'0'
            sublw sayac3
            btfsc status,3
            goto test

Kabil ATICI

 test     movlw d'255'
            movwf sayac1
            decfsz sayac1,f
            goto test

burada sonsuz döngüye girer...
yapacaksan
    movlw d'255'
            movwf sayac1
test
            decfsz sayac1,f
            goto test

şeklinde yap.
ambar7