Re: 請教有關dsPIC33FJ128MC710的問題
|
||||
---|---|---|---|---|
版主
|
W14 & W15 不要用,他們是堆疊磚用的戰存器。通常在使用 dsPIC 時我會加入一段Trap的程式來偵測NMI的中斷。可以參考 dsPIC30F Peripheral Module - Internal EEPROM 的 workshop 範例。
/* Header Files */
發表於: 2007/7/9 22:29
|
|||
|
請教有關dsPIC33FJ128MC710的問題
|
||||
---|---|---|---|---|
新會員
|
請教各位高手
我使用ICD 2在除錯時 常常發現會進入Address Error Trap和Stack Error Trap 我看過spec知道這兩個error trap發生的原因 但是我發現我的程式不是在固定的地方會發生這樣的問題 而且利用ICD 2 單步執行時常會有類似下面的情況 mov.w w0,w15 理論上應該要把w0的16位元的資料都複製到w15中 但是執行完這一指令之後 w15卻只有讀入w0的低八位元的值 高八位元的值就變成00 我在猜測是因此造成上述兩種error traps 另外想要補述一點 我的板子是自己用轉接板焊接的 不知道焊接技術不好有沒有可能造成這種問題 只是我之前用同樣的板子跑小程式都沒問題 想請問大家有沒有遇過類似的問題 是不是我哪裡忽略了 請高手賜教!謝謝!
發表於: 2007/7/9 18:03
|
|||
|