Can we test behavior of switch while debugging code?

Thread Starter

rt694157

Joined Dec 15, 2019
68
Hi, I have pickit 3 debugger/programmer. I want to know, Is it possible to test behavior of switch button while debugging program?
 

Sensacell

Joined Jun 19, 2012
2,833
Yes- use the debugger, place a few NOPs before the test of the switch state, set a breakpoint on the NOP.
Run the code and step through with the switch closed and then open.
 
Top