Pages: [1]   Go Down
Author Topic: ATMega168 without bootloader inside the IDE  (Read 363 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 104
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 201
Posts: 8669
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Pages: [1]   Go Up
Jump to: