6 pin works, 10 pin doesn't

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

6 pin works, 10 pin doesn't

Postby stkmtd » Wed Mar 24, 2010 11:10 am

I swear to god I've checked the wiring a hundred times. I can successfully program chips with the 6 pin connector. When I try to use the 10 pin connector though, I get the dreaded "rc=-1"

Edit: I just got it working on a breadboard. My problem is that I can't get this to work on a fixture I've created to connect a 10-pin header to the atmega324P. Quick question:

Are you supposed to connect all the GND pins on a 10-pin header together? Would connecting them be the cause of the error I'm getting? I didn't connect the GND pins when I got the 10 pin header to work on the breadboard
stkmtd
 
Posts: 13
Joined: Wed Mar 24, 2010 11:05 am

Re: 6 pin works, 10 pin doesn't

Postby charliex » Wed Mar 24, 2010 11:18 am

All the grounds need to be connected.
http://032.la - Null Space Labs.
charliex
 
Posts: 179
Joined: Sat Nov 28, 2009 4:54 pm
Location: Las Vegas

Re: 6 pin works, 10 pin doesn't

Postby stkmtd » Wed Mar 24, 2010 12:07 pm

well, grounds connected or not, it doesn't want to work on anything but a breadboard.

I may just end up posting some pics to show how many times I've gone over the wiring :P
stkmtd
 
Posts: 13
Joined: Wed Mar 24, 2010 11:05 am

Re: 6 pin works, 10 pin doesn't

Postby stkmtd » Wed Mar 24, 2010 12:56 pm

Now I've hit an interesting twist. Pin 30 (AVCC) and 31 (GND) of my atmega324P have 55.5k-ohm of resistance between them. I have a spare atmega324P and this is not the case on it.

Now I could see how this might pose a problem for programming, but it's strange that it will work on the breadboard, and not my devboard (which only shows a short if the chip is plugged in, due to the anomoly with pin 30 and 31)

Anyone ever experienced this before?
stkmtd
 
Posts: 13
Joined: Wed Mar 24, 2010 11:05 am

Re: 6 pin works, 10 pin doesn't

Postby stkmtd » Wed Mar 24, 2010 1:17 pm

I tested my homemade dev board with the spare chip I had (without pin 30 and 31 somehow shorted internally), and my dev board works. I was right about the wiring, but I failed to consider that the chip itself might have been shorted (I thought to check when I tested the continuity on the chip socket itself, and realized that the BOARD didn't have any shorts).

But my question still remains. Why would the "bad" chip (pin 30 and 31 shorted) work with the programmer through a breadboard, but not a dev board wired up in an equivalent fashion? The only thing my breadboard has that the dev board doesn't is decoupling caps (but these are only needed for high speed operation, and not for programming).

I am perplexed and curious at the same time.
stkmtd
 
Posts: 13
Joined: Wed Mar 24, 2010 11:05 am

Re: 6 pin works, 10 pin doesn't

Postby adafruit » Thu Mar 25, 2010 11:32 am

you -always- need decoupling caps, speed has absolutely nothing to do with power supply caps
User avatar
adafruit
 
Posts: 10483
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: 6 pin works, 10 pin doesn't

Postby stkmtd » Fri Mar 26, 2010 9:53 am

adafruit wrote:you -always- need decoupling caps, speed has absolutely nothing to do with power supply caps


Might be handy to include a note on this page then:
http://www.ladyada.net/learn/avr/programming.html

I only found this surprising because I had programmed chips without decoupling caps in the past. I guess I was lucky. Very well, religiously assimilated into my mind: "ALWAYS DECOUPLE"

When I had decoupling explained to me, I was told you need the caps to smooth out the noise created by rapidly switching ICs, however when I think about it, the default speed of an AVR is 1MHz, which is still pretty blazing fast.
stkmtd
 
Posts: 13
Joined: Wed Mar 24, 2010 11:05 am


Return to USBtinyISP

Who is online

Users browsing this forum: No registered users and 1 guest

Stuff to buy from the Adafruit store and links to product documentation!


New Products [105]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]