• slider image 514
  • slider image 516
  • slider image 517
  • slider image 518
  • slider image 519
:::


Browsing this Thread:   1 Anonymous Users






Re: PIC18F8722的configure設定跟專案外加C檔問題,使用c18 compiler
#5
初級會員
初級會員


查看用戶資訊
了解了解~~感恩!!^^

發表於: 2010/1/11 19:05
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18F8722的configure設定跟專案外加C檔問題,使用c18 compiler
#4
版主
版主


查看用戶資訊
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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18F8722的configure設定跟專案外加C檔問題,使用c18 compiler
#3
版主
版主


查看用戶資訊
1.請問我要在哪裡知道每個config bit的設定名稱 :
ANS:
你所講的是 C18 怎會拿 INC 來用呢? 頂多是拿來參考而已。
有關 C18 configuration 的設定,C18 已經有提供了,參考一下 :
C:\MCC18\doc\hlpPIC18ConfigSet.html 檔案,那裏有每顆 PIC18F 的Configuration Bits 的定義。

#pragma config OSC=HS
#pragma config PWRT=ON
#pragma config BOR=OFF, BORV=42
#pragma config WDT=OFF

發表於: 2010/1/11 14:05
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PIC18F8722的configure設定跟專案外加C檔問題,使用c18 compiler
#2
初級會員
初級會員


查看用戶資訊
看了資料後找到答案
1.我是去找p18f8722.inc檔案,裡面有.(或許還有其他的地方有明確寫清楚的!!)
2.看別人的程式範例,刪除extern即可.

發表於: 2010/1/11 10:00
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


PIC18F8722的configure設定跟專案外加C檔問題,使用c18 compiler
#1
初級會員
初級會員


查看用戶資訊
大大門好:
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
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... ]

教育訓練中心

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