This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Simbols in Output Window

Why, when I input a simbol, like IE0, in the OutPut window, while I'm debuging, appear a message saying: "***error 34: undefined indentifier"?

Parents
  • want to force an Interrupt automatically, using the Tool Box...

    The following will do that. You don't need to change IE0 (which is the interrupt enable register).

    define button "Toggle EX0 (P3.2)" , "PORT3 ^= 0x04"

    This toggles P3.2 which is the External Interrupt 0 pin. The interrupt happens depending on how you have the interrupt configured (edge or level sensitive).

    There is an example program that demonstrates this at http://www.keil.com/download/docs/8051_ex0.zip.asp.

    I think it's better to actually trigger the interrupt the same way the MCU does than to manipulate the internal signals directly.

    Jon

Reply
  • want to force an Interrupt automatically, using the Tool Box...

    The following will do that. You don't need to change IE0 (which is the interrupt enable register).

    define button "Toggle EX0 (P3.2)" , "PORT3 ^= 0x04"

    This toggles P3.2 which is the External Interrupt 0 pin. The interrupt happens depending on how you have the interrupt configured (edge or level sensitive).

    There is an example program that demonstrates this at http://www.keil.com/download/docs/8051_ex0.zip.asp.

    I think it's better to actually trigger the interrupt the same way the MCU does than to manipulate the internal signals directly.

    Jon

Children
No data