I have seen some codes,
nop is added after bis & written in comments- set breakpoint here.
I also noted that as soon as bis instruction is executed, debugger first goes to next instrucion & then go to ISR.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
All MSP instructions that have a target that is a processor register (like SR/R2 for GIE bit) do not require access to the memory bus while the write operation is performed. So this cycle is used to fetch the next instruction.Aamir Ali said:I also noted that as soon as bis instruction is executed, debugger first goes to next instrucion & then go to ISR.
So if you want to set a breakpoint after a bis instruciton that enables GIE or LPM, put a NOP behind it and place a breakpoint on the next, real instruction.This ensures that the breakpoint is hit after LPM has ended and/or the ISR has been executed.
**Attention** This is a public forum