Go Down

Topic: ATMega168 without bootloader inside the IDE (Read 462 times) previous topic - next topic

asuryan

Hi!

I got a bunch of cheap ATMega168 and would like to programm them without
the need of a bootloader. Ive got a USBasp programmer.

1. Is it possbile to programm them from the Arduino IDE with nice Arduino code?
2. If "Yes" what do I have to do to get the ATMega168 in the boards menue? What kind of
settings do I have to add to the boards.txt? I would like to programm them with my USBasp.

Regards and thanks in advance!

johnwasser

If you provide the chip with a 16 MHz crystal:

Tools->Board->"Arduino Diecimila or Duemilanove w/ATmega168"
Tools->Programmer->"USBasp"
Tools->Burn Bootloader (to set the fuses)
File->Upload Using Programmer

If you don't have a 16 MHz clock (using the 8 MHz internal RC clock)

Add "ATmega16 with internal clock" to boards.txt.  Google for the appropriate settings.
Tools->Board->"ATmega16 with internal clock"
Tools->Programmer->"USBasp"
Tools->Burn Bootloader (to set the fuses)
File->Upload Using Programmer
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy