Re: 請問版大,關於C語言的Bootloader
|
||||
---|---|---|---|---|
初級會員
|
發表於: 2010/1/10 3:59
|
|||
|
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
|
|||
|