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

論壇索引


Board index » All Posts (stanely630)




兩種差異在哪裡呢..
#11
新會員
新會員



#define sw0==PORTBbits.RB0
#define sw0=PORTBbits.RB0
以上兩種差異在哪呢?..恩恩恩.....
為什麼會出現這一 ISO C requires whitespace after the macro name訊息呢

發表於: 2004/7/8 0:55
頂部


請問個位先進..這是什麼問題ㄋ..
#12
新會員
新會員


請問這是什麼問題:Lab1 Flash LED with timer delay.c:21:12: warning: ISO C requires whitespace after the macro name?
謝謝..

發表於: 2004/7/6 11:25
頂部


dsPIC30f2010組譯完成後ㄉ問題...
#13
新會員
新會員


如題..為什麼同樣一個程式..30F6014用C組譯器可以通過..而用30F2010就會出現以下的錯誤呢?
Lab1 Flash LED with timer delay.c:7:57: p30f2014.h: No such file or directory
Lab1 Flash LED with timer delay.c:12: error: syntax error before '&' token
Lab1 Flash LED with timer delay.c:12: warning: data definition has no type or storage class
Lab1 Flash LED with timer delay.c:13: warning: parameter names (without types) in function declaration
Lab1 Flash LED with timer delay.c:13: warning: data definition has no type or storage class
Lab1 Flash LED with timer delay.c:14: error: syntax error before '&' token
Lab1 Flash LED with timer delay.c:14: warning: data definition has no type or storage class
Lab1 Flash LED with timer delay.c:15: warning: parameter names (without types) in function declaration
Lab1 Flash LED with timer delay.c:15: warning: data definition has no type or storage class
Lab1 Flash LED with timer delay.c: In function `main':
Lab1 Flash LED with timer delay.c:31: error: `LATD' undeclared (first use in this function)
Lab1 Flash LED with timer delay.c:31: error: (Each undeclared identifier is reported only once
Lab1 Flash LED with timer delay.c:31: error: for each function it appears in.)
Lab1 Flash LED with timer delay.c:32: error: `TRISD' undeclared (first use in this function)
Lab1 Flash LED with timer delay.c:33: error: `TRISA' undeclared (first use in this function)
Lab1 Flash LED with timer delay.c:38: error: `T1CON' undeclared (first use in this function)
Lab1 Flash LED with timer delay.c:39: error: `TMR1' undeclared (first use in this function)
Lab1 Flash LED with timer delay.c:40: error: `PR1' undeclared (first use in this function)
Lab1 Flash LED with timer delay.c:48: error: `IFS0bits' undeclared (first use in this function)
Lab1 Flash LED with timer delay.c:51: error: `LATDbits' undeclared (first use in this function)
Lab1 Flash LED with timer delay.c:53: error: `PORTAbits' undeclared (first use in this function)

這是什麼問題呢...除了標頭檔要更換成30F2010.H外,linker檔要使用30F2010.gld,還有什麼需要注意的嗎?謝謝...

發表於: 2004/7/6 9:39
頂部


是否可使用PIC16F或是18F的dem board來玩dsPIC呢?
#14
新會員
新會員


如題.....或是一定要購買專屬dsPIC的DEM BOARD呢?

發表於: 2004/7/1 11:17
頂部



« 1 (2)



:::

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... ]

教育訓練中心

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