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.
Zhuhua Wu - Electronic Engineering Student
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.
[corrected above - clearly fingers working on automatic!]
(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)
The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.
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?
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
Thanks Morten :)
© 2020 Microchip Technology Inc.