Can USBasp be used as a USB to serial converter?

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

I am relatively new in this avr world. I use an USBasp programmer module to burn codes to the chips and use atmel studio 7.0 to code. 

Is there any way to use USBasp as an USB-serial converter?

Another query, how good is the Atmel Studio Terminal window? I used tera-term earlier.

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

No,  you can't use USBASP for Serial->USB.

 

I suggest that you buy a regular USB->UART dongle.   Then use the USBASP to burn a UART bootloader.   Remove USBASP.

Connect the UART dongle.  Then you have got Serial comms and Serial bootloading.   Just like an Arduino.

 

Oh,  and the Atmel Studio Terminal Window is complete pants.

 

David.

Last Edited: Fri. Apr 21, 2017 - 05:58 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Agree, stick with TeraTerm. 

 

(also agree with David, spend another $2 on a USB-TTL and you are done)

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

First:

I agree with David & Clawson. Why bother?

 

On the other hand:

If you like tinkering, why not?

Thomas Fischl has some reference to adding serial capabilities to usbASP but seems to have never gotten around to adding the firmware.

 

When searching for (example) code, Github is always a good statring point.

https://github.com/search?utf8=%...

https://github.com/akrasuski1/us...

 

Another tip:

Are you familiar with Meld?

It's an (open source) source code comparison tool which works pretty well for comparing different versions of source code

Paul van der Hoeven.
Bunch of old projects with AVR's:
http://www.hoevendesign.com

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

Thanks a lot everyone. I actually wanted to use only one module to upload the code and serial communication. Is there any suggestion?

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

USBAsp is built down to a cost (cheap micro, software implementation of USB) so it does not really lend itself to be modified for both jobs. It would be quite possible to make a device "like" a USBAsp that can do both ISP programming and act as a CDC-ACM interface but it would be much easier done using a true USB micro. In fact the LUFA library from Dean Camera has all the components to easily put together a solution that would both appear like an AVRISPmkII programmer and a CDC-ACM serial interface. One could probably do it in one of the small Atmel mega-USB chips like a 16U2 perhaps? But, to be honest life is just easier if you simply add a $2 USB-TTL from ebay to the $2 USBAsp you already got from ebay and just switch between them. They can both remain in place and connected at the same time (assuming your PC has two free USB ports) so the only "cost" here (apart from the obvious $2) is the fact that you now have 2 USB cables from PC->AVR instead of just one.

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

farhan.fuad wrote:
I actually wanted to use only one module to upload the code and serial communication. Is there any suggestion?

Pololu Robotics and Electronics

Pololu USB AVR Programmer v2

https://www.pololu.com/product/3170

though a USBasp is multi-protocol for AVR ISP.

 


https://www.pololu.com/distributors

 

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