Giriş
14 Temmuz 2008; 18:06:23
burada hatam ne olabilir? yadımınızı rica ederim arkadaşlar Register in operand not in bank 0. Ensure that bank bits are correct. LIST ; P16F84.INC Standard Header File, Version 1.00 Microchip Technology, Inc. NOLIST ;========================================================================== ; ; Revision History ; ;========================================================================== ;Rev: Date: Reason: ;1.00 10/31/95 Initial Release ;========================================================================== ; ; Verify Processor ; ;========================================================================== IFNDEF __16F84 MESSG "Processor-header file mismatch. Verify selected processor." ENDIF ;========================================================================== ; ; Register Definitions ; ;========================================================================== W EQU H'0000' F EQU H'0001' ;----- Register Files------------------------------------------------------ INDF EQU H'0000' TMR0 EQU H'0001' PCL EQU H'0002' STATUS EQU H'0003' FSR EQU H'0004' PORTA EQU H'0005' PORTB EQU H'0006' EEDATA EQU H'0008' EEADR EQU H'0009' PCLATH EQU H'000A' INTCON EQU H'000B' OPTION_REG EQU H'0081' TRISA EQU H'0085' TRISB EQU H'0086' EECON1 EQU H'0088' EECON2 EQU H'0089' ;----- STATUS Bits -------------------------------------------------------- IRP EQU H'0007' RP1 EQU H'0006' RP0 EQU H'0005' NOT_TO EQU H'0004' NOT_PD EQU H'0003' Z EQU H'0002' DC EQU H'0001' C EQU H'0000' ;----- INTCON Bits -------------------------------------------------------- GIE EQU H'0007' EEIE EQU H'0006' T0IE EQU H'0005' INTE EQU H'0004' RBIE EQU H'0003' T0IF EQU H'0002' INTF EQU H'0001' RBIF EQU H'0000' ;----- OPTION Bits -------------------------------------------------------- NOT_RBPU EQU H'0007' INTEDG EQU H'0006' T0CS EQU H'0005' T0SE EQU H'0004' PSA EQU H'0003' PS2 EQU H'0002' PS1 EQU H'0001' PS0 EQU H'0000' ;----- EECON1 Bits -------------------------------------------------------- EEIF EQU H'0004' WRERR EQU H'0003' WREN EQU H'0002' WR EQU H'0001' RD EQU H'0000' ;========================================================================== ; ; RAM Definition ; ;========================================================================== __MAXRAM H'CF' __BADRAM H'07', H'50'-H'7F', H'87' ;========================================================================== ; ; Configuration Bits ; ;========================================================================== _CP_ON EQU H'000F' _CP_OFF EQU H'3FFF' _PWRTE_ON EQU H'3FF7' _PWRTE_OFF EQU H'3FFF' _WDT_ON EQU H'3FFF' _WDT_OFF EQU H'3FFB' _LP_OSC EQU H'3FFC' _XT_OSC EQU H'3FFD' _HS_OSC EQU H'3FFE' _RC_OSC EQU H'3FFF' LIST
_____________________________
14 Temmuz 2008; 18:20:51
BU ne ya
_____________________________
14 Temmuz 2008; 18:46:44
Hata nerede olabilir. harf sorunuda bulamadım
_____________________________
14 Temmuz 2008; 19:23:35
hata bank seçimini yanlış yapmışsın diyo. senin verdiğin dosya include dosyası hata kendi programında mı?
14 Temmuz 2008; 19:27:50
programda bu. vga görüntüsü için bir kod list p=16f84, f=inhx8m #include <p16f84.inc> __config _XT_OSC & _WDT_OFF & _PWRTE_ON TopCount: equ 0x0C BotCount: equ 0x0D LCount0: equ 0x10 LCount1: equ 0x11 LCount2: equ 0x12 LCount3: equ 0x13 LCount4: equ 0x14 LCount5: equ 0x15 LCount6: equ 0x16 blank: macro bcf PORTB, 1 endm point: macro bsf PORTB, 1 endm HSync: macro bcf PORTB, 3 ; horiz sync nop bsf PORTB, 3 ; horiz sync endm VSync: macro bcf PORTB, 4 ; vert sync nop nop nop nop nop bsf PORTB, 4 ; vert sync endm org 0 goto Start org 0x20 ; start address 0 Start: clrf PORTB bsf STATUS, RP0 ; select bank 1 clrf TRISB bcf STATUS, RP0 ; select bank 0 bsf PORTB, 4 ; vert sync LoopV: VSync ; 1-6 blank ; 1 movlw D'208' movwf TopCount movwf BotCount movlw D'15' movwf LCount0 movwf LCount1 movwf LCount2 movwf LCount3 movwf LCount4 movwf LCount5 movwf LCount6 BlankLoopTop: ; now, the blank area at the top blank ; 1 nop ; 2 nop ; 3 call Delay10mkS ; 4-13 call Delay10mkS ; 14-23 nop ; 24 nop ; 25 nop ; 26 HSync ; 27-29 decfsz TopCount ; 30 goto BlankLoopTop ; 31 nop ; 32 (207*32=6624) #include <text.inc> ; 7*15*32=3360 BlankLoopBot: ;now, the blank area at the bottom blank ; 1 nop ; 2 nop ; 3 call Delay10mkS ; 4-13 call Delay10mkS ; 14-23 nop ; 24 nop ; 25 nop ; 26 HSync ; 27-29 decfsz BotCount ; 30 goto BlankLoopBot ; 31 goto LoopV ; 32 (207*32=6624) Delay10mkS: nop nop nop nop nop nop return end
_____________________________
15 Temmuz 2008; 1:48:42
ben programı derledim. Hata da aslında hata değil bir mesaj. register bank1 de olduğundan bank bitlerini doğru ayarladığından emin ol diyo sadece. zaten bank 1 de seçiliyo.
< Bu mesaj bu kişi tarafından değiştirildi solaris -- 15 Temmuz 2008; 1:48:30 >
15 Temmuz 2008; 15:43:51
Çok teşekkür ederim. bende kontrol ettim hex yazıyor ama demekki benim yaptığım değişiklik programı bozuyor. orjinali uyarı versede çalışıyor.
_____________________________
16 Temmuz 2008; 9:31:11
Hocam o mesaj hata değil zaten uyarı..MPLAB da bank 0 da olmayan bir kayıtcı kullanırsanız bu uarıyı verir. Bu uarıdan kurtulmanın bir yolu var eger bank secim işlemlerini STATUS,RP0,RP1 bitleri yerine "banksel" komutu ile yaparsanız uyarı kalkar..
_____________________________
Donanım Haber Video İnceleme
Yeni mesajlar
Yeni mesajlar yok
Popüler konu, yeni mesajlar ile
Popüler konu, yeni mesajlarsız
Kilitli yeni mesajlar ile
Yeni mesajlar olmadan kilitli
Yeni mesaj at
Mesaja cevap at
Yeni anket aç
Oy kullan
Kendi mesajımı sil
Kendi konumu sil
Mesaja değerlendir
Mesajımı DH blog sayfama ekle