ASM configurasyon bitleri hatası!!

Başlatan engin.763, 08 Aralık 2012, 21:24:15

engin.763

Config ayarlarını yapmaya çalışıyorum,daha önce derlediğim denediğim dosyaları şimdi başka bir sürüm olan assembly derleyicisiyle derlemeye çalışırken sürekli hata veriyor hata verdiği satır hep aynı her yolu denedim ama sorunu bulamadım sizce nedir  . .    hatalı kod satırı şu  : 
 __CONFIG _INTRC_OSC_NOCLKOUT & _WDT_OFF & _MCLRE_ON & _PWRTE_OFF
Bir insan iyi bir mühendis olabilir,yada iyi bir doktor,çok iyi bir yöneticide olabilir ,ama ne olursa olsun insan iyi yumruk atmayı ve iyi nişan almayı mutlaka bilmeli....

neural


ibrahim626

Denetleyicinin dosyasını ekledinizmi ?
mesela :
list p=16fxxx
include \"P16fxxx.inc\" gibi ?

engin.763

#3
PROGRAM KODLARI BUNLAR   :   

;-----------------------------------------------------------------------------------------------------
;===PROGRAM20.ASM====

LIST P=16F628A
INCLUDE \"P16F628A.INC\"

__CONFIG _INTRC_OSC_NOCLKOUT & _WDT_OFF & _MCLRE_ON & _PWRTE_OFF & _BODEN_OFF & _LVP_OFF & _CP_OFF & _DATA_CP_OFF

ORG H\'0000\'

DALLAN  EQU H\'20\'
SAYAC1  EQU H\'21\'
SAYAC2  EQU H\'22\'

CLRF PORTA
CLRF PORTB

BANKSEL TRISA
CLRF TRISB
BANKSEL PORTB

;............................

BASLA
MOVLW H\'00\'       
MOVWF DALLAN     


DONGU
MOVF DALLAN,W     
ANDLW B\'00001111\'
                 
CALL CEV_TAB

MOVWF PORTB
INCF DALLAN,F
CALL GECIKME
GOTO DONGU

;............................

;================
CEV_TAB
ADDWF PCL,F   

RETLW H\'3F\'
RETLW H\'06\'
RETLW H\'5B\'
RETLW H\'4F\'
RETLW H\'66\'
RETLW H\'6D\'     
RETLW H\'7D\'
RETLW H\'07\'
RETLW H\'7F\'
RETLW H\'6F\'
RETLW H\'77\'
RETLW H\'7C\'
RETLW H\'39\'
RETLW H\'5E\'
RETLW H\'79\'
RETLW H\'71\'
;================

;================
GECIKME
MOVLW D\'255\'
MOVWF SAYAC1
BEKLE1
;--------------
MOVLW D\'255\'
MOVWF SAYAC2
BEKLE2
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
DECFSZ SAYAC2,F
GOTO BEKLE2
;--------------
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
DECFSZ SAYAC1,F
GOTO BEKLE1
;================
RETURN

END

HATA MESAJIDA BU   :

Error[126]   C:\\USERS\\ENGIN\\DESKTOP\\7 SEGMENT\\7 SEGMENT.ASM 6 : Argument out of range (not a valid config register address)
Bir insan iyi bir mühendis olabilir,yada iyi bir doktor,çok iyi bir yöneticide olabilir ,ama ne olursa olsun insan iyi yumruk atmayı ve iyi nişan almayı mutlaka bilmeli....

neural

#4
Merhaba göndermiş olduğunuz programı Win Xp ile Proteus altında bulunan Mpasm ile derlemeye çalıştığımda include dosyasını bulamadığını söyledi.  Sizinde sorununuz bu olabilir.

Ancak aynı programı yine Win Xp altında MPLAB IDE v8.00 ile proje oluşturarak derlediğimde çeşitli uyarılar verdi ama program derlendi. Hatta canlandırma bile yaptı.

