Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

avr dasa help
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

avr dasa help

by dark on Fri Jul 23, 2010 2:45 pm

i just got a avr dasa programmer, that is used in the spokepov kit, but i want to use it to program an atiny2313. does anybody know how to do this or knows a very simple, cheap circuit design?
-many thanks
dark
 
Posts: 7
Joined: Fri Jul 23, 2010 2:42 pm

Re: avr dasa help

by adafruit on Fri Jul 23, 2010 6:46 pm

check out http://www.ladyada.net/learn/avr/ for a tutorial on how to make a target board. You'll need to power the target board with 3+ volts (say two or three AA's)

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: avr dasa help

by dark on Wed Nov 24, 2010 4:12 pm

adafruit wrote:check out http://www.ladyada.net/learn/avr/ for a tutorial on how to make a target board. You'll need to power the target board with 3+ volts (say two or three AA's)

could you draw this circuit (http://www.evilmadscientist.com/article ... rgetboards) accept instead of 6 pin it would use a 10 pin? and how can i tell what pin is which on the 10 pin conecter?
dark
 
Posts: 7
Joined: Fri Jul 23, 2010 2:42 pm

Re: avr dasa help

by stinkbutt on Wed Nov 24, 2010 4:18 pm

Here's the pinout:

Image

There is absolutely no reason you can't take a 6 pin and substitute a 10 pin, or vice versa. The 10 pin connector brings almost nothing to the table besides a couple of additional ground pins.

I found a useful tutorial a couple of months ago that got me started with direct-to-AVR programming on Protostack:

http://www.protostack.com/blog/2009/07/ ... er-supply/
http://www.protostack.com/blog/2009/07/ ... ontroller/
http://www.protostack.com/blog/2009/08/ ... -firmware/

The second part goes through hooking up a 10-pin socket, and while the pinouts for an ATMega2313 and an ATMega8 aren't quite the same, it shouldn't be too terribly difficult to dope out while in a breadboard. Especially when you have this reference as well:

Image

The pinouts for the ATMega8 and ATMega168 are, in fact, the same, so you can just use the above diagram to translate from ATMega8/168 to ATTiny2313.
Red M&M, Blue M&M: They all wind up the same color

stinkbutt
 
Posts: 593
Joined: Wed Feb 17, 2010 2:40 am

Re: avr dasa help

by dark on Wed Nov 24, 2010 4:28 pm

oh. just after i posted i realized how to do it but i dont know how to figure out what is what on the 10 pin header
dark
 
Posts: 7
Joined: Fri Jul 23, 2010 2:42 pm

Re: avr dasa help

by stinkbutt on Wed Nov 24, 2010 4:31 pm

Your other option is to just buy the 2313 Target Board from EMSL. Though, if you're MARRIED to a 10 pin connector it doesn't look they have that out of the box. You'd still need to do the mapping.
Red M&M, Blue M&M: They all wind up the same color

stinkbutt
 
Posts: 593
Joined: Wed Feb 17, 2010 2:40 am

Re: avr dasa help

by stinkbutt on Wed Nov 24, 2010 4:32 pm

dark wrote:oh. just after i posted i realized how to do it but i dont know how to figure out what is what on the 10 pin header


Image

As you can see, nothing more than 3 additional ground pins, and one pin that does nothing. I've seen other pinouts that suggest the (NC) pin is actually connected to ground, and that's the way I wire it up. I doubt it makes a difference, though.
Red M&M, Blue M&M: They all wind up the same color

stinkbutt
 
Posts: 593
Joined: Wed Feb 17, 2010 2:40 am

Re: avr dasa help

by dark on Wed Nov 24, 2010 4:35 pm

i have this- http://www.adafruit.com/index.php?main_ ... ucts_id=26 and i understand how to make the circuit. but on the cable that connects the avr to the mictrocontroller curcuit, i dont know how to tell where pin 1 is
dark
 
Posts: 7
Joined: Fri Jul 23, 2010 2:42 pm

Re: avr dasa help

by stinkbutt on Wed Nov 24, 2010 8:37 pm

Plug it in and then stick your multi up the connectors. The 5V and (multiple) ground pins will make themselves known.
Red M&M, Blue M&M: They all wind up the same color

stinkbutt
 
Posts: 593
Joined: Wed Feb 17, 2010 2:40 am

Re: avr dasa help

by dark on Thu Nov 25, 2010 2:25 am

i noticed on the side an arrow with a dot in it, so im asuming its pin 1. i couldnt find a 10 pin header so i stuck some d-sub connecters in it and soldered to them. if i make any mistakes on anything, im only 13. im still learnin
dark
 
Posts: 7
Joined: Fri Jul 23, 2010 2:42 pm

Please be positive and constructive with your questions and comments.