program derleme hatası

atmaca597

Üye
Katılım
16 Şub 2008
Mesajlar
69
Puanları
1
Aşağıdaki program picin rb0 ucuna bağlı bir ledi 1 saniye yakıp 1 saniye söndürecek yazdım mpasmwinde çevirdim ama hata veriyor bulmadım ama hatayı nerededir?

LIST p=16f84A

INCLUDE "p16f84.INC


sayac1 EQU 0x0e
sayac2 EQU 0x0f
sayac3 EQU 0x10


ORG 0x000


main
bsf status,5
bcf trisb,0
bcf status,5
basla
bsf portb,0
movlw d'93'
movwf sayac1
movlw d'38'
movwf sayac2
movlw d'11'
movwf sayac3
d1
decfsz sayac1,f
goto d1
decfsz sayac2,f
goto d1
decfsz sayac3,f
goto d1
nop
bcf portb,0
movlw d'92'
movwf sayac1
movlw d'38'
movwf sayac2
movlw d'11'
movwf sayac3
d2
decfsz sayac1,f
goto d2
decfsz sayac2,f
goto d2
decfsz sayac3,f
goto d2
nop
bcf portb,0
goto basla
END
 
hata mesajını yazarsanız yardımcı olabilirim
 
tamam hocam buldum hatayı. Başta tanımlamaları yapmayı unutmuşum trisb portb ve status registrını tanımladım oldu sağlun :)
 

Forum istatistikleri

Konular
128,229
Mesajlar
915,991
Kullanıcılar
450,025
Son üye
sedef12

Yeni konular

Geri
Üst