I tried to flash my ATmega328P-PU not over the Arduino but over a self-made programming board and an USBasp. The problem is, I made the board a while ago and didn't mark which direction the 10-pin connector has to go.

My question is, can I fry the ATmega if I connect the 10-pin connector the wrong way around? Also, can this harm the USBasp in any way?

Connecting it the wrong way around would give me the following connections:

USBasp  ---  ATmega

MOSI    -|
NC      -|-  GND
RST     -|
SCK     -|

MISO    ---  Vcc
Vcc     ---  MISO

         |-  MOSI
GND     -|-  NC
         |-  RST
         |-  SCK
  • 2
    As long as there isn't anything connected to the arduino that uses power you'll probably be fine. The clamping diode on the MISO pin will pass VCC from the usbASP to the arduino's vcc. I've done something similar a few time myself, and the chips are still fine. Just don't leave it connected the wrong way for too long. But I'd suggest just getting the multimeter and check that way, before connecting.
    – Gerben
    Commented Aug 16, 2015 at 10:03

1 Answer 1


No, connecting it backwards shouldn't do any damage, it just won't work. The clue is in these two connections:

NC      -|-  GND
GND     -|-  NC

With it backwards the ground connection doesn't go anywhere. Without that ground connection there's no circuit. With no circuit, no current flows.

The only possible danger is to the protection diodes in the IO pins when you try and operate the programmer. The lack of a ground connection could cause some current to flow the wrong way through the circuit (in through the ATMega's MISO pin and out through the MCU's Vcc pin) through the ESD protection diode. That could cause damage to that diode and maybe the rest of the MISO pin's logic, but it's not that likely since the currents involved would be somewhat limited by the route the power then takes through the MISO pin of the programmer.

  • Thanks for the answer! Is there any danger for the programmer?
    – Dakkaron
    Commented Aug 16, 2015 at 21:07
  • I'm not sure what the design of the programmer is, but a sensible one would include resistors in all the IO lines to protect against overcurrent, so it's highly unlikely that it would cause any problems.
    – Majenko
    Commented Aug 16, 2015 at 21:10
  • Ok, sounds good. Thanks a lot for your help!
    – Dakkaron
    Commented Aug 17, 2015 at 8:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.