PIC megszakitas

Pipi pipi at puzsar.hu
Tue Jan 2 13:53:25 CET 2007


bozse at freemail.hu írta:
> On Sun, 31 Dec 2006 19:34:26 +0100
> Pipi <pipi at puzsar.hu> wrote:
> 
>> ha icd akkor NOP-pal kezdodik a progi!
> 
> ICD1
> Ezt nem tudtam, ez miért is kell?
mert így találták ki

kukucskálj bele: MPLAB help - topics - icd2
search -> nop

1:
When halting, single stepping, or stopping on a breakpoint, MPLAB IDE seems to lock up
Your program may not have locked up, but may be running very slowly. This is an upload of data issue. See When single stepping, the program runs too slowly.

Also, if you are using PIC16F87X device, the first program memory location (address 0x0000) must be a NOP instruction or you will not be able to single step past location zero.

2:
Q: When setting a breakpoint at the first location in my program, why does it stop at address 0001 rather than 0000?
A: MPLAB ICD 2 stops at the instruction after the breakpoint. This means that a breakpoint at address 0000 will be executed, then the program counter will be pointing at address 0001 when it gets a 
breakpoint. If a user needs to stop at the first instruction in their code, they must put a NOP at address 0000.





-- 
Pipi
http://www.puzsar.hu
--------------------------------------------------------------
Legyen türelmes, a számítógép is eléggé türelmes önnel szemben



More information about the Elektro mailing list