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
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 ?
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.
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 ?)