Re: 請問一個array的問題
|
||||
---|---|---|---|---|
版主
|
這是受到 RAM Bank 256 Bytes 的限制,所以要合併 Bank 後才能放入超過 256 Byte 的 Array。
在 W401 C18 的教育訓練裡的第四章後面,有提到如何修改 LKR 檔來放置 512 Bytes 的 Array 的方法。參考一下。
發表於: 2008/11/5 16:13
|
|||
|
Re: 請問一個array的問題
|
||||
---|---|---|---|---|
中級會員
|
謝謝tony大,原來如此。
發表於: 2008/11/5 8:14
|
|||
|
Re: 請問一個array的問題
|
||||
---|---|---|---|---|
資深會員
|
10=0x0a, 20=0x14, 30=0x1e 這些都是ASCII控制碼,不可顯示,故 MPLAB 以 '.' 代替顯示。
40=0x28='(' 50=0x32='2' 合起來是" (2" 在 Watch 視窗裡加入 Decimal (十進位)欄位,就可以看到 10, 20, ... 加入欄位的方式: 在欄位名稱處點滑鼠右鍵,勾選需要的欄位
發表於: 2008/11/4 22:00
|
|||
|
Re: 請問一個array的問題
|
||||
---|---|---|---|---|
中級會員
|
試過了,還是一樣不行勒.....
發表於: 2008/11/4 16:26
|
|||
|
Re: 請問一個array的問題
|
||||
---|---|---|---|---|
版主
|
Link 要選使用 ICD2 除錯,以避開 ICD2 所使用的記憶位址。
Project --> Build Options --> Project Attach file: (0.00 KB)
發表於: 2008/11/4 15:42
|
|||
|
請問一個array的問題
|
||||
---|---|---|---|---|
中級會員
|
小弟使用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
|
|||
|