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

Handle Interrupt

Hi. I'm doing my thesis on 8051 and i'm programming interrupt routines in Keil C and simulate them. But I can't use variables inside interrupt routines because they generate unpredictable effects on simulations. Does anybody can help me please?

Parents
  • Uhhh, are you using an 8051 with an external data/address bus that is driven by P0 and P2? If so, you can't use P0 and P2 for general purpose I/O. Since the serial port and RD/WR pins are provided on P3, you can't modify P3 the way you modify P1.

    Since I don't really have details of the device or hardware you are using and since I really don't know what a Modeltech is, it's impossible for me to help you.

    If you're using the Keil tools, tho, why don't you use the simulator in uVision2?

    Jon

Reply
  • Uhhh, are you using an 8051 with an external data/address bus that is driven by P0 and P2? If so, you can't use P0 and P2 for general purpose I/O. Since the serial port and RD/WR pins are provided on P3, you can't modify P3 the way you modify P1.

    Since I don't really have details of the device or hardware you are using and since I really don't know what a Modeltech is, it's impossible for me to help you.

    If you're using the Keil tools, tho, why don't you use the simulator in uVision2?

    Jon

Children