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


Browsing this Thread:   1 Anonymous Users




(1) 2 »


Re: 想請問各位該如何改錯
#11
中級會員
中級會員


查看用戶資訊
那再請問

這個又是少加什麼資料
Error - could not find definition of symbol 'DelayFor18TCY' in file 'wcmdxlcd.o'.

發表於: 2009/5/10 9:10
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 想請問各位該如何改錯
#10
高級會員
高級會員


查看用戶資訊
我下載 版大說的教材 , 開啟ex4.mcp , build all 後成功 , 沒問題阿 !!

putcLCD() 在 wap_lcd.c 中, 宣告在 p18f_LCD.h 中 , 只要你的主程式有
#include "p18F_LCD.h"
應該沒問題的

Attach file:



jpg  (0.00 KB)


jpg  (0.00 KB)


jpg  (0.00 KB)


發表於: 2009/5/10 0:05
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 想請問各位該如何改錯
#9
中級會員
中級會員


查看用戶資訊
MPASMWIN
C:\MCC18\mpasm\MPASMWIN.exe
mplink
C:\MCC18\bin\mplink.exe
mcc18
C:\MCC18\bin\mcc18.exe
mplib
C:\MCC18\bin\mplib.exe
這是Toolsuite的設定

Include
C:\MCC18\h
Library
C:\MCC18\lib
Linker
C:\MCC18\lkr
這是Project的設定

我在Header的資料夾中,也有加入LCD.h
還有哪裡要加入資料的?或者我哪裡設定錯誤了
請給指教

發表於: 2009/5/9 16:44
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 想請問各位該如何改錯
#8
資深會員
資深會員


查看用戶資訊
檢查一下你呼叫putcLCD時有沒有先引入.h檔或是先宣告putcLCD?
could not find definition of symbol通常就是連結器在位址連結表找不到宣告。

發表於: 2009/5/9 14:06
不要問我哪裡來,我只是個流浪天涯的工程師
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 想請問各位該如何改錯
#7
中級會員
中級會員


查看用戶資訊
我照著版主的意思用了"W401 教育訓練裡就有現成的 LCD 程式簡單又好用。"

可是卻出現這樣的錯誤,可以在指點我嗎?

could not find definition of symbol 'putcLCD' in file './LCD02.o'.

發表於: 2009/5/9 14:01
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 想請問各位該如何改錯
#6
版主
版主


查看用戶資訊
建議你不要使用 XLCD 函數,會搞死你的。到 W401 教育訓練裡就有現成的 LCD 程式簡單又好用。裡面業又很多使用 LCD 的範例。可以從第三章的練習開始。

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

發表於: 2009/5/8 14:21
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 想請問各位該如何改錯
#5
中級會員
中級會員


查看用戶資訊
當我改完

Error - could not find definition of symbol 'LCD_Set_Cursor' in file './LCD02.o'.

會跑出這樣的字串

這又是怎樣的情況阿??

發表於: 2009/5/7 16:30
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 想請問各位該如何改錯
#4
版主
版主


查看用戶資訊
UPPER 在 XLCD.H 檔裡已經被註解掉了,那就個隨便給個直傳進去就好了。
OpenXLCD(0); 使用 PORTB Low Nibber bit

發表於: 2009/5/7 15:12
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 想請問各位該如何改錯
#3
中級會員
中級會員


查看用戶資訊
我把自己寫的程式加入 OpenXLCD(UPPER);

卻出現I:\Project_EX\LCD02.c:41:Error [1105] symbol 'UPPER' has not been defined

這樣的錯誤

是我加錯指令了嗎???

發表於: 2009/5/7 14:18
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 想請問各位該如何改錯
#2
版主
版主


查看用戶資訊
看一下OpenXLCD 的原始程式宣告,使用使函數時需告告函數是使用 8-bit (BIT8) or 4-bit Mode (UPPER) 的參數傳入。
所以改成 OpenXLCD(UPPER);

C:\MCC18\src\pmc_common\XLCD

底下為其 Source Code:
void OpenXLCD(unsigned char lcdtype)
{
        
// The data bits must be either a 8-bit port or the upper or
        // lower 4-bits of a port. These pins are made into inputs
#ifdef BIT8                             // 8-bit mode, use whole port
        
DATA_PORT 0;
        
TRIS_DATA_PORT 0xff;
#else                                   // 4-bit mode
#ifdef UPPER                            // Upper 4-bits of the port
        
DATA_PORT &= 0x0f;
        
TRIS_DATA_PORT |= 0xf0;
#else                                   // Lower 4-bits of the port
        
DATA_PORT &= 0xf0;
        
TRIS_DATA_PORT |= 0x0f;
#endif

發表於: 2009/5/7 12:03
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... ]

教育訓練中心

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