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

Adding NOP at 0000h, revisited.

I read the following document to add a NOP before the LJMP at address 0000h. (http://www.keil.com/support/docs/1622.htm, Size 5,096 bytes, Jun 20, 2000) But, I'm still not clear on how to do it. I followed the instructions, but nothing was changed in the final object code. I'm using uVision2 IDE. Do I need to specify the new directory for startup.a51? Where?

The reason I want to do this is because my 8032-based board is not getting set up properly at power up. It was suggested to try this. Only after a manual reset, the program executes properly. The RC power-up reset is 100ms.

Parents
  • The uVision2 Simulator simulates the REAL microcontroller. There is no way to change where the REAL interrupt vector starts on an 8051. Therefore, there is no way to change it in the simulator.

    Why is a NOP needed before the LJMP? I assume you are doing that because of a reset/startup issue with the power supply. Will 1 instruction (1/1,000,000 of a second) help the power supply stabalize?

    Why not leave the reset vector alone and jump to a delay loop that lasts for 100msec or so?

    What you are doing makes interrupt 0 unusable. I'm pretty certain the chip designers didn't have that in mind when they developed the silicon.

    Jon

Reply
  • The uVision2 Simulator simulates the REAL microcontroller. There is no way to change where the REAL interrupt vector starts on an 8051. Therefore, there is no way to change it in the simulator.

    Why is a NOP needed before the LJMP? I assume you are doing that because of a reset/startup issue with the power supply. Will 1 instruction (1/1,000,000 of a second) help the power supply stabalize?

    Why not leave the reset vector alone and jump to a delay loop that lasts for 100msec or so?

    What you are doing makes interrupt 0 unusable. I'm pretty certain the chip designers didn't have that in mind when they developed the silicon.

    Jon

Children
No data