|
|||||||||||
Technical Support Support Resources
Product Information |
µVISION DEBUGGER: Simulating INT0 InterruptInformation in this article applies to:
QUESTIONHow can I generate an INT0 when I'm simulating my program using the µVision Debugger? ANSWEROn 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: Tuesday, January 5, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.