How to make a avr programmer for atmega 8,16 and 32

Go To Last Post
32 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi , i want to make a avr programmer which can program atmega8,16,32 and other atmega ucs. i dont know how to make it. i bought one previously but now i want to make my own. pls give me useful links. i went to fishdel type sites but couldn't understand , how to download firmware, circuit is critical for me now. pls help

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

but couldn't understand , how to download firmware

Well there's the rub - you need to already own an ISP programmer to put in the code to turn another chip into an ISP programmer. This is always going to be true unless you can find a chip into which someone has already put some code for you (such as the bootloader you find in an Arduino).

BTW when you can buy this (based on the Fischl design) for <$4 including shipping:

http://www.ebay.com/itm/New-USBA...

is there really any point in trying to build one?

Even if you go with Fischl all you are doing is assembling someone else's design and putting someone else's code into it. You don't learn much doing that - is your intention to really learn how the ISP protocol works (both PC to programmer and programmer to AVR)? If so you'd be better off designing the whole thing from scratch and implementing the ISP protocol yourself (it's basically just SPI using the right 4 byte command sequences).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Go to fischl.de/usbasp and actually read what you find there.

It contains: schematic, sourcecode, firmware HEX files, USB drivers.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

USBtinyISP from Adafruit? http://www.ladyada.net/make/usbt...

Quote:

is there really any point in trying to build one?

Agreed. I don't build my own hammers, either, although it might be an essential tool for the project I'm working on.

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,
I use fishdel USB asp, and I can replicate as many as I want using the one I have, but question is how to get firmware on the first one.

If you have parallel port on your PC or if you have usb to Parallel convertor you can try the following Parallel port programmer. using this you can make you first USBISP programmer, Also you can always use this as a ISP programmer.

http://www.ikalogic.com/in-system-programming-isp-for-atmel-chips/

Thanks,
K

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
Quote:

but couldn't understand , how to download firmware

Well there's the rub - you need to already own an ISP programmer to put in the code to turn another chip into an ISP programmer. This is always going to be true unless you can find a chip into which someone has already put some code for you (such as the bootloader you find in an Arduino).

BTW when you can buy this (based on the Fischl design) for <$4 including shipping:

http://www.ebay.com/itm/New-USBA...

is there really any point in trying to build one?

Even if you go with Fischl all you are doing is assembling someone else's design and putting someone else's code into it. You don't learn much doing that - is your intention to really learn how the ISP protocol works (both PC to programmer and programmer to AVR)? If so you'd be better off designing the whole thing from scratch and implementing the ISP protocol yourself (it's basically just SPI using the right 4 byte command sequences).

i have gone through the link. it ships in USA free of cost but it takes 20 to 30 dollars for shipping outside usa. i don't live in usa and i don't want to spend that much money in programmer. so i need to make one by myself . i don't want to understand how isp works or what actually goes on inside it. i need it to burn my program only to my chip, that's it,nothing more

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

actually i need to mention that i want to make usb programmer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Where do you live?

If you lived in Wormshill, I will walk to your house and deliver personally.

Otherwise you can post packets in the mail. It costs me $3 to post anywhere in the world. I don't know where you get $30 from.

The Chinese must get a better deal on postage charges. Some things on Ebay are cheaper than the cost of the postage stamps.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

i have gone through the link. it ships in USA free of cost but it takes 20 to 30 dollars for shipping outside usa.

Not the way I read it. What part of "free shipping" is confusing you? Now, if you want "Expedited Shipping"...

Free shipping  Uganda Economy Int'l Shipping ...
US $30.00      Uganda Expedited Int'l Shipping ...

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

I don't know where you get $30 from.

David,

I didn't believe it but look at the "Shipping rates" section on that page and it's "UK - free delivery (from China)" while "other - $30". There's clearly a business to be made here for you and/or I ;-) ... we buy them in for $4, sell them out for a still very reasonable $10 to "anywhere in the world" and make $3 per unit.

(not seriously). I'd be happy to buy/reship to anyone who will cover the $7 it costs me.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

I didn't believe it but look at the "Shipping rates" section on that page and it's "UK - free delivery (from China)" while "other - $30".

Not when I arbitrarily picked Uganda. I used the link given earlier in the thread with price in USD. (It would be kind of easier if OP >>said<< what the country of destination is.)

I just went back and picked at least a half dozen countries and economy shipping was free to all I selected.

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I hope Thomas Fischl is getting some return on his USBasp kits. If you can get a kit from Germany for $4, it will certainly be less than that from mainland China. I don't know how.

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

we misunderstood the expedited shipping. i got that this means quick delivery and it costs $30. but normal shipping will take more time and shipment is free. my country is Bangladesh

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Bob,

I don't know how you get $4 for a fischl.de kit. As far as I can see, it is 16.50 EUR + 3.90EUR postage to the UK.

They don't even have USA on the drop down. Perhaps you are a bad credit risk.

I am sure Mr Fischl does not make a penny! OTOH, everyone knows that he is a jolly good chap. I would certainly buy him a beer (or two) when I meet him

Regarding the Ebay link. Afghanistan, Iraq, Zimbabwe are all FREE SHIPPING. Not all countries are on the list. Quite often you get 'Free to UK but not Channel Islands' or other wierdos.

Expedited or Super Delivery simply ensures that they sting you for Tax, Import Duties on top of that $30.

David.

Last Edited: Tue. Apr 3, 2012 - 03:56 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

but normal shipping will take more time

Probably not, if it ends up "Hong Kong Post". Remarkably fast delivery; often about 1/2 week.

Quote:

I don't know how you get $4. As far as I can see, it is 16.50 EUR + 3.90EUR postage to the UK.


??? Using the eBay link above?

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

my country is Bangladesh

Free shipping
	
Free
	
Bangladesh
	
Economy Int'l Shipping

You can put lipstick on a pig, but it is still a pig.

I've never met a pig I didn't like, as long as you have some salt and pepper.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

tnx tusch.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i have an pcb design of avr programmer. here i dont understand what is tx rx and slw sck. are they connectors? what will i connect with them?

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

magnified

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

TXD and RXD are not used by any existing firmware.

The SLOW jumper is no longer used. Modern firmware either uses the -B# switch in avrdude or automagically detects the correct SCK speed.

All the same, just copy the PCB design and do not populate those connections.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

mechaboy wrote:
i have an pcb design of avr programmer. here i dont understand what is tx rx and slw sck. are they connectors? what will i connect with them?

They are connectors that connect to pins of the microcontroller (uC).

As you can see in the pin-out of the atmega8a shown below, pin 2 os SLW_SCK is connected to pin 25 of the uC.
My guess is that if you connect SLW-SCK pin 2 to pin 1 (ground) then you have selected a slow programming clock.

For TX-RX, pin 1 is connected to uC pin 2 which is RxD and pin 2 is connected to uC pin 3 which is Txd. Tx-Rx pin 3 is ground.
These are UART signals that provide an optional serial connection to the target (the microcontroller that you want to program) that can be used for debugging and testing.

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

david.prentice wrote:
TXD and RXD are not used by any existing firmware.

The SLOW jumper is no longer used. Modern firmware either uses the -B# switch in avrdude or automagically detects the correct SCK speed.

All the same, just copy the PCB design and do not populate those connections.

David.

so u are telling me not to do anything with these two connectors?? i will just print the board and don't need to solder or use connector with them? i just need to burn main.hex file in atmega8?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes. Copy the hardware design. Download the current firmware into your mega8. (you need another ISP programmer to do this)

I still reckon it is easier / cheaper / faster to buy a ready-made USBasp from China in the first place.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

david can i use atmega 8L instead of atmega 8? are they same? means there fuse bits are same?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes. The fischl.de website has HEX files for different chips. Use the 'mega8' bog standard version for ATmega8, ATmega8L, ATmega8A.

Read the website. Everything is explained.

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

thnx

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i need to know a thing. in the following image of a programmer, what is that black portion??? how can i print it on a pcb?? how to etch it? with what it is connected? i use proteus ares for pcb and dont know what is that. maybe it has been done with eagle. pls help. will i print it first in trace paper and then screen print on pcb board and then etch it?

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Which bit do you think is copper ? Black or white ?

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Buy yourself a teensy USB board ($20 US) based on the ATmega32U4. Then download and build Dean's avrispmkII clone found in his LUFA package. The teensy comes with a bootstrap so you can program it with Dean's ISP clone firmware. Now you have a working ISP/TPI/PDI programmer!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

david.prentice wrote:
Which bit do you think is copper ? Black or white ?

David.

black wire is copper i know, but what is that deep black portion ? is it copper too??

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

kscharf wrote:
Buy yourself a teensy USB board ($20 US) based on the ATmega32U4. Then download and build Dean's avrispmkII clone found in his LUFA package. The teensy comes with a bootstrap so you can program it with Dean's ISP clone firmware. Now you have a working ISP/TPI/PDI programmer!
]

i cant afford that. 20*90=1800 is too much for me . i can rather make it with 350 of my country money.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

It's copper, it's called a "pour" (as in it's like someone poured copper over the board) and if you look closely it's connected to the circuit in a number of places (probably all the Ground connections but I haven't checked).

There's none on the right hand side of the board as it's probably not possible (or the designer didn't try hard enough) to put a ground connected pour there.

It leaves more copper on the board (and less down the drain, if you're making at home) and makes a groundplane that can make the circuit work "better" - see http://en.wikipedia.org/wiki/Cop...