Software Low speed USB

XCore Project reviews, ideas, videos and proposals.
Post Reply
User avatar
lilltroll
XCore Expert
Posts: 956
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

Software Low speed USB

Post by lilltroll »

It would be great if someone ported this to XMOS, when we do not need high speed !?

http://www.obdev.at/products/vusb/index.html
V-USB is a software-only implementation of a low-speed USB device for Atmel’s AVR® microcontrollers, making it possible to build USB hardware with almost any AVR® microcontroller, not requiring any additional chip.
To be able to use USB with only a 12 MHz clock.

Image


Probably not the most confused programmer anymore on the XCORE forum.
User avatar
leon_heller
XCore Expert
Posts: 546
Joined: Thu Dec 10, 2009 10:41 pm
Location: St. Leonards-on-Sea, E. Sussex, UK.
Contact:

Post by leon_heller »

It's not all that useful on an AVR as it can't do anything else when the USB is running. Someone has even implemented full-speed host mode in software on a Parallax Propeller:
http://forums.parallax.com/forums/defau ... 5&m=440787
Something like that for XMOS chips would be nice, as well.
User avatar
skoe
Experienced Member
Posts: 94
Joined: Tue Apr 27, 2010 10:55 pm
Contact:

Post by skoe »

I had a look at a similar AVR project (*) a few days before. They used an Attiny 2313 for less than 2 Euro to implement an USB <=> SPI master. IIRC to clone a standard ISP. That's cheaper than an FT2232 and even available in DIP package for the breadboard fans and home brewer.

This solution has some limitations, of course. <half knowledge>e.g. it doesn't support bulk transfer and therefore cannot replace a real USB <=> UART bridge.</half knowledge>

@lillitroll: Funny that we had the same idea at the same time. I thought about it, but I think it's only possible if one reads the USB standard regarding the correct timing. The author of the Attiny stuff wrote that his implementation is still according to the standard, but pushes it to the limit.

However, it can't be too complex, since the AVR implemetation fits into 2 kByte of flash

(*) http://www.xs4all.nl/~dicks/avr/usbtiny/

Thomas

(Interesting voltage regulator in the schematic above, D1 + D2 :lol: )
User avatar
lilltroll
XCore Expert
Posts: 956
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

Post by lilltroll »

skoe wrote:@lillitroll: Funny that we had the same idea at the same time.
Well, it was not my idea, I stole it from some chat on the #XCore IRC. I wanted to test it on a larger public to see if it was for any use on a XMOS chip.
Probably not the most confused programmer anymore on the XCORE forum.
User avatar
paul
XCore Addict
Posts: 169
Joined: Fri Jan 08, 2010 12:13 am
Contact:

Post by paul »

Interesting project - With a USB Transceiver (basically a USB line buffer) you should be able to do full speed (12 Mbps). If I remember correctly you FS is like 10x faster than LS?

Saves a lot of hassle if you don't need HS for low bandwidth apps...
Paul

On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
JohnR
Experienced Member
Posts: 93
Joined: Fri Dec 11, 2009 1:39 pm

Post by JohnR »

Hi,

Silabs make a range of souped-up 8051-based USB chips that are very easy to use. I put a C8051F34 into a USB interface that to control a set of 4-20mA converters.

John.
User avatar
otitov
XCore Addict
Posts: 207
Joined: Thu Dec 10, 2009 11:00 pm
Location: Mexico
Contact:

Post by otitov »

Yes, it would be nice to have USB connection between PC and XMOS. I am thinking about some kind of external accelerators, random number generators, etc
Post Reply