Arduino uno programming using avrisp

hello guys
I'm new to AVR & Arduino So plz help me to get this

I have purchased an small AVRISP programmer & I have read a lot on the forums But I'm confused
I want to program my Arduino uno using this programmer
my Arduino already has a bootloader
I was searching for erase the Arduino to program it using ISP but I'm not sure if this is right
I was thinking tht pin13 is connected to the led so how to use it as SCK for programmer

plz help me guys to the appropriate guide

thx in advance

janosandi:
I want to program my Arduino uno using this programmer

Why? Working with programmers is for advanced users. If you can't even spell "please" correctly you're not going to want to go there.

But since you asked, here's how you do it:

  • Tools > Programmer > AVR ISP
  • Plug the programmer into the ICSP header on your Uno
  • Plug the Programmer into your computer.
  • If the programmer doesn't supply power to the Uno you need to also power the Uno.
  • Sketch > Upload using programmer

janosandi:
my Arduino already has a bootloader

I won't have one after the first time you upload to it with your programmer!

connecting to pin13 isn't a problem ? if I want to program an ATMEGA328 loaded with blink example ?
I have tried to erase this example from the atmega but the led keep on
so its ok to reprogram using AVRISP ?

janosandi:
connecting to pin13 isn't a problem ?

No, it's not a problem but it's much easier to just use the ICSP header and less likely that you'll mess up one of the connections and it amounts to the same thing as connecting to pin 13.

janosandi:
if I want to program an ATMEGA328 loaded with blink example ?

Was that a question?

janosandi:
so its ok to reprogram using AVRISP ?

I strongly advise against it. Just upload using the USB cable like all the other noobs.

I'm really curious. Why don't you capitalize the first word in your sentences? Why do you put a space before the punctuation? The first kind of makes sense from a laziness standpoint, though the only time this would really matter is on a touchscreen and then I think it automatically capitalizes. The second is actually more work so it's extremely confusing to me. I notice this is a very regular pattern with beginners, possibly young people? I suspect this has something to do with the brain rot that seems to set in after using a smart phone regularly but I still can't figure out exactly what's going on.

Thx for teaching me English

I'm just asking if I can program ATMEGA328P on Arduino uno using the USBISP by connecting the pins to Arduino pins 10,11,12,13.

I cant use ICSP header because I don't have it,My USBISP only have 10pin connector

So can I program it by connecting to pins 10,11,12,13 of Arduino?

janosandi:
I'm just asking if I can program ATMEGA328P on Arduino uno using the USBISP by connecting the pins to Arduino pins 10,11,12,13.

No, but you can do it by connecting to 11, 12, 13, reset, and GND. If you want to power the Uno from the programmer you'll also want to connect to 5V, or you can power it from the USB jack or barrel jack if you prefer or if your programmer doesn't supply power.

janosandi:
I cant use ICSP header because I don't have it

If you have an Uno, it has an ICSP header. However:

janosandi:
My USBISP only have 10pin connector

having a 10 pin connector on the programmer means you can't just plug straight in to the Uno's ICSP header so it's just as easy to connect to the other pins on the board. Even more so if you only have male to male jumper wires.

So would you plz guide me to the correct pins ?
I see on Arduino pins that
Pin13 is the sck
Pin12 is the miso
Pin11 is the mosi
Pin10 is the ss (is it the same as Reset pin ?)

I will power my board using an external Adaptor

Here's your 10 pin ICSP cable's pinout:

There will be a mark of some kind to indicate pin 1.

Make the following connections (NC == not connected):

Programmer Uno
1 (MOSI) 11 (MOSI)
2 (Vcc) NC
3 (unused) NC
4 (Ground) GND
5 (RESET) RESET
6 (Ground) NC
7 (SCK) 13 (SCK)
8 (Ground) NC
9 (MISO) 12 (MISO)
10 (Ground) NC