Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I simulate external interrupts, that is, how can I generate an edge on a pin that will cause an interrupt to occur?

0
Posted

How can I simulate external interrupts, that is, how can I generate an edge on a pin that will cause an interrupt to occur?

0

• 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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123