Kullandığınız derleyicinin sürümü eski ise bu tip sorunlar olabiliyor. Güncellediğinizde yine olmuyorsa sonuçları buraya yazabilirsiniz.

Kolay gelsin.

kudretuzuner

#5
Merhaba
__CONFIG ayarını        __CONFIG H\'21\'     şeklinde 16F628A PIC\'in de \"A\" harfini kaldırın MPLAP 8.63 ile derleniyor.
;-----------------------------------------------------------------------------------------------------
;===PROGRAM20.ASM====

LIST P=16F628
INCLUDE \"P16F628.INC\"
__CONFIG H\'21\'
;__CONFIG _INTRC_OSC_NOCLKOUT & _WDT_OFF & _MCLRE_ON & _PWRTE_OFF & _BODEN_OFF & _LVP_OFF & _CP_OFF & _DATA_CP_OFF

ORG H\'0000\'

DALLAN  EQU H\'20\'
SAYAC1  EQU H\'21\'
SAYAC2  EQU H\'22\'

CLRF PORTA
CLRF PORTB

BANKSEL TRISA
CLRF TRISB
BANKSEL PORTB

;............................

BASLA
MOVLW H\'00\'       
MOVWF DALLAN     


DONGU
MOVF DALLAN,W     
ANDLW B\'00001111\'
                 
CALL CEV_TAB

MOVWF PORTB
INCF DALLAN,F
CALL GECIKME
GOTO DONGU

;............................

;================
CEV_TAB
ADDWF PCL,F   

RETLW H\'3F\'
RETLW H\'06\'
RETLW H\'5B\'
RETLW H\'4F\'
RETLW H\'66\'
RETLW H\'6D\'     
RETLW H\'7D\'
RETLW H\'07\'
RETLW H\'7F\'
RETLW H\'6F\'
RETLW H\'77\'
RETLW H\'7C\'
RETLW H\'39\'
RETLW H\'5E\'
RETLW H\'79\'
RETLW H\'71\'
;================

;================
GECIKME
MOVLW D\'255\'
MOVWF SAYAC1
BEKLE1
;--------------
MOVLW D\'255\'
MOVWF SAYAC2
BEKLE2
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
DECFSZ SAYAC2,F
GOTO BEKLE2
;--------------
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
DECFSZ SAYAC1,F
GOTO BEKLE1
;================
RETURN

END
----------------------------------------------------------
----------------------------------------------------------------------
Release build of project `E:\\Untitled_engn.disposable_mcp\' started.
Language tool versions: MPASMWIN.exe v5.39, mplink.exe v4.38, mplib.exe v4.38
Sun Dec 09 11:50:19 2012
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: \"C:\\Program Files\\Microchip\\MPASM Suite\\MPASMWIN.exe\" /q /p16F628A \"Untitled_engn.asm\" /l\"Untitled_engn.lst\" /e\"Untitled_engn.err\"
Warning[205] E:\\UNTITLED_ENGN.ASM 4 : Found directive in column 1. (LIST)
Warning[205] E:\\UNTITLED_ENGN.ASM 5 : Found directive in column 1. (INCLUDE)
Message[301] C:\\PROGRAM FILES\\MICROCHIP\\MPASM SUITE\\P16F628.INC 33 : MESSAGE: (Processor-header file mismatch.  Verify selected processor.)
Warning[205] E:\\UNTITLED_ENGN.ASM 6 : Found directive in column 1. (__CONFIG)
Warning[205] E:\\UNTITLED_ENGN.ASM 9 : Found directive in column 1. (ORG)
Warning[203] E:\\UNTITLED_ENGN.ASM 15 : Found opcode in column 1. (CLRF)
Warning[203] E:\\UNTITLED_ENGN.ASM 16 : Found opcode in column 1. (CLRF)
Warning[205] E:\\UNTITLED_ENGN.ASM 18 : Found directive in column 1. (BANKSEL)
Warning[203] E:\\UNTITLED_ENGN.ASM 19 : Found opcode in column 1. (CLRF)
Message[302] E:\\UNTITLED_ENGN.ASM 19 : Register in operand not in bank 0.  Ensure that bank bits are correct.
Warning[205] E:\\UNTITLED_ENGN.ASM 20 : Found directive in column 1. (BANKSEL)
Warning[203] E:\\UNTITLED_ENGN.ASM 25 : Found opcode in column 1. (MOVLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 26 : Found opcode in column 1. (MOVWF)
Warning[203] E:\\UNTITLED_ENGN.ASM 30 : Found opcode in column 1. (MOVF)
Warning[203] E:\\UNTITLED_ENGN.ASM 31 : Found opcode in column 1. (ANDLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 33 : Found opcode in column 1. (CALL)
Warning[203] E:\\UNTITLED_ENGN.ASM 35 : Found opcode in column 1. (MOVWF)
Warning[203] E:\\UNTITLED_ENGN.ASM 36 : Found opcode in column 1. (INCF)
Warning[203] E:\\UNTITLED_ENGN.ASM 37 : Found opcode in column 1. (CALL)
Warning[203] E:\\UNTITLED_ENGN.ASM 38 : Found opcode in column 1. (GOTO)
Warning[203] E:\\UNTITLED_ENGN.ASM 44 : Found opcode in column 1. (ADDWF)
Warning[203] E:\\UNTITLED_ENGN.ASM 46 : Found opcode in column 1. (RETLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 47 : Found opcode in column 1. (RETLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 48 : Found opcode in column 1. (RETLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 49 : Found opcode in column 1. (RETLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 50 : Found opcode in column 1. (RETLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 51 : Found opcode in column 1. (RETLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 52 : Found opcode in column 1. (RETLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 53 : Found opcode in column 1. (RETLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 54 : Found opcode in column 1. (RETLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 55 : Found opcode in column 1. (RETLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 56 : Found opcode in column 1. (RETLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 57 : Found opcode in column 1. (RETLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 58 : Found opcode in column 1. (RETLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 59 : Found opcode in column 1. (RETLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 60 : Found opcode in column 1. (RETLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 61 : Found opcode in column 1. (RETLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 66 : Found opcode in column 1. (MOVLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 67 : Found opcode in column 1. (MOVWF)
Warning[203] E:\\UNTITLED_ENGN.ASM 70 : Found opcode in column 1. (MOVLW)
Warning[203] E:\\UNTITLED_ENGN.ASM 71 : Found opcode in column 1. (MOVWF)
Warning[203] E:\\UNTITLED_ENGN.ASM 73 : Found opcode in column 1. (NOP)
Warning[203] E:\\UNTITLED_ENGN.ASM 74 : Found opcode in column 1. (NOP)
Warning[203] E:\\UNTITLED_ENGN.ASM 75 : Found opcode in column 1. (NOP)
Warning[203] E:\\UNTITLED_ENGN.ASM 76 : Found opcode in column 1. (NOP)
Warning[203] E:\\UNTITLED_ENGN.ASM 77 : Found opcode in column 1. (NOP)
Warning[203] E:\\UNTITLED_ENGN.ASM 78 : Found opcode in column 1. (NOP)
Warning[203] E:\\UNTITLED_ENGN.ASM 79 : Found opcode in column 1. (NOP)
Warning[203] E:\\UNTITLED_ENGN.ASM 80 : Found opcode in column 1. (NOP)
Warning[203] E:\\UNTITLED_ENGN.ASM 81 : Found opcode in column 1. (DECFSZ)
Warning[203] E:\\UNTITLED_ENGN.ASM 82 : Found opcode in column 1. (GOTO)
Warning[203] E:\\UNTITLED_ENGN.ASM 84 : Found opcode in column 1. (NOP)
Warning[203] E:\\UNTITLED_ENGN.ASM 85 : Found opcode in column 1. (NOP)
Warning[203] E:\\UNTITLED_ENGN.ASM 86 : Found opcode in column 1. (NOP)
Warning[203] E:\\UNTITLED_ENGN.ASM 87 : Found opcode in column 1. (NOP)
Warning[203] E:\\UNTITLED_ENGN.ASM 88 : Found opcode in column 1. (NOP)
Warning[203] E:\\UNTITLED_ENGN.ASM 89 : Found opcode in column 1. (NOP)
Warning[203] E:\\UNTITLED_ENGN.ASM 90 : Found opcode in column 1. (NOP)
Warning[203] E:\\UNTITLED_ENGN.ASM 91 : Found opcode in column 1. (NOP)
Warning[203] E:\\UNTITLED_ENGN.ASM 92 : Found opcode in column 1. (DECFSZ)
Warning[203] E:\\UNTITLED_ENGN.ASM 93 : Found opcode in column 1. (GOTO)
Warning[203] E:\\UNTITLED_ENGN.ASM 95 : Found opcode in column 1. (RETURN)
Warning[205] E:\\UNTITLED_ENGN.ASM 97 : Found directive in column 1. (END)
Executing: \"C:\\Program Files\\Microchip\\MPASM Suite\\mplink.exe\" /p16F628A \"Untitled_engn.o\" /z__MPLAB_BUILD=1 /o\"Untitled_engn.cof\" /M\"Untitled_engn.map\" /W /x
MPLINK 4.38, Linker
Copyright (c) 1998-2010 Microchip Technology Inc.
Errors    : 0

Loaded E:\\Untitled_engn.cof.
----------------------------------------------------------------------
Release build of project `E:\\Untitled_engn.disposable_mcp\' succeeded.
Language tool versions: MPASMWIN.exe v5.39, mplink.exe v4.38, mplib.exe v4.38
Sun Dec 09 11:50:21 2012
----------------------------------------------------------------------
BUILD SUCCEEDED

Merhaba
Dosya olarak da vereyim.Buyrun.
KU

pwm.c

_/\/\/\_ -[ı- -ı>|- -|ı|ı|ı- -ı< -||- -l[]l-

engin.763

#7
VERSİYON 8.63 ü indirdim kurdum kudret beyin verdiği kodları aynen kopyala yapıştır yaptım ,ancak hata mesajı hala değişmiyor, DATA_CP komutunuda kaldırdım yine değişmiyor ,ekte painte attım resmi,7 ay bu dille uğraştım şimdiye kadar böyle bir hata görmemiştim....

Bir insan iyi bir mühendis olabilir,yada iyi bir doktor,çok iyi bir yöneticide olabilir ,ama ne olursa olsun insan iyi yumruk atmayı ve iyi nişan almayı mutlaka bilmeli....

pwm.c

aygıt ayarını 18F452 diye ayarlamışın.
MPLAB programını aç. Configure > Slect Device bölümüne gir oradan PIC16F628 i seç.
derlemek için asm dosyanı açıp Project > Quickbuild i tıkla.
_/\/\/\_ -[ı- -ı>|- -|ı|ı|ı- -ı< -||- -l[]l-

engin.763

Çok haklısınız sorun buymuş,gerçekten çok teşekür ederim,3 aydır asm kodları ile uğraşmadığımıdan derleyicinin yapısını tamamen unutmuşum,çok teşekkür ederim,gereksiz bir konu için sizi uğraştırdım,cevaplar için herkese teşekkürler....iyi çalışmalar
Bir insan iyi bir mühendis olabilir,yada iyi bir doktor,çok iyi bir yöneticide olabilir ,ama ne olursa olsun insan iyi yumruk atmayı ve iyi nişan almayı mutlaka bilmeli....

Hızlı Yanıt

Not: Bu konu bir moderatör tarafından onaylanmadan görüntülenmeyecektir.

Adı:
E-Posta:
Doğrulama:
Lütfen bu kutuyu boş bırakın:
IRFP250 Nedir:
kısayollar: göndermek için alt+s veya önizleme yapmak için alt+p'ye basın