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

論壇索引


Board index » All Posts (jlian)




Re: table read and table write
資深會員
資深會員


大家好:
以下為個人小小範例,如有不對請見諒.
const unsigned char a_table[4]={3,4,5,6};
main()
{
unsigned char i;
for(i=0;i<4;i++)
{
PORTA=a_table[i];
delay();
}
}
這樣compiler本身就會翻成asm就可看到.
Thanks.

發表於: 2008/6/3 13:10
頂部


Re: 請問於PICC16 V9.6該如何自定RAM位址?
資深會員
資深會員


大家好:
謝謝版主,又有一個MPLAB V8.2顯示的問題?=>
unsigned char* j;
我是定義unsigned char應該是8位元吧!
在Watch視窗為何是顯示16位元呢?
Address | Symbol Name | Value | Hex
042 j 0x0143 0x0143
煩請解說.Thanks.

我有試個應該沒有關係,只是顯示上的小錯誤!


發表於: 2008/6/3 11:11
頂部


Re: 請問於PICC16 V9.6該如何自定RAM位址?
資深會員
資深會員


大家好:
很抱歉,版主又要麻煩你了!
1.在main()之前=>
volatile unsigned char eeprom_addr @ 0x71;

2.在main()中=>
unsigned char* j;
...
FSR=&eeprom_addr;

3.Compiler顯示警告=>
Warning [358] D:\Test\MCU\PIC\HTC_16C\TS_914C\MAIN.C; 72.17 illegal conversion of pointer to integer
不知是什麼原因?

4.當然在main()中=>
unsigned char eeprom_addr;
unsigned char* j;
j=&eeprom_addr;
是OK的.

能否幫忙代為解說呢?
Thank you very much.

發表於: 2008/6/3 8:12
頂部


Re: 請問於PICC16 V9.6該如何自定RAM位址?
資深會員
資深會員


大家好:
感謝版主回答,But這行FSR=@eeprom_addr;會有錯誤=>
Error [195] D:\Test\MCU\PIC\HTC_16C\TS_914C\MAIN.C; 71.5 expression syntax

不知是何原因?
再麻煩了!
Thanks.

發表於: 2008/6/2 16:43
頂部


Re: 請問於PICC16 V9.6該如何自定RAM位址?
資深會員
資深會員


大家好:
RAM的定址已解決=>
volatile unsigned char eeprom_addr @ 0x71;

但現在又有一個問題,如何將RAM的位址設給FSR呢?
嘗試中...
Thanks.

發表於: 2008/6/2 15:52
頂部


請問於PICC16 V9.6該如何自定RAM位址?
資深會員
資深會員


大家好:
如題,個人使用16f914想將變數的RAM address,
定於BANK0 之0x71及0x72,不知該如何設定,
煩請指教,Thanks.

發表於: 2008/6/2 14:24
頂部


Re: 請問PICC16 v9.6於啟動時會自動清除RAM嘛?
資深會員
資深會員


大家好:
自己用組合翻成C,已解決.
Thanks

發表於: 2008/6/2 13:58
頂部


Re: 請問於PICC16 v9.6中如何讀寫IC內部eeprom呢?
資深會員
資深會員


大家好:
自己用組合翻成C,已解決.
Thanks

發表於: 2008/6/2 13:57
頂部


請問於PICC16 v9.6中如何讀寫IC內部eeprom呢?
資深會員
資深會員


大家好:
如題,煩請那位先進告知,因找不到範例!
Thanks.

發表於: 2008/6/2 10:27
頂部


請問PICC16 v9.6於啟動時會自動清除RAM嘛?
資深會員
資深會員


大家好:
如題,假如不會自動清除的話,那麼我該如何設定
RAM ptr呢?

煩請告知,Thanks.

發表於: 2008/6/2 9:16
頂部



« 1 ... 66 67 68 (69) 70 71 72 73 »



:::

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

教育訓練中心

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