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


Browsing this Thread:   1 Anonymous Users






Re: Hi-tech PICC 建立查表 是否有 page 的限制?
#4
資深會員
資深會員


查看用戶資訊

發表於: 2009/6/15 17:04
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: Hi-tech PICC 建立查表 是否有 page 的限制?
#3
資深會員
資深會員


查看用戶資訊
我用 hitech C pro (Lite )v9.65 PIC 690 測試

總共使用 3個 const char 陣列 只要是 總數 >= 400 就死當.

看手冊也沒提到總共可用多少, 有人用過嗎?

==========================================================

HI-TECH C Tools for thePIC10/12/16 MCU Family manual P.94 3.3.11.2 Data Pointers

• An 8-bit pointer capable of accessing common memory and two consecutive banks, e.g. banks
0 and 1, or banks 7 and 8;
– Address is an offset into the lower bank of the bank pair, e.g. bank 0 (extending into
bank 1) or bank 7 (extending into bank 8)
• A 16-bit pointer capable of accessing the entire data memory space;
• An 8-bit pointer capable of accessing up to 256 bytes of program space data;
– Address is an index into a lookup table;
• A 16-bit pointer capable of accessing up to 64 kbytes of program space data;
– Address is an offset into psect strings;
• A 16-bit pointer capable of accessing the entire data space memory and up to 64 kbytes of
program space data;
– The most significant bit indicates the memory space of the target: 1 indicates an address
of an object in the data space; 0 indicates the address of an object in the program space;

發表於: 2009/6/12 11:29
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: Hi-tech PICC 建立查表 是否有 page 的限制?
#2
資深會員
資深會員


查看用戶資訊
將讀取陣列資料方法自 index 改成 pointer 後, 目前兩個 array table, 似乎都正常.

參考
1. hi-tech PICC Workshop p73 p74
2. 8051單晶片C 語言設計實務 3-37~3-45

發表於: 2009/6/7 13:59
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Hi-tech PICC 建立查表 是否有 page 的限制?
#1
資深會員
資深會員


查看用戶資訊
我用16F914 及 picc pro 9.65 製作 NTC 溫度計,
用adc 讀取電壓值在利用查表法取得正確溫度,
只建立一組溫度資料時, lcd 顯示溫度一切正常

// 第一組
const unsigned char Thermo_Table[220] =
{
省略
};

// 第二組
const unsigned char Thermo_Hi_Table[220] =
{
省略
};

可是我複製第一組, 建立第二組資料時, 編譯燒錄程式都 ok !
執行程式 就死當!

把第二組資料刪除後, 程式又正常.(兩組資料目前是一樣的,沒理由會不工作)



PICC Table 建立是否仍有 1 page (256 bytes) 限制,
是否要指定 ROM 的特定位址分別成 2 page 建立兩個Table才可以? 要如何指定?

我想請問有人有類似經驗嗎?

發表於: 2009/6/5 19:00
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... ]

教育訓練中心

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