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

P89V51RD2 code not working.

I am using P89V51RD2BN(40 Pin) IC and KEIL Compiler to generate .hex file.
I have compiled a simple code to generate a square wave on pin no. 5 of P3 port(P3^5).

I m using Advantech Lab Tool-48UXP External programmer to program P89V51RD2.

When I Burn the code in Atmel 89C51 square wave is generated on pin no. 5 of P3 port(P3^5), but the same code when burn for P89V51RD2BN, it does not work.

We have included P89V51RD2.h as a header file to main source code provided on KEIL website.

P89V51RD2 processor specific STARTUP.A51 is created using KEIL µVision3 software and .hex file is created using the same software.

Please tell why such a simple code is not working in P89V51RD2??

Am I missing any steps while generating .hex file.

Parents
  • Have you carefully checked all the details of the "Atmel 89C51" Datasheet against all the details of the "P89V51RD2BN" Datasheet?

    If it "works" on one but not the other, then you must be relying on something that happens to hold for one but not the other

    "We have included P89V51RD2.h ... P89V51RD2 processor specific STARTUP.A51"

    Those are indeed necessary - but not sufficient.

Reply
  • Have you carefully checked all the details of the "Atmel 89C51" Datasheet against all the details of the "P89V51RD2BN" Datasheet?

    If it "works" on one but not the other, then you must be relying on something that happens to hold for one but not the other

    "We have included P89V51RD2.h ... P89V51RD2 processor specific STARTUP.A51"

    Those are indeed necessary - but not sufficient.

Children