Pages: [1]   Go Down
Author Topic: arduino with an atmega8l @16Mhz and 19200bps  (Read 878 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hi,
hello everybody. I'm a complete newbie to arduino's but i used few of the AVR micros using WINAVR as the compiler.i used a simple serial port programmer designed by lanconelli. Even before starting journey with the AVR's i heard about arduino and became a fan right from then.Now i want to make an arduino for my self so that i can enjoy the power of arduino. I have an atmega8l micro and using ponyprog i burnt the bootloader given in arduino-1.0.3 i.e ATmegaBOOT-prod-firmware-2009-11-07.hex file. i connected the circuit on a breadboard and tried to upload the example sketch.the led on PB5 pin was blinking but the arduino could not upload the sketch.
                   Am i doing anything wrong in the programming of bootloader. Since i dont have an arduino i first wrote the lockbits to 0x3f and then burnt the bootloader to the micro.later i wrote the lockbits to 0x0f. i even programmed the lowfusebytes and highfuse bytes as mentioned for the Arduino NG or older w/ ATmega8. i'm using a max232 to communicate with the micro.when i just turn on the supply and click on upload button i get the error as
Binary sketch size: 890 bytes (of a 7,168 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x00
                     please help me where i was wrong. should i build a parallel port programmer for burning the bootloader.thanks in advance.
Logged

Offline Offline
Edison Member
*
Karma: 57
Posts: 2078
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you are new to Arduino, you could better buy an Arduino Uno. Once you know everything about Arduino, you could try to make one yourself.

Perhaps this is usefull:
http://arduino.cc/en/Main/Standalone
http://arduino.cc/en/Tutorial/ArduinoToBreadboard

The Arduino IDE (the software you can download, version 1.0.3 at the moment), takes care of the fuses if you write the bootloader.
If you make something compatible with ATmega 8 NG, you should use an ATmega8 at 16MHz.
How can you run a ATmega8L at 16MHz ? It is a 8MHz chip.
Logged

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 452
Posts: 18694
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i burnt the bootloader given in arduino-1.0.3 i.e ATmegaBOOT-prod-firmware-2009-11-07.hex file. i connected the circuit on a breadboard and tried to upload the example sketch.the led on PB5 pin was blinking but the arduino could not upload the sketch.
       

How did you burn the bootloader? Sounds like you have a programmer already. What are the fuse bytes?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thank you very much. I just overlooked at the combined datasheet of atmeg8 and 8l.yes sir u were right.thanks once again. i'll surely retry by changing the clock.yes,sir i made a serial port programmer and set the fuse bytes as shown for Atmega8 bootloader in the arduino folder.
Logged

Pages: [1]   Go Up
Jump to: