• 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: 請教ccs之問題
#3
新會員
新會員


查看用戶資訊
有關Warning 203 解決方法:
將 While(1) 改成 for(;;)就不會出 warning了

發表於: 2006/3/16 13:03
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請教ccs之問題
#2
資深會員
資深會員


查看用戶資訊
將"port_b=j;"改成"output_b(j)".

發表於: 2006/1/10 9:28
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


請教ccs之問題
#1
新會員
新會員


查看用戶資訊
小弟目前要學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
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... ]

教育訓練中心

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