• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
  • slider image 488
  • slider image 491
:::


Browsing this Thread:   1 Anonymous Users






為何會出現這些訊息
#1
新會員
新會員


查看用戶資訊
各位前輩

我暫存器的初始設定降子不知道對不對,請指點我。謝謝各位。

ORG 00H ; processor reset vector
NOP
NOP
GOTO INITIAL
ORG 04H ; Intentry
RETFIE
INITIAL ; Initial
BANKSEL OPTION_REG ; set option reg.
MOVLW B'10000000' ; PORTB pull-ups are disable
MOVWF OPTION_REG

MOVLW B'00100011' ; set PORTA 5,1,0
MOVWF TRISA ; data direction of PORTA

MOVLW B'11000011' ; set PORTB 7,6,1
MOVWF TRISB ; data direction of PORTB

;MOVLW B'00001000' ; set SSPIE, SSP enable reg.
;MOVWF PIE1 ; peripheral interrupt enable reg.

MOVLW B'01110100' ; set 8MHz & freq. stable mode
MOVWF OSCCON ; OSC control reg.

;MOVLW B'11000000' ; set SMP & CKE
;MOVWF SSPSTAT ; SPI data input sample phase bit
; and SPI clock edge
MOVLW 07H ; 00000111
MOVWF ADCON1 ; set PCFG<3:0> to 0111, C/R=0/0

BANKSEL PORTA
CLRF PORTA ; clear all pin
CLRF PORTB

CLRF INTCON ; ensure all interrupt are disable
; interrupt control reg.
;MOVLW B'01000000' ; set PEIE
;MOVWF INTCON ; peripheral interrupt enable bit

;MOVLW B'00001000' ; set SSPIF, SSP interrupt flag
;MOVWF PIR1 ; peripheral interrupt request reg.

;MOVLW B'00110000' ; set SSPEN & CKP
MOVLW B'00100000' ; set SSPEN
MOVWF SSPCON ; Initial SPI control reg.


都會出現以下的訊息,雖然無關燒錄~~但總希望能完美。

Clean: Deleting intermediary and output files.
Clean: Deleted file "CAN_TEST_1.err".
Clean: Deleted file "D:\MPLAB\PIC16F819\CAN_TEST\CAN_TEST_1.cod".
Clean: Deleted file "D:\MPLAB\PIC16F819\CAN_TEST\CAN_TEST_1.hex".
Clean: Deleted file "CAN_TEST_1.lst".
Clean: Deleted file "D:\MPLAB\PIC16F819\CAN_TEST\CAN_TEST.mcs".
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F819 "CAN_TEST_1.asm" /l"CAN_TEST_1.lst" /e"CAN_TEST_1.err"
Message[302] D:\MPLAB\PIC16F819\CAN_TEST\CAN_TEST_1.ASM 54 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\MPLAB\PIC16F819\CAN_TEST\CAN_TEST_1.ASM 57 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\MPLAB\PIC16F819\CAN_TEST\CAN_TEST_1.ASM 60 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\MPLAB\PIC16F819\CAN_TEST\CAN_TEST_1.ASM 66 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\MPLAB\PIC16F819\CAN_TEST\CAN_TEST_1.ASM 72 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\MPLAB\PIC16F819\CAN_TEST\CAN_TEST_1.ASM 104 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\MPLAB\PIC16F819\CAN_TEST\CAN_TEST_1.ASM 108 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\MPLAB\PIC16F819\CAN_TEST\CAN_TEST_1.ASM 200 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\MPLAB\PIC16F819\CAN_TEST\CAN_TEST_1.ASM 213 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\MPLAB\PIC16F819\CAN_TEST\CAN_TEST_1.ASM 224 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\MPLAB\PIC16F819\CAN_TEST\CAN_TEST_1.ASM 235 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\MPLAB\PIC16F819\CAN_TEST\CAN_TEST_1.ASM 247 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\MPLAB\PIC16F819\CAN_TEST\CAN_TEST_1.ASM 254 : Register in operand not in bank 0. Ensure that bank bits are correct.
Loaded D:\MPLAB\PIC16F819\CAN_TEST\CAN_TEST_1.COD.
BUILD SUCCEEDED: Fri Dec 09 11:22:41 2005


發表於: 2005/12/9 11:41
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------