Atmega328P on breadboard

I want to program a atmega328p on the breadboard using the ISP. I've programmed my UNO with ArduinoISP sketch. I have wired the IC for ISP configuration. I don't want the bootloader. What next I have t do?

Somehow, you need to set the fuses.

If you're using a 16mhz crystal, you can just burn bootloader to set the fuses to use said crystal. If not, you'll need different fuse settings. Don't worry that you've put the bootloader on it, it'll be gone as soon as you upload a sketch to it via ISP

Once you've done that, you can upload by selecting the COM port of the Arduino acting as ISP, Arduino as ISP from programmer, and choose "Upload using programmer" instead of "Upload". When you upload in this way, it blows away the bootloader.

Thank You. I'll try 'upload using programmer'. however,
How do I set the fuses? I have AVRstudio5.

As DrAzzy mentioned, use the Burn Bootloader function of the Arduino IDE to set the fuses and install the bootloader. Then later when you upload a sketch using the programmer, the sketch will replace the bootloader.

dmjlambert:
As DrAzzy mentioned, use the Burn Bootloader function of the Arduino IDE to set the fuses and install the bootloader. Then later when you upload a sketch using the programmer, the sketch will replace the bootloader.

Why to upload the bootloader if we're erasing it at the end ?

Because when you use the IDE to burn the bootloader it sets the fuses.

dmjlambert:
Because when you use the IDE to burn the bootloader it sets the fuses.

Okay. Thank you.

Would it be straightforward to use avrdude to set the fuses instead?

jboyton:
Would it be straightforward to use avrdude to set the fuses instead?

Yes. It will.

I want to learn how to use AVRDude. I have downloaded the winavr.

In the Arduino IDE preferences you can check show verbose output on upload. Then when you burn the bootloader (which also sets fuses) you will be shown the avrdude commands used during the process. Copy those commands to a notepad and use them as models.

I never heard if you have a crystal or not. If you don't have a 16MHz crystal (and caps), and you load the bootloader through the IDE, it will change your fuses, but you will temporarily brick your chip.

If you do have a crystal setup, here's what I would suggest:

  1. Remove the original 328p chip from your UNO, and plug your breadboard chip into the UNO. Make sure it's oriented the same direction as the original chip.
  2. Upload the bootloader to the new chip on your UNO (you've done it before so this should be pretty straight forward)
  3. With the new chip still in the UNO, upload the Blink sketch to it and make sure it works
  4. Powerdown and remove the chip from the UNO and put it in the breadboard with the crystal in place.
  5. Add an LED and limiting resistor to D13 on the breadboard.
    6a) Power-up and if the LED blinks, then your 328p breadboard setup works! Now you can use the ArduinoISP to program over the bootloader and beyond.
    6b) If it doesn't blink, work at getting it blinking. Post messages back here and people can help.

I've seen so many times when people try to wire up an untested breadboard and also try to ISP for the first time. It's tough to figure out where the problem can be.

Also, the link Arduino as ISP Programmer, using Atmel Studio 6 - Microcontrollers - Arduino Forum (that I think you've read) talks about using the avrdude.exe from the Arduino IDE to program with ArduinoISP from the command line. For now, you know this should work because the IDE used it when you loaded the bootloader into your UNO. I would use this to make sure your ISP wiring on the breadboard works.

Thank you but I'm not that much newbie(forgive me if being offensive)

I was successful uploading the chip through ISP using programmer.
I wanted to skip the bootloader as I am going to program 50 chips.

Check avrdude tutorial ladyada (google it). Very simple an good tutorial, there you can learn how to burn fuses.

mart256:
Check avrdude tutorial ladyada (google it). Very simple an good tutorial, there you can learn how to burn fuses.

Yes I Binged it. Thank You.

MalharD:
Yes I Binged it. Thank You.

"Binged it", hehehe, funny.
That means I "StartPage" all the time without even knowing it!