Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to set a stop (break) point for program execution in MPLAB?

Status
Not open for further replies.

ismu

Full Member level 2
Joined
May 12, 2009
Messages
145
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Location
nil
Activity points
2,340
I want to stop(Break) my program execution ,when PORTB=0b00100010;
Can it possible ? I did't give this value directly in to PORtB , it autamatically updated w.r.t some condition,
when PORTB=0b00100010; it must stop.
 

Re: Breakpoint in MPlab

Use an if condition.

if ( PORTB=0b00100010){
NOP; <---BREAK HERE!
}
 

Re: Breakpoint in MPlab

Use an if condition.

if ( PORTB=0b00100010){
NOP; <---BREAK HERE!
}



This will posibble , But we want the currect time when PORTB=0b00100010 , in your code we get only the time of Exicution nop;(This will xcute after more time from changing PORTB=0b00100010 )

is there any other good solution , this not applicable for me.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top