µVISION DEBUGGER: SIMULATING INT0 INTERRUPT
Information in this article applies to:
How can I generate an INT0 when I'm simulating my program using the µVision Debugger?
On the 8051, INT0 is triggered whenever P3.2 goes low (if INT0 is configured for level-sensitive) or on the falling edge of P3.2.
To trigger the INT0 interrupt when you're simulating your program, all you have to do is set P3.2 (the input pin) low or toggle it low and back high again.
The debugger supports VTREGs which allow you to manipulate the simulated pins of PORT3.
So, to set P3.2 to a 0, in the Command Window enter the following:
PORT3 &= ~0x04
To toggle P3.2 low and back high, enter the following:
PORT3 &= ~0x04 // Delay for at least one clock cycle PORT3 |= 0x04
Last Reviewed: Monday, June 28, 2004
of your data.