• slider image 442
  • slider image 492
  • slider image 493
  • slider image 494
  • slider image 495
  • slider image 496
  • slider image 488
  • slider image 491
:::

論壇索引


Board index » All Posts (PIC_NEWER)




Re: ~ICD 2 問題~ HELP
#71
高級會員
高級會員


已經知道問題, 我的MCU被POWER SUPPLY燒壞了....

發表於: 2007/5/8 14:54
頂部


~ICD 2 問題~ HELP
#72
高級會員
高級會員


Build出現錯誤訊息如下:

Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
ICDWarn0020: Invalid target device id (expected=0x59, read=0x0)
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
ICDWarn0020: Invalid target device id (expected=0x59, read=0x0)
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Programming Target...
ICDWarn0052: MPLAB ICD 2 cannot validate a target device. Please make sure that the target device is connected and properly powered. Select "OK" to continue, or "CANCEL" to abort the operation
.
.
.
ICD0161: Verify failed (MemType = Program, Address = 0x0, Expected Val = 0xEFF9, Val Read = 0x0)
ICD0275: Programming failed.


請問要如何解決? 謝謝回覆!

發表於: 2007/5/8 11:22
頂部


Re: ~C18 問題, 陣列值傳給指標~
#73
高級會員
高級會員


已解決, 宣告這樣就可以.
void InitialLCD(const rom char *BUF)
-------------------------------------------------------------
謝謝回答!
-------------------------------------------------------------
謝謝Ryang , 不過*不能拿掉, 我是用指標陣列代替二維陣列, 因為長度不固定.

Ex:

const rom char* INITIAL_TABLE[INIT_NUM]={
INIT_SWRESET,
INIT_GAMSET,
INIT_GCPSET0N_R,
.
.
.
};

const rom char INIT_SWRESET[]={
SWRESET,EOT
};
const rom char INIT_GAMSET[]={
GAMSET,0x01,EOT
};

const rom char INIT_GCPSET0N_R[]={
GCPSET0N_R,0x91,0x10,0x21,0x08,0x50,0x40,0x84,0x08,0x41,0x48,0x94,0xAB,0x2D,0x56,0xAE,0xD5,0x6A,0xAE,0xAA,0xAA,0x0A,0x41,0x00,0x80,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,EOT
};


發表於: 2007/4/30 10:07
頂部


~C18 問題, 陣列值傳給指標~
#74
高級會員
高級會員


INITIAL_TABLE的值傳不到BUF, 程式如下:

謝謝大家的回答!



#define INIT_NUM 22
#define EOT 0xFF
#define SWRESET 0x01

const rom char INIT_SWRESET[]={
SWRESET,EOT
};

const rom char *INITIAL_TABLE[INIT_NUM]={
INIT_SWRESET,
.
};

void OpenLCD(void)
{
unsigned char i;
unsigned int Len;

for (i=0;i<INIT_NUM;i++)
{
InitialLCD(INITIAL_TABLE[i]);
}

}

void InitialLCD(const char *BUF)
{
unsigned char i,data;

i=0;
while( *(BUF+i) != EOT )
{
data = *(BUF+i);
i++;
}
}

發表於: 2007/4/27 18:12
頂部


Re: LCD問題~HELP~
#75
高級會員
高級會員


如果可以的話...
也Mail一份給我,謝謝!

發表於: 2007/4/27 18:03
頂部


Re: LCD問題~HELP~
#76
高級會員
高級會員


謝謝版主回覆!

發表於: 2007/4/26 10:56
頂部


LCD問題~HELP~
#77
高級會員
高級會員


大家好:

小弟是PIC新手, 也是第一次使用LCD, 目前工作需要驅動彩色LCD(320(RGB)*240)IC, 型號 : EPSON S1D19122, 請問有範例可以參考嗎? 或是有彩色LCD驅動範例程式可以參考?

謝謝回答!感激不盡.

發表於: 2007/4/25 10:49
頂部



« 1 ... 5 6 7 (8)



:::

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

教育訓練中心

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