How can I simulate external interrupts, that is, how can I generate an edge on a pin that will cause an interrupt to occur?
• Start the debugger, • Put a breakpoint on the first line of the interrupt routine, • Start the program with the GO button, • Open the window for the Port where the pin you want to toggle is, • Position the mouse on the pin you want to toggle until the world ‘link’ appears • Left click and choose connect to Vcc or connect to ground according to which level (or edge) will trigger your interrupt. If you want your interrupt to occur at a given time you can connect the pin to a waveform generator rather then switching it manually. If your interrupt routine is programmed correctly (right address, right priority, right enable mask and so on), the program execution will stop at the breakpoint.