Hello everyone,
Can any one assist me with the issue am experiencing.
I am using Philips P89V51RD2BN for my project; Flash Magic to program it.
The issue:-
I was able to read the device signature 4 or 5 times earlier.
After that when I built a simple project using Keil uVision 3 that toggled pin 1.0 of the micro-controller it would not run.
The project included a simple file with the following code:-
#include
#include
void main(void)
{
unsigned int i;
while(1)
{
P1 = 0x01;
for(i=0;i<50000;i++);
P1= 0x00;
}
}
Using the debug utility of Keil I found that the code was correct and was giving the desired output.
With a Digital Multi-meter I tried to check if the output at the pin was toggling or not. There was no change at the pin it remained 5V. Also, all the other pins showed 5 V. I reset the device, and then tried to re-program the device. But still there was no desired output.
I attempted once more, Then mid way, I attempted to cancel the burning. While the cancellation was going on, there was a power failure.
After that whenever I try to read the device, I am prompted to reset the device in ISP mode. I tried reducing the Baud Rate (as prompted a few times), but with no results.
For the reset circuit, I have connected a 10uF (electrolytic) capacitor in series with a 8.2K resistor between the Vcc[5V] and ground.The node of R-C has been connected to the pin 9 of the controller. A push-button switch has been connected across the capacitor.
Can any one assist me with the issue am experiencing.
I am using Philips P89V51RD2BN for my project; Flash Magic to program it.
The issue:-
I was able to read the device signature 4 or 5 times earlier.
After that when I built a simple project using Keil uVision 3 that toggled pin 1.0 of the micro-controller it would not run.
The project included a simple file with the following code:-
#include
#include
void main(void)
{
unsigned int i;
while(1)
{
P1 = 0x01;
for(i=0;i<50000;i++);
P1= 0x00;
}
}
Using the debug utility of Keil I found that the code was correct and was giving the desired output.
With a Digital Multi-meter I tried to check if the output at the pin was toggling or not. There was no change at the pin it remained 5V. Also, all the other pins showed 5 V. I reset the device, and then tried to re-program the device. But still there was no desired output.
I attempted once more, Then mid way, I attempted to cancel the burning. While the cancellation was going on, there was a power failure.
After that whenever I try to read the device, I am prompted to reset the device in ISP mode. I tried reducing the Baud Rate (as prompted a few times), but with no results.
For the reset circuit, I have connected a 10uF (electrolytic) capacitor in series with a 8.2K resistor between the Vcc[5V] and ground.The node of R-C has been connected to the pin 9 of the controller. A push-button switch has been connected across the capacitor.