Hi
I am using 89V51RD2 developed by Philips. I use Keil C51 to program it and Flash magic to burn the program.
Everything works fine but when I use Port 2, it is not giving output as expected.
Only for
P2=0xff
or
P2=0x88
the port 2 is activated and for all other inputs such as
P2=0x01
etc. no pin is pulled up. What could be wrong? Is my program wrong?
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.