• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::


Browsing this Thread:   1 Anonymous Users




(1) 2 »


Re: c18 compiler問題!! ~~help~~
#11
中級會員
中級會員


查看用戶資訊
參照:

Ryang 寫道:
那我會建議使用 PIC18F25K20 (32KB) or PIC18F24K20 (16KB)。
用C 寫的話其實用哪一顆都差不多,有關中斷及周邊的設定可以參考一下 W401 C18 的教育訓練課程,第五章裡有詳細的中斷設定方式及程式範例的。

http://www.microchip.com.tw/modules/w ... glefile.php?cid=4&lid=236

注意一下 PIC18F25K20 系列期 Vdd 是 1.8V ~ 3.6V,而 PIC16F 系列是到 5V 的。


感謝提醒,就是因為PIC18系列要修改一點點硬體,所以才在選項2裡面,第一選項還是以PIC16F1938為主

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


Re: c18 compiler問題!! ~~help~~
#10
版主
版主


查看用戶資訊
那我會建議使用 PIC18F25K20 (32KB) or PIC18F24K20 (16KB)。
用C 寫的話其實用哪一顆都差不多,有關中斷及周邊的設定可以參考一下 W401 C18 的教育訓練課程,第五章裡有詳細的中斷設定方式及程式範例的。

http://www.microchip.com.tw/modules/w ... glefile.php?cid=4&lid=236

注意一下 PIC18F25K20 系列期 Vdd 是 1.8V ~ 3.6V,而 PIC16F 系列是到 5V 的。

發表於: 2010/1/20 13:59
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: c18 compiler問題!! ~~help~~
#9
中級會員
中級會員


查看用戶資訊
我兩套都給他灌進MPLIB IDE裡了,只是language的C18那邊要在設定一下即可使用C來編譯了

因為PIC16F886是公司舊產品裡的控制元件,裡面的程式也是公司超資深前輩所遺留下來的組合語言
但有鑑於C語言開發的速度及以後的維護,所以公司希望我能用C語言來重新撰寫

問題來了,我改用HI-TECH C寫的時候,初期還很順利,但隨著業務要求的新功能越加越多的狀況下,8K的ROM終於被我塞爆了,8K要來寫LCM真的很容易就塞滿了

解決方案就是找ROM比較大的新製程的PIC16F1938及PIC18系列的PIC18F25K20,兩者都是PIN to PIN,也還在抉擇中

1.PIC16F1938,我想同樣是PIC16系列的,所以C code移植幾乎是直上就可以了吧,因為是新品,樣品取得好像很困難
2.PIC18F25K20,有很多中斷的控制不太一樣,特殊功能暫存器也不太一樣,所以移植的難度高了一點,樣品取得比較容易但也是很久就是了

發表於: 2010/1/20 12:50
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: c18 compiler問題!! ~~help~~
#8
版主
版主


查看用戶資訊
參照:

2bod 寫道:
請問問題找到了嗎?

我也準備要開始寫PIC18F25K20及PIC45K20了說
不知道要使用MPLAB C Compilers 還是HI-TECH C Compilers

建議 : PIC18Fxxxx 使用 MPLAB C18,PIC16Fxxx 使用 Hi-Tech PICC。其實這兩種 C compiler 都是屬於 ANSI C ,只要用標準的 C 語法去寫都是一樣的。

之前公司做UPS使用dsPIC系列的時候都是使用MPLAB C,但現在公司做不太一樣的東西都是使用PIC16F

所以MPLAB C及HI-TECH C都有玩過,只是希望有個穩定的開發環境而已

對了,若想要把PIC16F886的程式移植到PIC18F25K20上除了基礎時脈要注意外,還有哪些重點要注意的呢?
先問一下你用 ASM or C ? 兩個PIC腳位相同,且 I/O 接腳規劃也是一樣的,差異上主要還是在週邊的設定上,比對一下就知道了。

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


Re: c18 compiler問題!! ~~help~~
#7
中級會員
中級會員


查看用戶資訊
請問問題找到了嗎?

我也準備要開始寫PIC18F25K20及PIC45K20了說
不知道要使用MPLAB C Compilers 還是HI-TECH C Compilers

之前公司做UPS使用dsPIC系列的時候都是使用MPLAB C,但現在公司做不太一樣的東西都是使用PIC16F

所以MPLAB C及HI-TECH C都有玩過,只是希望有個穩定的開發環境而已

對了,若想要把PIC16F886的程式移植到PIC18F25K20上除了基礎時脈要注意外,還有哪些重點要注意的呢?

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


Re: c18 compiler問題!! ~~help~~
#6
版主
版主


查看用戶資訊
可以的話,請將整個 Project 壓成 ZIP 檔(一定要 ZIP,RAR 在本網站會掛掉) 後貼上來一起研究。我用的是 MPLAB C18 正式版。

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


Re: c18 compiler問題!! ~~help~~
#5
初級會員
初級會員


查看用戶資訊
Ryang大大,我有改過但還是一樣@_@",
我曾把這個檔案分成2個檔案再include還是一樣的結果!!
請問各位大大們還有可能會是哪裡的問題呢??

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


Re: c18 compiler問題!! ~~help~~
#4
版主
版主


查看用戶資訊
剛查下 C18 User's Guide 的 Error Message 說 :
ERROR 1070: too many line numbers in section '%s'

The COFF file format only allows (32767 * 2 + 1) lines in a single section. Reduce the number of lines in your source file.

看起來你的行數還在範圍內,建議更改一下 Memory Module 為Large Mode 看看 ( Project Options --> Project)

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


Re: c18 compiler問題!! ~~help~~
#3
初級會員
初級會員


查看用戶資訊
Yiming大大:
我用的是3.34 lite版本,所以您的意思是說只有lite版會有這樣限制,但學生版不會有這樣的限制囉??

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


Re: c18 compiler問題!! ~~help~~
#2
資深會員
資深會員


查看用戶資訊
C18 試用版好像有容易限制,學生版沒容量限制但有時間限制...找代理商問問吧.

發表於: 2010/1/11 11:06
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... ]

教育訓練中心

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