USB ISP USBASP Programmer

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

Hi All,

 

I saw a cheap Atmel programmer (  USB ISP USBASP Programmer ) for ~3USD ( https://www.ebay.com/itm/3-3V-5V-USB-ISP-USBASP-Programmer-Cable-for-Atmel-AVR-ATMega-51-ATTiny/281500056991 )

In the link above there are a list of AVR controllers that can be programmed. At the end of the list is written "etc".

 

1. Does this programmer compatible with all ATmega microcontroller series? (in other links that I saw there are only a list without "etc" in the end)

2. What is the different between Atmega1280 that is in the list and Atmega1284 that is not in the list? 

3. Can I use this programmer as debug tool also or only for programming?

 

Thanks in advance

 

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

1. Does this programmer compatible with all ATmega microcontroller series? (in other links that I saw there are only a list without "etc" in the end)

Yes.   It programs all the traditional AVRs like mega8, m328P, m1284, m2560, ..., tiny25, t85, ...

It does not program brain-dead tiny4, t5, t9, t10, t20, t40 or the new tiny204, t817, ... or the new mega4809

 

2. What is the different between Atmega1280 that is in the list and Atmega1284 that is not in the list

No difference.   They both use "ISP" via SPI interface.

 

3. Can I use this programmer as debug tool also or only for programming.

It will NOT debug.   Only program

If you want a debug tool,  buy a Microchip SNAP.   But you have to buy a USB cable and make your own ribbon cable to connect to the AVR .

 

David.

Last Edited: Wed. Nov 20, 2019 - 09:05 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you very much.

 

As I understood Microchip SNAP (or MPLAB Snap, as they call it) compatible with all AVR microcontrollers, the old one and the new one. Am I right?

 

As I saw, it is also not expensive. Do you know if Microchip charge for shipping? 

 

Thanks

 

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

Yes,  SNAP is cheap.

It should be compatible with all AVR chips but you need a minor hardware mod for Xmega PDI.   And a minor config in AS7.0

All the common AVRs are currently supported.   Unusual chips might need to wait for an upgrade.

 

Yes,  Microchip charge for shipping.   They often have "discount codes"

Always check your local Distributor.   They will be quicker and possibly cheaper.

 

David.

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

Thanks!

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

Thanks!

 

Another 3MHz AVR ISP by USB PIC though at twice the price with :

Pololu USB AVR Programmer v2.1

...

 

Features and specifications

...

  • Emulates an STK500 programmer through virtual COM port interface
  • Works with standard AVR programming software, including Atmel Studio, AVRDUDE, and the Arduino IDE

...

  • Can optionally power the target at 3.3 V or 5 V in low-power systems [maximum : 80mA and 33 microfarads]

...

  • Provides a 100 kHz clock output, which can be useful for reviving misconfigured AVRs
  • All I/O pins are protected with 470 Ω resistors

...

 


Pololu - 5.7. Programming faster

 

"Dare to be naïve." - Buckminster Fuller

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

Hi

 

Can someone help me, i am not able to write the fuse bits to ATMEGA32A. Not sure currently what fuse bits it consist of

Is there any way to debug this?

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

Yes

Must be able to read the mega32A's signature else diagnose AVR ISP (logic analyzer) and AVR VCC and GND (oscilloscope) [edit : and AVR clock]

Signature and fuse data are in the Microchip device package files for Atmel Studio; one way to access this is by your web browser :

Vagrearg - Atmel Pack - parser, visualizer, fuse calculator

 


Protocol decoders - sigrok (AVR ISP)

AtPack: Atmel Pack parser, visualizer and fuse calculator – Dangerous Prototypes

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Wed. Jan 15, 2020 - 07:03 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


VCC and Gnd are correct, actually its my custom board and it was working 2 years ago, So now when i tried to use i am unable to flash code.

i am recieving this msg when tried to set fuse.

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

try reducing the ISP frequency

AVRDUDE: 2.1 Option Descriptions

[bitclock]

-B bitclock

-B bitclock

 

Which Windows (winver)?

Reason : relatively low quality Windows 10 updates, occasional defects in updates of WinUSB

 

"Dare to be naïve." - Buckminster Fuller

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

Your commandline in #10 is not correct. 

Writing fuses needs -U

 

Never use -F

 

The reason is that -F might send garbage to the AVR e.g. set bad fuses. 

 

Yes,  -B might slow down the SPI speed.    Worth trying -B5 or even -B100

But if the fuses have been altered you might need to provide an external clock to XTAL1 pin.

 

David.

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

Thank You so much guys...it worked for me

@gchapman i am using windows 10

i used -B100 and it worked, might be the windows 10 update issues. 

@david.prentice since i was wandering regarding existing fuse's, i thought to force the above mentioned fuse.

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

SourabhP wrote:
i used -B100 and it worked, ...
Thanks to David as I don't remember the details to complete and precise.

SourabhP wrote:
... might be the windows 10 update issues.
My WAG (what once worked and now doesn't so what changes on Patch Tuesday🙄

More likely would be a worn out target cable (IDC without strain relief), weak USB Vbus current or there's EMI (cheap USB cable, missing ferrites)

So, Windows 10 configuration control and spares (cables, AVR ISP)

Each build of Windows 10 can be archived ... 20GB here ... 20GB there ... another reason for ESD (Electronic Software Delivery)

Recovery options in Windows 10

 

"Dare to be naïve." - Buckminster Fuller