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


Browsing this Thread:   1 Anonymous Users






Re: 請問 errorlevel -302 作用為何?
#4
版主
版主


查看用戶資訊
小小的建議,如果是初學 PIC 最好不要加入這一行以避免BANK 漏了切換。

如果你嫌它太煩了也可以直接將 Build Message 關掉,在 MPLAB IDE --> Project -->project -->MPASM Assembler 對話視窗裡點選 " Categories" 為 " Output" 將 Diagnostics Level 設為 Erroe and Warnings .

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


Re: 請問 errorlevel -302 作用為何?
#3
初級會員
初級會員


查看用戶資訊
感謝回覆~~

可是我還是不懂
我就算將該行程式註解掉 一樣沒您說的302 Message阿~~?

另外~~就是errorlevel -302 將此302訊息消除 為什要這樣做,不是應該有訊息就讓它顯示出來以便了解程式是否有問題,不是應該這樣嗎? @@?

困惑中~~= ="



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


Re: 請問 errorlevel -302 作用為何?
#2
初級會員
初級會員


查看用戶資訊
把 errorlevel -302 加入在程式中,可消除MPLAB在BUILD之後,在outpur視窗下的Message

-302是要消除Message[302]的意思.


完整的訊息如下:
Message[302] C:\6 CDI_COIL-NEW\0928.ASM 257 : Register in operand not in bank 0. Ensure that bank bits are correct.

內容大概是說 : 要你注意,你在程式中所使用的暫存器,是否有切換到相對應的BANK.


還有如下的訊息 : 是說你未指定運算後,所要回存的暫存器

Message[305] C:\6 CDI_COIL-NEW\0928.ASM 353 : Using default destination of 1 (file).

如果你使用到 DECF X 而後面未指定回存位置時,就會出現上述訊息.

正確應該是 DECF X,F or DECF X,W

以上請參考

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


請問 errorlevel -302 作用為何?
#1
初級會員
初級會員


查看用戶資訊
最近因工作需要又再度接觸PIC
看範例時於程式剛開始都會有這一行程式碼

請問版大能否解釋一下該程式碼的功能或作用為何?
或有誰知道的告知一下囉~~^^


謝謝大家~~~^^

發表於: 2005/9/29 9:10
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... ]

教育訓練中心

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