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


Browsing this Thread:   1 Anonymous Users






Re: HI-TECH compiler "const" 語法問題
#5
資深會員
資深會員


查看用戶資訊
void ShowFunctionMenu( unsigned const char *SourPtr )
{
unsigned char i, j;
unsigned char *DestPtr;
DestPtr = LcdDspBuf;
for(i = 0 ; i < 10 ; i++)
{
*(DestPtr++) = 0x00;
for(j = 0 ; j < 8 ; j++)
*(DestPtr++) = *SourPtr++;
}

發表於: 2008/6/12 23:42
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: HI-TECH compiler "const" 語法問題
#4
新會員
新會員


查看用戶資訊
這裡沒有辦法解答HI-TECH compiler的問題嗎??
不知道哪裡有解答HI-TECH compiler問題的管道....
不知道是MPLAB IDE的問題還是真的是compiler的問題??苦惱~~

如有大大有知道相關的管道請通知小弟~~謝謝

發表於: 2008/6/9 14:24
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: HI-TECH compiler "const" 語法問題
#3
新會員
新會員


查看用戶資訊
謝謝你!!!

不過,還是出現一樣的錯誤~~!!

發表於: 2008/4/17 8:53
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: HI-TECH compiler "const" 語法問題
#2
中級會員
中級會員


查看用戶資訊
我純猜測的啦! 是不是改一下這邊試試...

static unsigned char LcdDspBuf[90] @0x0AB4;

unsigned const char Fun00Menu[80] = {
' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',
'M','O','N','T',' ','S','E','T','P',' ','T','E','S','T',' ',' ',' ',' ',' ',' ',
' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',
' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',
};

void ShowFunctionMenuunsigned const char *SourPtr );

void main (void)
ShowFunctionMenu Fun00Men );
}

void ShowFunctionMenuunsigned const char *SourPtr )
unsigned char i,j;
[
color=CC0000]unsigned char *DestPtr;[/color]

DestPtr = &LcdDspBuf;
for ( 
i=0i<10i++ )
{ [
color=CC0000]*DestPtr++ = 0x00;
for ( 
j=0j<8j++ ) 
*
DestPtr++ = *SourPtr++;[/color]
}
}

發表於: 2008/4/16 20:40
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


HI-TECH compiler "const" 語法問題
#1
新會員
新會員


查看用戶資訊
請問一下,我用的是PIC24FJ32GA004...
以下是我問題的程式...:
大綱:基本上我要做的是我將LCD的畫面資料利用 const定義
好,在藉由Function 將畫面的資料搬到Buffer的過程中有些問題。

static unsigned char LcdDspBuf[90] @0x0AB4;

unsigned const char Fun00Menu[80] = {
' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',
'M','O','N','T',' ','S','E','T','P',' ','T','E','S','T',' ',' ',' ',' ',' ',' ',
' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',
' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',
};

void ShowFunctionMenu( unsigned const char *SourPtr );

void main (void)
{ ShowFunctionMenu ( Fun00Men );
}

void ShowFunctionMenu( unsigned const char *SourPtr )
{ unsigned char i,j;
unsigned const char *DestPtr;

DestPtr = &LcdDspBuf;
for ( i=0; i<10; i++ )
{ *(DestPtr++) = 0x00;
for ( j=0; j<8; j++ )
*(DestPtr++) = *SourPtr++;
}
}

執行到紅色字時,出現的錯誤是
RIErr0031: Failed to get PC
RIErr0017: File register read failed

但我看*SourPtr 所指到的位址是0xFFB0

看起來好像是超出範圍了....可否請高手幫我解答...是哪裡弄錯了....謝謝


發表於: 2008/4/15 15:57
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... ]

教育訓練中心

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