Author Topic: difference between programmers?  (Read 5336 times)

0 Members and 1 Guest are viewing this topic.

Offline AdminTopic starter

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
difference between programmers?
« on: February 19, 2007, 07:13:57 PM »
I currently own a $40 AVR programmer, and recently bought this cheap $12 one, but I cant quite figure out why the prices are so different. I havent tried out the cheap one yet . . .

for example:
http://www.sparkfun.com/commerce/categories.php?cPath=1_7

Can someone explain to me what additional features the more expensive ones have and why I should buy them?

Digikey also has a bunch more . . .

Offline JonHylands

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 562
  • Helpful? 3
  • Robot Builder/ Software Developer
    • Jon's Place
Re: difference between programmers?
« Reply #1 on: February 19, 2007, 07:34:28 PM »
The cheap ones basically big-bang either the parallel port of the PC, or the RTS and CTS lines of the serial port. The serial version from Sparkfun (I have one) cannot be used through a USB -> RS232 converter, for instance.

The AVRISPmkII that Digikey sells is probably the best one to have - it seems to cover all of them, and does a nice job of it as well. Plus, it has an ATmega128 onboard, and the onboard FLASH can be upgraded from AVR Studio. Instead of depending on fragile hardware interfaces on the PC, it does the bit-twiddling from an AVR onboard.

- Jon

Offline AdminTopic starter

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: difference between programmers?
« Reply #2 on: February 19, 2007, 07:44:03 PM »
Quote
The serial version from Sparkfun (I have one) cannot be used through a USB -> RS232 converter
serious?!?!?!? aaaaaahhhhhhhhhhhhhhhhhhh. crap. :'(
just bought it two days ago :-\

ill try it anyway cause i have no choice . . . i only got usb ports on my laptop, but i own a usb to rs232 adaptor so didnt think it would be a prob . . .

and what do you mean by 'big-bang'?

Offline dunk

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 1,086
  • Helpful? 21
    • dunk's robot
Re: difference between programmers?
« Reply #3 on: February 19, 2007, 09:03:35 PM »
heh. mine works fine with my USB dongle.
your milage may vary.

"bit banging" is the technique of using a single digital pin to create a serial signal by switching it on and off rather than have it done in hardware by a UART or similar hardware.
you can make microcontrollers do serial communications from any old I/O pin this way.
likewise you can make a PC parallel port do the same.

dunk.

Offline AdminTopic starter

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: difference between programmers?
« Reply #4 on: February 19, 2007, 09:38:55 PM »
hmmmm how is bit-banging not as good? its slower, maybe?

Offline dunk

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 1,086
  • Helpful? 21
    • dunk's robot
Re: difference between programmers?
« Reply #5 on: February 20, 2007, 04:35:39 AM »
it's more processor intensive.
you actually have to run a program to switch your pins on and off rather than just give the hardware the desired value to output and letting that hardware module handle the encoding.

depending on how it's programmed it can also be less accurate. imagine you are bit banging a serial RS232 value and the processor is called to handle an interupt half way through. you will get obvious timing problems.

dunk.

Offline JesseWelling

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 707
  • Helpful? 0
  • Only You Can Build A Robot!
Re: difference between programmers?
« Reply #6 on: February 20, 2007, 05:37:43 AM »
In this day and age I consider any thing bit banged to be sloppy hardware decisions.
On a low end Project some times it is an absolute must. But at my internship this summer,
they wanted me to code some bit banged i2c, so they could have redundancy on a satalite.
I came up with a timer based solution, but it looked ugly. I couldn't understand why ther weren't
just going to order the chip that had two i2c hardware modules on it....seemed like the hard ware
selection crew got lazy and said "We don't want to change we'll make the software guys handle it."
Not always the best choice though.....</rant> >:(

Offline JonHylands

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 562
  • Helpful? 3
  • Robot Builder/ Software Developer
    • Jon's Place
Re: difference between programmers?
« Reply #7 on: February 20, 2007, 06:21:47 AM »
ill try it anyway cause i have no choice . . . i only got usb ports on my laptop, but i own a usb to rs232 adaptor so didnt think it would be a prob . . .

I guess it must depend on which USB -> Serial dongle you have, or perhaps its a driver level issue. Mine doesn't work with my USB -> Serial dongle.

Why do you care? If you have the $40 programmer, what do you need the $12 one for?

- Jon
« Last Edit: February 20, 2007, 06:22:53 AM by JonHylands »

Offline AdminTopic starter

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: difference between programmers?
« Reply #8 on: February 20, 2007, 08:22:23 AM »
Quote
Why do you care? If you have the $40 programmer, what do you need the $12 one for?
the $12 one is for The $50 Robot . . .

Offline dunk

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 1,086
  • Helpful? 21
    • dunk's robot
Re: difference between programmers?
« Reply #9 on: February 20, 2007, 10:16:59 AM »
if you want cheap,
this is the solution i use out of choice as an in circuit programmer.
and most laptops still have a parallel port.
http://www.instructables.com/id/EXIM2VJJ51EUKIKWDF/
http://www.captain.at/electronics/atmel-programmer/

you only need the parallel port connector, a few resistors and a download of uisp.
http://www.nongnu.org/uisp/
definitely in budget.

dunk.

Offline silent069

  • Full Member
  • ***
  • Posts: 49
  • Helpful? 0
Re: difference between programmers?
« Reply #10 on: June 20, 2008, 06:49:02 PM »
i wont have to build the circuit to get this programmer to work will I? i have the programmer made and have some 1k ohm resistors on pins 1 and 2. i should just be able to plug the wires in accordingly to my atmega8 chip on the $50 robot and it would work through pony prog correct?  This question is to do with the previos post from dunk.
« Last Edit: June 20, 2008, 06:50:28 PM by silent069 »

Offline JesseWelling

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 707
  • Helpful? 0
  • Only You Can Build A Robot!
Re: difference between programmers?
« Reply #11 on: June 20, 2008, 08:31:30 PM »
heh. mine works fine with my USB dongle.

Is this the one you speak of?

I haven't had a need to use it yet, I bought it for when I start to use other micros that my robostix, which I program through my gumstix.

Have you used it under Linux, and if so what program did you use? I'd like to stick with UISP for build scripting commonality  ???

 


Get Your Ad Here