AVR - USB

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

Have anybody experimented with avr and usb?

I was thinking of using one of the ic´s from philips called PDIUSBD11D and PDIUSBD12D, they connect to the usb port on one side, and on the other they have an IIC (or I2C) interface, but so far I´m unexperienced with IIC, at least at the avr/software. I´m also a bit unsure about the PC software, do I use HID device? Is this hard to do?

I just want to send some bytes now and then from/to my circuit. Now I am using COM port, but one of the great stuff about USB is that it can supply 5v to the circuit.

I guess I could figure out the hardware stuff, but the software, both in the avr and the pc, will be more difficould.
Does anybody have assembler examples or anything that could get me on the way?

/Anders Runeson

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

As has been discussed about this on this site, a good option is to use FTDI's FT232AM USBRS-232 chip (www.ftdi.co.uk). They also provide a windows driver for the chip.

Dhananjay Gadre
http://www.iucaa.ernet.in/~dvg

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

Damn, that seems great! :-) I´m just sitting here and waiting for the price list from the reseller, if that turns out allright then I might even call this perfect!
Thank you very much!
Here am I thinking of how to use USB for weeks, and then I find a forum with a lot of ppl that share my interest, and then it doesn´t take more then one hour, and my problem may be solved :-)

Thanks again
/Anders Runeson, Sweden

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

I can also recommend the chips from FTDI.
I've played a bit with the '245 chip and it's really easy to use. It's also at a very interesting price level.

I've been using the PDIUSB12 chips before, and it's much more complicated to work with.

/Jesper
http://www.yampp.com

/Jesper
http://www.yampp.com
The quick black AVR jumped over the lazy PIC.
What boots up, must come down.

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

The problem seem to be that it is´nt in DIL package (is it called that?), so it´ll be harder to play with as a "newbie".
Hmm, are you from sweden Jesper? Where do you get the USB parts? How much do they cost?

/Anders Runeson, Sweden

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

Theres an article on FTDI's USB chips in July 2001 issue of Circuit Cellar (I havent read it yet).
dhananjay Gadre
http://www.iucaa.ernet.in/~dvg

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

The nice thing is they have both Linux and Windows drivers available. The downside is that it emulates a COM port, which is fine for low data rate and simple data structures, but not appropriate for isochronous type data. Which means if you want to emulate a serial terminal being attached, great, but don't plan on building your own MP3 player.

As nice as AVRs are, a really good chip for doing high speed USB 1.1 is the Cypress CY2131 part, plus a few of it's other family members. The SIE is very closely coupled to the processor core, which is an enhanced 8051.

The FTDI part has a wide range of uses, but it was originally intended as a way to graft USB on to an existing design by emulating a 8250/16450/16550 at the far end of the USB cable, and replacing the RS232 drivers on your design.

The '245 is a logical extension of that, where it presents a byte-wide interface instead of a UART.

You'll notice that the '245 and the '232 are priced the same (at least, here in the States they are). You might think the '245 should be cheaper, since it doesn't have the UART interface overhead. The reason that this isn't so, so I am told, is because it's the same ASIC for both parts, just different code.

--John

admin's test signature
 

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

The FTDI UART part would work fine for my projects. If the price is ok (still don´t know how much they cost) then I could have a lot of use for it, but one problem is the package, maybe I´ll find some converter... And the driver compability with diffrent os is great.
/Anders Runeson, Sweden

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

Search for USB in the forum. I posted the US price list a while back. You could do a conversion to whatever you folks use for money (kroners? Something like that?) and get hopefully approximate price.

--John

admin's test signature
 

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

Yes, kroner :-)
I´ve found a reseller in Sweden but they don´t put prices on their page so I had to mail to get a pricelist. When I got the list, they didn´t have any price on these circuits as they didn´t have any in stock... well, that just seems to matter of time, and there is no hurry!
I might mail Jesper and ask, as he is from Sweden. I just took a look at his yampp page, that guy is miles ahead of me when it comes to mcu and other electronics...
/Anders

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

