say2paul
Jun 28 2008, 11:09 AM
Today I got my first microcontroller programmer for 8051 from www.sunrom.com (1001-3456 v2)
I downloaded the example hex file provided by sunrom to the AT89C51. It was a very simple example to blink the LED connected to any pin of port 2.
I designed the following circuit in Proteus ISIS and it ran successfully without any error with the attached HEX code. But when I designed the same circuit on the Breadboard then the same is not blinking the LED, instead it just turn on the LED. I cross checked all the connections and found that connections are correct. I downloaded the HEX file on another AT89C51 and tried.. again the same thing.
What is wrong, please help me. Can anyone try this at their end and PLEASE let me know where I am wrong!
I downloaded the example hex file provided by sunrom to the AT89C51. It was a very simple example to blink the LED connected to any pin of port 2.
I designed the following circuit in Proteus ISIS and it ran successfully without any error with the attached HEX code. But when I designed the same circuit on the Breadboard then the same is not blinking the LED, instead it just turn on the LED. I cross checked all the connections and found that connections are correct. I downloaded the HEX file on another AT89C51 and tried.. again the same thing.
What is wrong, please help me. Can anyone try this at their end and PLEASE let me know where I am wrong!
say2paul
Jun 28 2008, 11:12 AM
۞ TPS ۞
Jun 28 2008, 11:32 AM
you are not using pin no 9(RST) and 31 EA/VPP Connect it properly you will get the result best of luck
Please Use This Circuit

Please Use This Circuit

sashijoseph
Jun 28 2008, 11:47 AM
Have you provided a proper power-on reset ckt?
Is your xtal close to the micro's pins?
The code is ok.Try increasing the delay 2 or 3 folds.
Is your xtal close to the micro's pins?
The code is ok.Try increasing the delay 2 or 3 folds.
۞ TPS ۞
Jun 28 2008, 12:00 PM

say2paul
Jun 28 2008, 12:04 PM
Thanks TPS and sashijoseph, I dont have the required capacitor for reset circuit right now. I will get it in the morning and will test the circuit and let you know.
And TPS that a lot for the Breadboarg diagram
And TPS that a lot for the Breadboarg diagram

say2paul
Jun 29 2008, 8:16 AM
Thanks its working fine now. The power on reset circuit really worked!
P.S. I noticed that the blinking of Led starts after 1-2 seconds I supply the power to the circuit, might be because of 10uF 63V capacitor.
P.S. I noticed that the blinking of Led starts after 1-2 seconds I supply the power to the circuit, might be because of 10uF 63V capacitor.
say2paul
Jul 3 2008, 10:32 PM
I will try it with 10uF 25V capacitor instead!
Ajay
Jul 3 2008, 11:31 PM
sure you can.. as you are working with 5V only 

say2paul
Jul 4 2008, 2:04 AM
yes!!
