• slider image 442
  • slider image 509
  • slider image 510
  • slider image 511
  • slider image 512
  • slider image 513
  • slider image 514
  • slider image 515
:::


Browsing this Thread:   1 Anonymous Users






Re: 請問一個array的問題
#7
版主
版主


查看用戶資訊
這是受到 RAM Bank 256 Bytes 的限制,所以要合併 Bank 後才能放入超過 256 Byte 的 Array。
在 W401 C18 的教育訓練裡的第四章後面,有提到如何修改 LKR 檔來放置 512 Bytes 的 Array 的方法。參考一下。

發表於: 2008/11/5 16:13
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問一個array的問題
#6
高級會員
高級會員


查看用戶資訊
既然這篇在講array,我也要順便搭個車問個問題
為什麼在 C18 裡面我 char[128] 只能開到128 ?
雖然我知道 char 是 -128 ~ 127 ....
可是我換成 short [512] 也不行耶 ?
short 是 -32768 ~ 32767

我想開個 [512] 的空間出來收 GPS 一秒鐘的瞬間資料量
可是我開到 128 以上就說超出範圍 ~~

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


Re: 請問一個array的問題
#5
中級會員
中級會員


查看用戶資訊
謝謝tony大,原來如此。

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


Re: 請問一個array的問題
#4
資深會員
資深會員


查看用戶資訊
10=0x0a, 20=0x14, 30=0x1e 這些都是ASCII控制碼,不可顯示,故 MPLAB 以 '.' 代替顯示。
40=0x28='('
50=0x32='2'
合起來是" (2"

在 Watch 視窗裡加入 Decimal (十進位)欄位,就可以看到 10, 20, ...

加入欄位的方式: 在欄位名稱處點滑鼠右鍵,勾選需要的欄位

發表於: 2008/11/4 22:00
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問一個array的問題
#3
中級會員
中級會員


查看用戶資訊
試過了,還是一樣不行勒.....

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


Re: 請問一個array的問題
#2
版主
版主


查看用戶資訊
Link 要選使用 ICD2 除錯,以避開 ICD2 所使用的記憶位址。

Project --> Build Options --> Project

Attach file:



jpg  (0.00 KB)


發表於: 2008/11/4 15:42
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


請問一個array的問題
#1
中級會員
中級會員


查看用戶資訊
小弟使用Hi-tech PICC寫程式(PIC16f690具有debugger的轉接板)的時候,宣告了一個array-->
unsigned char buf[5]={10,20,30,40,50}
,程式compile沒有錯誤與警告,但在ICD2的debugger模式下時,用watch視窗看buf裡面的value,卻出現' . '的東西,但我把buf內的值加總起來後,丟到一個變數去看時,卻又是正常(0x96=150),請問在wath視窗內為什麼會看不到10,20等的值勒?

發表於: 2008/11/4 14:49
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... ]

教育訓練中心

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