• slider image 514
  • slider image 516
  • slider image 517
  • slider image 518
  • slider image 519
:::


Browsing this Thread:   2 Anonymous Users






Re: Message[302]訊息如何排除
#3
初級會員
初級會員


查看用戶資訊
所以這提示完全無礙程式正常運作就是了?

發表於: 2009/4/8 16:16
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: Message[302]訊息如何排除
#2
版主
版主


查看用戶資訊
這只是訊息提示說:該暫存器不是在 BANK0,操作時要注意是否有正確的切換到該暫存器的 BANK

程式裡因為 TRISA, TRISB, TRISC 都同屬一個 BNAK 旖旎的程式是連續使用的所以只需切換一次就可以了。

發表於: 2009/4/8 16:05
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Message[302]訊息如何排除
#1
初級會員
初級會員


查看用戶資訊
Message[302] D:\W400 WORKSHOP\EXERCISE\TEST.ASM 42 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\W400 WORKSHOP\EXERCISE\TEST.ASM 44 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\W400 WORKSHOP\EXERCISE\TEST.ASM 47 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\W400 WORKSHOP\EXERCISE\TEST.ASM 50 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\W400 WORKSHOP\EXERCISE\TEST.ASM 53 : Register in operand not in bank 0. Ensure that bank bits are correct.

以上5道訊息分別對應到下列6,8,11,14,17這5行,請問這問題如何排除,若不排除會有不良影響麻,我是在出現這5行訊息下依然顯示BUILD SUCCEEDED,亦能寫入程式至CHIP。

1. BANKSEL PORTA ;
2. CLRF PORTA ;Init PORTA
3. BANKSEL PORTB ;
4. CLRF PORTB ;Init PORTB
5. BANKSEL ANSEL ;
6. CLRF ANSEL ;DIGIPAL
7. BANKSEL ANSELH ;
8. CLRF ANSELH ;DIGITAL
9. BANKSEL TRISA ;
10. MOVLW B'11000001' ;
11. MOVWF TRISA ;Set PORTA is input or output
12. BANKSEL TRISB ;
13. MOVLW B'11111011' ;
14. MOVWF TRISB ;Set PORTB is input or output
15. BANKSEL TRISC ;
16. MOVLW B'10100110' ;
17. MOVWF TRISC ;Set PORTC is input or output

發表於: 2009/4/8 14:43
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... ]

教育訓練中心

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