• slider image 442
  • slider image 477
  • slider image 479
  • slider image 480
  • slider image 481
  • slider image 482
:::


Browsing this Thread:   1 Anonymous Users






Re: 如何排除警告?
#10
版主
版主


查看用戶資訊
不要不好意思,電話說明可能會比較清楚一點,請撥 0800-717-718 技術服務專線。

發表於: 2004/11/1 17:52
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 如何排除警告?
#9
高級會員
高級會員


查看用戶資訊
版主不好意思可以請你說清楚一點嗎?
因為我不了解...
"燒錄時將就 Configuration word 的 Debug Mode bit 給關掉,讓PIC可以單讀執行。"什麼意思?
尤其是"Debug Mode bit"是代表什麼意思呢?!

發表於: 2004/11/1 10:06
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 如何排除警告?
#8
版主
版主


查看用戶資訊
在MPLAB IDE v6.6x 的版本有多加了Programmer的選項,她跟Debuger的最大差別就是-->燒錄時將就 Configuration word 的 Debug Mode bit 給關掉,讓PIC可以單讀執行。
較早期的MPLAB IDE v6.10就沒有Programmer的選項,而它的Debug mode bit 必須在Configuration 下設定。

版本改良,操作方式也會跟著改這是MPLAB IDE的優點也是缺點,好或不好那就見仁見智了!

發表於: 2004/10/31 21:02
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 如何排除警告?
#7
高級會員
高級會員


查看用戶資訊
ㄚ...不好意思更正一下!
我看到第17頁的"標記欄"
"必須放在該行的第一個位置"
應該說我肯定你之前猜的話!

引述:
編譯器把第一行的 list 跟最後一行的 end當作標籤在處理
(我猜啦,反正我只要那些關鍵字前沒空格就會這樣)

對了....
順便再請教你一下...
哪邊有介紹Debugger模式和Programmer模式的分別...
或者說更詳細介紹"MPLAB IDE v6.10"這套軟體!
我有下載MPLAB IDE v6.10中文使用手冊...
可是裡面並沒有介紹到Programmer這個選項...
還是我沒看到!......... -.-||
我到現在還不清楚這個選項主要是做什麼用的?!
對了...
我是使用"MPLAB IDE v6.60"這套軟體...
難道是"MPLAB IDE v6.10"沒有這個選項!
還有一點...
執行(或燒錄)程式一定要在Debugger模式下進行嗎?

謝謝....

發表於: 2004/10/30 18:39
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 如何排除警告?
#6
資深會員
資深會員


查看用戶資訊
剛剛去看了那個(MPASM 一天講義)
好多沒用過的指令
以前都不知道要去那裡看
都是找MPLAB裡的英文說明 ~"~

我沒找到關於那個警告的說明
請問你是在哪一頁看到的啊
謝謝

發表於: 2004/10/30 17:30
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 如何排除警告?
#5
高級會員
高級會員


查看用戶資訊
嗯...jubel你說的沒錯!
順便回答一下我自己提的問題...
我已經找到在哪裡有寫這問題了...
http://www.microchip.com.tw/material.htm
(MPASM 一天講義)
真糗....
原來就在右邊而已....
希望可以分享給大家這個訊息!
雖然只是Warning而已...
但能把它給解決...
心情真是"爽"ㄚ!

發表於: 2004/10/30 16:02
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 如何排除警告?
#4
資深會員
資深會員


查看用戶資訊
有時候程式修改時沒注意到就會出現這問題了

看他的警告訊息是在哪一行
注意看那一行語法有無錯誤
沒錯誤的話就去找書或範例看看哪裡不同

有些是沒空格就會警告
有些是有空格會警告
久了就會知道哪些小問題出在哪裡了

發表於: 2004/10/30 15:35
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 如何排除警告?
#3
高級會員
高級會員


查看用戶資訊
jubel謝謝你的回應...
我把list和end前面加上空格後...
果然如你所說的一樣...
那兩行Warning果然不見了!
太神奇ㄌ...
再請問一下....
你是從哪個地方得到這個經驗的呢?
還是有哪本書上有提到這個方法?!

發表於: 2004/10/30 14:52
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 如何排除警告?
#2
資深會員
資深會員


查看用戶資訊
編譯器把第一行的 list 跟最後一行的 end當作標籤在處理
(我猜啦,反正我只要那些關鍵字前沒空格就會這樣)
list 跟 end的前面加個空格就可以了

這個討論區會自動把文字前的空格刪除
所以我不確定你原始程式有沒有加空格
不過我剛剛把我的程式那兩行之前的空格刪除後在編譯
就有了你說的那兩個警告
所以我想你應該是沒有加空格吧

發表於: 2004/10/30 13:30
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


如何排除警告?
#1
高級會員
高級會員


查看用戶資訊
請教個位大大如標題..
當我程式組譯時出現下面兩個警告...
我想要找出解決的方法!
試了好多種可能方案...
卻始終無法排除故障...
到底是該改哪裡才能排除這討厭的兩行ㄋ... ˋˊ

Warning[205] C:\PIC\TRY.ASM 1 : Found directive in column 1. (list)

Warning[205] C:\PIC\TRY.ASM 30 : Found directive in column 1. (end)

附上程式:

list p=18F252
#include <P18F252.inc>
number equ .255
count equ 0x80
;**********************
org 0x00
nop
initial:
banksel SPBRG
movlw .129
movwf SPBRG,0
bcf TXSTA,SYNC,0
bsf RCSTA,SPEN,0
bsf RCSTA,CREN,0
bsf TXSTA,TXEN,0
bcf TRISC,6,0
bsf TRISC,7,0
start:
movlw B'10110011'
movwf TXREG,0
call delay_1ms
goto start
delay_1ms:
movlw number
movwf count
dec_loop nop
decfsz count,1,1
goto dec_loop
return
end

發表於: 2004/10/30 11:42
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... ]

教育訓練中心

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