Re: 拜託!幫幫忙,請幫我看看程式哪裡有問題...
|
||||
---|---|---|---|---|
高級會員
|
你的遞減回圈,遞減值沒有回存
看看這3個DECFSZ有啥不同 最後一個才正確
delay ;delay program
發表於: 2006/7/29 16:29
|
|||
微電腦自動控制設計,產品製造
才疏學淺,若有錯誤敬請指正 |
||||
|
拜託!幫幫忙,請幫我看看程式哪裡有問題...
|
||||
---|---|---|---|---|
新會員
|
小弟最近在學習PIC16FXX,參考的書籍是"PIC16F84單晶片微電腦入門實務"全華出版的,照著書本程式一步步學習覺得還滿好玩的!唯一的缺點是書本範例都是需要SPASM組譯的,但是我只有MPASM組譯器,所以就參考範例順便將程式改成MAPSM可編譯的MICROCHIP指令!
今天把一個七段顯示器範例修改成MPASM可編譯的之後,在MAPLAB IDE模擬看起來都正常,但是把程式燒進IC之後卻只有顯示0~2然後又跳回0了..... 後來再用模擬器測試後發現程式會停在沒有設斷點之處,那個地方是延遲副程式NOP之處,小弟是初學,實在是找不出來,可以幫我看看是哪裡出問題嗎?拜託!!謝謝!
List p=pic16f84a
發表於: 2006/7/29 1:06
|
|||
|