Re: c18 compiler問題!! ~~help~~
|
||||
---|---|---|---|---|
中級會員
|
參照:
感謝提醒,就是因為PIC18系列要修改一點點硬體,所以才在選項2裡面,第一選項還是以PIC16F1938為主
發表於: 2010/1/20 14:35
|
|||
|
Re: c18 compiler問題!! ~~help~~
|
||||
---|---|---|---|---|
版主
|
那我會建議使用 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
|
|||
|
Re: c18 compiler問題!! ~~help~~
|
||||
---|---|---|---|---|
版主
|
參照:
發表於: 2010/1/20 10:22
|
|||
|
Re: c18 compiler問題!! ~~help~~
|
||||
---|---|---|---|---|
中級會員
|
請問問題找到了嗎?
我也準備要開始寫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
|
|||
|
Re: c18 compiler問題!! ~~help~~
|
||||
---|---|---|---|---|
版主
|
可以的話,請將整個 Project 壓成 ZIP 檔(一定要 ZIP,RAR 在本網站會掛掉) 後貼上來一起研究。我用的是 MPLAB C18 正式版。
發表於: 2010/1/12 10:16
|
|||
|
Re: c18 compiler問題!! ~~help~~
|
||||
---|---|---|---|---|
初級會員
|
Ryang大大,我有改過但還是一樣@_@",
我曾把這個檔案分成2個檔案再include還是一樣的結果!! 請問各位大大們還有可能會是哪裡的問題呢??
發表於: 2010/1/11 19:10
|
|||
|
Re: c18 compiler問題!! ~~help~~
|
||||
---|---|---|---|---|
版主
|
剛查下 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
|
|||
|
Re: c18 compiler問題!! ~~help~~
|
||||
---|---|---|---|---|
初級會員
|
Yiming大大:
我用的是3.34 lite版本,所以您的意思是說只有lite版會有這樣限制,但學生版不會有這樣的限制囉??
發表於: 2010/1/11 11:34
|
|||
|
Re: c18 compiler問題!! ~~help~~
|
||||
---|---|---|---|---|
資深會員
|
C18 試用版好像有容易限制,學生版沒容量限制但有時間限制...找代理商問問吧.
發表於: 2010/1/11 11:06
|
|||
|