Re: PIC18F8722的configure設定跟專案外加C檔問題,使用c18 compiler
|
||||
---|---|---|---|---|
初級會員
|
了解了解~~感恩!!^^
發表於: 2010/1/11 19:05
|
|||
|
Re: PIC18F8722的configure設定跟專案外加C檔問題,使用c18 compiler
|
||||
---|---|---|---|---|
版主
|
2.我要在專案裡加入其他的C檔案,請問我要怎麼寫:
ANS: 有關多的C 程式共用函數及變數的問題及正確使用 EXTERN & GLOBAL 的宣告問題可以參考 W401 C18 教育訓練裡的第七章。 http://www.microchip.com.tw/modules/w ... glefile.php?cid=4&lid=236
發表於: 2010/1/11 14:12
|
|||
|
Re: PIC18F8722的configure設定跟專案外加C檔問題,使用c18 compiler
|
||||
---|---|---|---|---|
初級會員
|
看了資料後找到答案
1.我是去找p18f8722.inc檔案,裡面有.(或許還有其他的地方有明確寫清楚的!!) 2.看別人的程式範例,刪除extern即可.
發表於: 2010/1/11 10:00
|
|||
|
PIC18F8722的configure設定跟專案外加C檔問題,使用c18 compiler
|
||||
---|---|---|---|---|
初級會員
|
大大門好:
1.請問我要在哪裡知道每個config bit的設定名稱,例如: #pragma config OSC=HS ,若要設定其他的檔位(內振,外灌CLK...)或是其他的config bit(WDT...)名稱在哪裡可以查詢到??(p18f8722.h內沒有!!,datasheet裡僅介紹沒有說簡稱名子!!) 2.我要在專案裡加入其他的C檔案,請問我要怎麼寫,目前我寫的方式是在 man.c檔案裡寫 #include <p18f8722.h> #include <delays.h> #include "123.h" #pragma config OSC=HS #pragma config PWRT=OFF #pragma config WDT=OFF #pragma config DEBUG=OFF void main (void); void main() { . . . } 123.h檔案中寫 extern void data_matrix (); 然後在123.c中寫 #include <p18f8722.h> #include "HEX_data.h" void data_matrix () { . . . } 這樣在不行,請問要怎麼寫呢??(之前都用hi-tech寫的,現在想轉成C18)
發表於: 2010/1/9 14:16
|
|||
|