Re: 笨笨的新手
|
||||
---|---|---|---|---|
版主
|
PIC16F 系列只有硬體堆疊,也只會存PCL & PCH 的值而已。你說T0IF會存到堆疊似乎是不可能的事,請在詳細檢查。建議用 MPALB SIM 就可以了。
發表於: 2006/10/20 13:08
|
|||
|
笨笨的新手
|
||||
---|---|---|---|---|
高級會員
|
我想請問一下我現在在很簡單的時間中斷程式
晶片為16f76 我是利用timer0來作中斷 現在發現一個問題為什麼我每次一中斷 程式就會把一個數值放到STACK裡面 一致於程式執行到一半就發生STACK滿的錯誤 是我哪邊有設到嗎 然後我用MPLAB IDE裡面的"WATCH"的功能去看中斷值 為什麼我程式單點執時,還未中斷 看T0IF的值是"18"或"19"跳來跳去 中斷一發生就會把18或19的值放到STACK裡面 有誰能告訴我這是什麼原因嗎
發表於: 2006/10/20 11:00
|
|||
|