Browsing this Thread:
1 Anonymous Users
|
Re: ICD2 debug 時, step over 的問題
|
|
版主
Joined
: 2004/4/30 10:53 最後登入時間
: 2021/11/30 18:11
From CAE, Microchip
Group:
站務管理者 註冊會員
Level : 75 HP : 744 / 1861 MP : 5367 / 111130 EXP : 45
|
因為 PIC 採用 Pipelining (管線式的指令執行) 的架構,所以 PC 會比程式目前的執行加一行。所以這是正常的現象,用 MPLAB SIM 就不會有此現象。
發表於: 2009/8/11 16:44
|
|
|
ICD2 debug 時, step over 的問題
|
|
高級會員
Joined
: 2004/5/15 14:01 最後登入時間
: 2014/11/30 9:40
Group:
註冊會員
Level : 8 HP : 0 / 175 MP : 27 / 10441 EXP : 0
|
假設程式如下 作step over 時 執行完call DELAY後應該停在下一行 例如movlw 0x00或bra loop 但是實際上卻不會停下來 而是停在call DELAY後的第2行 請問這是正常的嗎? 晶片是pic18f452 發展工具是ICD2
ORG 0x0000 goto Main Main: clrf TRISD loop: movlw 0xff movwf PORTD call DELAY movlw 0x00 movwf PORTD call DELAY bra loop ;******************************************** DELAY: movlw 10 movwf 0x21 del1: movlw 200 movwf 0x22 del2: movlw 200 movwf 0x23 del3: decfsz 0x23 bra del3 decfsz 0x22 bra del2 decfsz 0x21 bra del1 return END
發表於: 2009/8/11 16:02
|
|
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.