I have connected my ATMega328P on a breadboard using a 10 pin ISP to my USBasp. Whenever I put the Vcc and Pin to their respective positions on the ATMega328P on a breadboard, the USBasp turns off and is ejected from my computer. If I either take the GND or Vcc pin out of the breadboard, the USBasp turns back on and is recognized by my computer. I am not able to program my MCU beacuse of this.
Sounds like a short circuit between Vcc and Ground in your breadboard. Connecting the two together will draw more than 500 mA from the USB port and cause a port shutdown.
You said "breadboard", eh?
You've made a wrong connection somewhere. Start again. Presumably working from Nick's tutorial?
Could be that you have the wires going to your 10 pin ISP connector wrong
(backwards, inverted, flipped, etc..) it is easy to accidentally do.
Also, some, if not most, USBasp programmers want to drive 5v for the target so you must allow the USBasp
device to power the target vs power the target.
(i.e. don't power the target board)
Some USBasp devices have a power jumper that you can set if you want to power the target
or let the target power itself.
--- bill
Either:
You're plugging it in backwards, and it's shorting. It'll do this if you put the 6-pin connector on backwards. Not sure about the 10-pin (I've always used the 6, don't remember 10 pin pinout off the top of my head.)
Your breadboard has a short in it - have you checked for this?
Your breadboard has something power hungry connected - disconnect it, the USBASP can't supply much current.
You have an external power source connected to the breadboard, and it's fighting with the power from USB - disconnect it, or disconnect Vcc from USBASP.
I have checked for shorts in my breadboard but there isn't any. I am sure that the pins from my 10 pin connector are connected to the proper pins of the microcontroller. Another thing I noticed was that after I take either the Vcc or GND jumper wire out of its slot and try to program the ATMega328P, the LED next to the letter R blinks once but obviously there is an error saying that it cannot find the target device.
There seems to be another person on the internet who is having the same problem as mine. Visit the below link to go to the forum where he had asked help for.
http://www.avrfreaks.net/forum/usbasp-connection-problem-0
