free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
say2paul
Sat Jun 28 2008, 11:09AM
 User Offline
Registered Member #8461
Joined: Tue Jun 17 2008, 10:56AM

Posts: 123
Thanked 6 times in 6 posts
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!





Back to top


say2paul
Sat Jun 28 2008, 11:12AM
 User Offline
Registered Member #8461
Joined: Tue Jun 17 2008, 10:56AM

Posts: 123
Thanked 6 times in 6 posts
Please find attached the zip file containing the C and HEX code.
ledtest.zip
Back to top


۞ TPS ۞
Sat Jun 28 2008, 11:32AM

 User Offline
Registered Member #2712
Joined: Tue Jul 31 2007, 12:06AM

Posts: 470
Thanked 67 times in 57 posts
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


Online Component Shoppe
http://www.onlinetps.com/
Components at cheap rates in India
Back to top



This post has been thanked 1 time
 say2paul 
sashijoseph
Sat Jun 28 2008, 11:47AM

 User Offline
Registered Member #5870
Joined: Mon Feb 04 2008, 06:26PM

Posts: 648
Thanked 137 times in 130 posts
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.

Let there be music........
Back to top



This post has been thanked 1 time
 say2paul 
۞ TPS ۞
Sat Jun 28 2008, 12:00PM

 User Offline
Registered Member #2712
Joined: Tue Jul 31 2007, 12:06AM

Posts: 470
Thanked 67 times in 57 posts


Online Component Shoppe
http://www.onlinetps.com/
Components at cheap rates in India
Back to top


say2paul
Sat Jun 28 2008, 12:04PM
 User Offline
Registered Member #8461
Joined: Tue Jun 17 2008, 10:56AM

Posts: 123
Thanked 6 times in 6 posts
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
Back to top


say2paul
Sun Jun 29 2008, 08:16AM
 User Offline
Registered Member #8461
Joined: Tue Jun 17 2008, 10:56AM

Posts: 123
Thanked 6 times in 6 posts
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.
Back to top


say2paul
Thu Jul 03 2008, 10:32PM
 User Offline
Registered Member #8461
Joined: Tue Jun 17 2008, 10:56AM

Posts: 123
Thanked 6 times in 6 posts
I will try it with 10uF 25V capacitor instead!
Back to top


Ajay
Thu Jul 03 2008, 11:31PM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4035
Thanked 751 times in 710 posts
sure you can.. as you are working with 5V only

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


say2paul
Fri Jul 04 2008, 02:04AM
 User Offline
Registered Member #8461
Joined: Tue Jun 17 2008, 10:56AM

Posts: 123
Thanked 6 times in 6 posts
yes!!
Back to top


 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems