USB COM Port with AVR GCC... How Do I Everything???

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

So I am needing to put a USB interface on my next prototype at my job. Knowing little about USB, I decided to read "USB in a Nutshell" and all of Atmel's RS232 - USB Bridging/Migration documentation. Then I searched for USB drivers on the internet that would work with my AVR Studios 4 GCC. I found a website with a product called VUSB. I downloaded a few examples and have been parsing through them trying to figure out whatever I can. My question is simple: Is there any website that tutorials writing AVR code for USB communications?

When I want to compute with PC, currently I hook up TTL to a level converter and pump it into the DB9 Jack and open up a terminal program... that easy.

Is there any website that helps me make USB this easy?

Finally, I come to you guys because you have helped me in the past. I work on contract at my job and they don't pay me to learn. I need a reasonable approach to this problem that hopefully doesn't involve 10 months of reading and a computer science degree. I understand how USB has data packets and protocols and all that, I just don't want to reinvent a firmware driver and a PC driver just to read hex off a COM port... Thanks!!!

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

Quote:
Is there any website that helps me make USB this easy?

Sure there is.

Warning: Grumpy Old Chuff. Reading this post may severely damage your mental health.

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

Thanks, that's why I come on here!

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

There's also this:

http://www.arduino.cc/

(I mention that simply because it's a series of boards that each have an AVR and one of those FTDI chips and is possibly the most famous way to have an AVR connected by USB to a PC)

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

Thanks Clawson, a driver of my prototype is that is has to be watch sized and have USB mini jack.... Arduino is out of the question. I had no idea an FTDI chip even existed... someone needs to make those Google Spiders smarter because that IC never came up in any of my USB searches.

Please keep this thread open, I'm sure that when I get my hands on that IC, I'll run into a million problems implementing it and I'll probably just post my issues in this thread. Y'all helped me out a lot on my last project btw, thanks for the tip on this one!

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

If you use one of the AVR processors that include built in USB hardware (at90USB series) check out this open source USB stack:
http://www.fourwalledcubicle.com...

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

Awesome, this is more along the lines of what I was looking for, I see they have a USB to Serial project in here... hmm let me take a look