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

論壇索引


Board index » All Posts




Re: 訊息.....Error [1109] type mismatch in redeclaration of 'putrsXLCD'
資深會員
資深會員


我把. h檔的
void putrsXLCD(PARAM_SCLASS const MEM_MODEL rom char *);
改成
void putrsXLCD(const rom char *);

就可以了

----------------------------------------------------------------
那, 請問
PARAM_SCLASS const MEM_MODEL rom 是什麼意思?? 看不懂這個語法 ..

發表於: 2005/8/25 16:35
頂部


訊息.....Error [1109] type mismatch in redeclaration of 'putrsXLCD'
資深會員
資深會員


目前使用C18的LCD內建函數來顯示LCM
把程式編譯時會出現下列的錯誤

Error [1109] type mismatch in redeclaration of 'putrsXLCD'

問題是出在.h檔 putrsXLCD 函數的原型宣告和 .C檔的不同

myXLCD.h 檔的是
void putrsXLCD(PARAM_SCLASS const MEM_MODEL rom char *);

C 檔的是
void putrsXLCD(const rom char *buffer)
{
while(*buffer) // Write data to LCD up to null
{
while(BusyXLCD()); // Wait while LCD is busy
WriteDataXLCD(*buffer); // Write character to LCD
buffer++; // Increment buffer
}
return;
}

請問兩個宣告mismatch , 該如何更改??

PS.
我目前是把 .C 檔的 putrsXLCD() 暫時刪掉
compiler 後就 pass 了, 且確定程式可以執行可以顯示

發表於: 2005/8/25 16:27
頂部


Re: c18 字串函數的 :Warning [2054]
資深會員
資深會員


strlenpgm(RomMsg1)
strlenpgm(&RomMsg1[0])
兩種語法都試過...結果一樣

發表於: 2005/8/25 15:44
頂部


Re: 關於教育訓練講義...
資深會員
資深會員


謝謝
已電話索取了
等待.....

發表於: 2005/8/25 15:41
頂部


Re: APP009 之ADC
版主
版主


有幾種可能:

1. ADC 的戰存器設定錯誤 (最有可能)

2. IC 故障 (不太像ㄋ)

Download 一下 dsPIC Advavanc Programming workshop 看一下有關 ADC的設定吧:

http://www.microchip.com.tw/modules/mydownloads/viewcat.php?cid=4

發表於: 2005/8/25 14:46
頂部


Re: 關於教育訓練講義...
版主
版主


可以打電話向 Microchip 台北的曾小姐 Ext:602 索取講義。

發表於: 2005/8/25 14:38
頂部


Re: 請問PIC16C745那有賣?
版主
版主


右邊的代理商問看看,建議使用 PIC18Fxx50 系列,會比較方便 (Flash Poart),

發表於: 2005/8/25 14:35
頂部


Re: c18 字串函數的 :Warning [2054]
版主
版主


strlenpgm(&RomMsg1); 是 ??? , C18當然看不懂

改成 strlenpgm(RomMsg1) 或 strlenpgm(&RomMsg1[0]) ;

發表於: 2005/8/25 14:29
頂部


Re: 是不是程式記憶體換頁的問題
新會員
新會員


感謝版主的提示和執導...

我會用這顆ic是因為之前同事專案用到,庫存還很多用不到所以就拿來當練習用!! 簡單說就是不用花錢啦 !!

發表於: 2005/8/25 13:06
頂部


Re: 關於教育訓練講義...
資深會員
資深會員


我有用一種方法不錯
就是把PDF轉成圖檔
再把圖檔轉成反白
在列印就很省碳粉了

發表於: 2005/8/25 12:03
==== ^^ ^^ ====
頂部



« 1 ... 6958 6959 6960 (6961) 6962 6963 6964 ... 7523 »



:::

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... ]

教育訓練中心

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