When I insert a breakpoint in an interrupt, ex. Interrupt 0. Then, I generate an interrupt, using PORT3, in a button that I created for Toolbox. However, the interrupt is not generated, if the simulator is running. It is only generated when I debug it in steps. Here is the code of the debug function:
SIGNAL void GenInterrupt(void) { exec("G"); _WBYTE(x:0x8008, 0); PORT3 &= 0xFB; twatch(10); PORT3 |= 0x04; twatch(1056); _WBYTE(x:0x8008, 1); PORT3 &= 0xFB; twatch(10); PORT3 |= 0x04; twatch(1056); _WBYTE(x:0x8008, 0x40); PORT3 &= 0xFB; twatch(10); PORT3 |= 0x04; twatch(1056); _WBYTE(x:0x8008, 0xD2); PORT3 &= 0xFB; twatch(10); PORT3 |= 0x04; }
Which chip are you simulating and which tool versions are you using? Can you send example code to: support.intl@keil.com.