usb tutorial

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

Hi guys

Is there a USB tutorial/code example about talking to the USB of atmega16u2 or other device with USB function?

I don't seem to find it, or I am using the wrong keyword.

Thanks guys

Zhuhua Wu - Electronic Engineering Student

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

Google "LUFA AVR". It's the software stack you are going to need and it comes with loads of great examples. Usually you can just pick something close to what you want to implement as a starting ponit then just make a few small changes to add your own functionality.

What's more LUFA has now been integrated into AS6 so you can just download the LUFA extension from the Extension Gallery then you can start new projects based on LUFA just as you can start ASF based projects.

Last Edited: Mon. Jul 8, 2013 - 07:42 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

not

... he means now :P

[corrected above - clearly fingers working on automatic!]

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

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

Thanks a lot Clawson, it looks exactly what I am looking for.

I haven't have a good look at LUFA yet as it looks like I need to spend some time to have a basic understand of it.

So what I understand LUFA so far is, it's a collection of libraries design to work with most (if not all) of the USB AVR? and it's free?

Thanks.

Zhuhua Wu - Electronic Engineering Student

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

It's a library (or even a framework, depending on definition) for usb for the mega range of avrs. Recently a experimental backend for xmega was released, but this is still experimental.

I would have a read through the LUFA documentation, and thenpplay around with the examples provided in LUFA

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

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

Thanks Morten :)

Zhuhua Wu - Electronic Engineering Student