Browsing this Thread:
2 Anonymous Users
|
Re: 請教ccs之問題
|
|
新會員
Joined
: 2006/3/16 13:00 最後登入時間
: 2006/3/16 13:01
Group:
註冊會員
Level : 1 HP : 0 / 0 MP : 0 / 0 EXP : 0
|
有關Warning 203 解決方法: 將 While(1) 改成 for(;;)就不會出 warning了
發表於: 2006/3/16 13:03
|
|
|
Re: 請教ccs之問題
|
|
資深會員
Joined
: 2004/5/14 22:12 最後登入時間
: 2013/8/18 18:49
Group:
註冊會員
Level : 15 HP : 0 / 357 MP : 89 / 21296 EXP : 28
|
將"port_b=j;"改成"output_b(j)".
發表於: 2006/1/10 9:28
|
|
|
請教ccs之問題
|
|
新會員
Joined
: 2004/6/13 21:45 最後登入時間
: 2006/1/26 15:23
Group:
註冊會員
Level : 1 HP : 0 / 15 MP : 2 / 896 EXP : 60
|
小弟目前要學pic,使用ccs來寫程式,但會出現以下問題,請問各位大大能否幫小弟解答以下問題,謝謝。 請問以下是的error要怎樣解決,我try了好幾次都用不好,小弟不才,請各位前輩多多指教。
程式碼: #include <16f877.h> void delay (unsigned int dly) { while (dly>0) dly--; }
void main(void) { set_tris_b(0); while (true) { unsigned char i,j=0x01; for (i=0;i<=7;i++) { port_b=j; delay (30000); j<<=1; } } }
訊息如下:
Deleting intermediary files... done. Executing: "C:\Program Files\PICC\Ccsc.exe" "test4.c" +FM +DF +LN +T -A +M +Z +Y=9 +EA >>> Warning 203 "D:\Documents and Settings\penny\My Documents\pic program\test\test4.c" Line 10(1,1): Condition always TRUE *** Error 12 "D:\Documents and Settings\penny\My Documents\pic program\test\test4.c" Line 15(10,16): Undefined identifier port_b 1 Errors, 1 Warnings. Halting build on first failure as requested. BUILD FAILED: Wed Feb 08 23:22:57 2006
發表於: 2006/1/10 2:39
|
|
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.