[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]

    Search the Q&A Archives

This is the first time I'm using Atmel microcontroller. ...

<< Back to: 8051 microcontroller FAQ

Question by nizam
Submitted on 2/11/2004
Related FAQ: 8051 microcontroller FAQ
Rating: Rate this question: Vote
This is the first time I'm using Atmel microcontroller.  Need your help on how to program the chip.  Below are the steps that I have done.

1. I have written simple program in C(turn High and Low Port 3.7 in a loop with a delay between High&Low) and compile the source code using Keil C compiler.  It produce main.obj file.

2. Then, I use Hi-Lo ALL-11P3 programmer to load the program to the chip.  

- select device: Atmel AT89C4051-25PI

- Load file to program buffer main.obj

- File Formats: Binary

- Unused Bytes: Don't Care

- File start: 00000000

- File end: 0000FFFF

- Buff start: 00000000

- Click on Program Device.  Result: Program OK!.  Verify OK!

3. Then I construct the circuit to test it.

- supply 5V to Vcc

- using crystal 16MHz

- connect 8.2K resistor between Pin1 to Ground

- connect 10microF between Pin1 to Vcc

- connect LED on Port3.7

Result: Port3.7 stay at 5V(or LED always on).  

But this program works well when I debug using Keil microvision.(can see the output blinking On & OFF)

Need your advice if you can see any problem with the steps that I have followed.  

Answer by masud
Submitted on 3/27/2005
Rating: Not yet rated Rate this answer: Vote
r u sure create hex file? if not

mail me


Answer by BELHOB
Submitted on 1/5/2007
Rating: Not yet rated Rate this answer: Vote
Dear Nizam,

Every thing is OK. if the program is working perfectly in Debugger the problem lies in the delay subroutine...

Try increasing the delay to a higher value n u will c the LED blinking..



Your answer will be published for anyone to see and rate.  Your answer will not be displayed immediately.  If you'd like to get expert points and benefit from positive ratings, please create a new account or login into an existing account below.

Your name or nickname:
If you'd like to create a new account or access your existing account, put in your password here:
Your answer:

FAQS.ORG reserves the right to edit your answer as to improve its clarity.  By submitting your answer you authorize FAQS.ORG to publish your answer on the WWW without any restrictions. You agree to hold harmless and indemnify FAQS.ORG against any claims, costs, or damages resulting from publishing your answer.


FAQS.ORG makes no guarantees as to the accuracy of the posts. Each post is the personal opinion of the poster. These posts are not intended to substitute for medical, tax, legal, investment, accounting, or other professional advice. FAQS.ORG does not endorse any opinion or any product or service mentioned mentioned in these posts.


<< Back to: 8051 microcontroller FAQ

[ Home  |  FAQ-Related Q&As  |  General Q&As  |  Answered Questions ]

© 2008 FAQS.ORG. All rights reserved.