If you request guys at FTDI in UK (glasgow if I remember correctly), they can also suppy you some samples.

Dhananjay Gadre

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

Jesper,

I checked out this www.yampp.com page, and it is REALLY great! Congratulations!

Nisse

admin's test signature
 

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

Hi Anders,

You can get the PDIUSB at Elfa ( www.elfa.se ) and the FTDI chips at Lawicel ( www.lawicel.com )

/Jesper
http:/www.yampp.com

/Jesper
http://www.yampp.com
The quick black AVR jumped over the lazy PIC.
What boots up, must come down.

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

Thanks Nisse !

Anders !
Here's the price on the 232 and 245 chips from Lawicel.
(Hope Lars agrees, otherwise it's too late ;-)

(Sorry folks, this is in Swedish, but you wouldn't buy your chips here anyway, I think).

>
>Hej Jesper,
>
>Följande priser är satta (beror lite på US Dollarns svängningar):
>
>Antal Pris (SEK)
>------------------
> 1 - 9 : 65,00
> 10 - 49 : 55,80
> 50 - 99 : 51,30
> 100 - 249 : 46,90
> 250 - 999 : 40,90
>1000 + : 37,60
>
>Har starterkit med dessa:
>
>FTDI's eget med RS232 ör lite dyrt men bra: 980,00 SEK
>sedan har jag ett för 245 kretsen som visas på FTDI's
>hemsida som kostar 580,00 SEK.
>
>Kommer under sommarn/tidig höst att ta fram egna kort.
>
>Observera att jag har min order på 250:-

/Jesper
http://www.yampp.com

/Jesper
http://www.yampp.com
The quick black AVR jumped over the lazy PIC.
What boots up, must come down.

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

Thanks Jesper, the prices seems resonable!
Have you used the FTDI chip yet? I´ll probably order some to play with. Can you recomend an adapter (hopefully from Elfa) so that I can use it on a wiring-board (kopplingsdäck?), seems to be 8x8 pins on the chip.

/Anders Runeson, Sweden
(Man, this forum rocks!!)

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

Yes, I'm using the FT8U245AM chip for a couple of projects.
It's pretty easy to work with.

I thought you should be able to use the ICB-012 adapter board, ELFA # 48-393-87, but it's 1 mm too small, meaning the pads is not long enough for the QFP-32 chip.
Too bad.

/Jesper
http://www.yampp.com

/Jesper
http://www.yampp.com
The quick black AVR jumped over the lazy PIC.
What boots up, must come down.

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

Ok, thanks anyway :-)
It was a bit expensive too, 85kr... shouldn´t bee to hard to make one myself...?
Hmm.
Thanks again
/Anders

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

I just took a look in "USB specifications, revision 1.1" too see if there were any information for me...
I quickly read the 327 pages and did find one interesting thing, take a look at my attachment :-)

/Anders

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

Well, what did you expect ?

There's a comittee behind the USB spec, you know.

That's probably why the specs are :
1. Unreadable.
2. Erroneous.
3. Still unfinished after 5 years.
4. Burdoned with unnecessary detail.

/Jesper
http://www.yampp.com

/Jesper
http://www.yampp.com
The quick black AVR jumped over the lazy PIC.
What boots up, must come down.

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

Anders Runeson,

IF you take a look at FTDIchip.co.uk, have a look in the EVALUATION boards section.

Take a look at the DLP-USB1, DIL pin spaceing, USB chip, socket, xtal, eeprom and all the support circuits, you get a ncie easy to use interface and its not a bad price..

Paul

admin's test signature
 

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

Due to the pin spacing, making one yourself can be difficult. However, Sparkfun Electronics makes some very good FT232RL breakout boards to accomplish the task.

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

You just replied to a thread from July 2001. 11 years could be a new record here for thread necromancy. (Lee held the record but if you leave it long enough and can find an old enough thread there's always the chance to beat the record I guess!)

It's a pretty fair bet that the original posters in the thread have found themselves a solution in those 11 years.

Moderator.