I'm wondering on how to use LUFA with arduino uno or with atmega128 ?
Anyone knows ?
LUFA requires that the uC has a USB interface on chip.
It is commonly used with chips such as ATmega32U2 and ATmega32U4.
Why would you want to use a usb stack with a mega128 or 328 that does not support usb?
The UNO has a 16U2. The firmware it ships with turns it into a USB<=>TTL converter. It is LUFA-based.
"Experience is what enables you to recognise a mistake the second time you make it."
"Good judgement comes from experience. Experience comes from bad judgement."
"Wisdom is always wont to arrive late, and to be a little approximate on first possession."
"When you hear hoofbeats, think horses, not unicorns."
"Fast. Cheap. Good. Pick two."
"We see a lot of arses on handlebars around here." - [J Ekdahl]
The UNO has a 16U2.
I agree : it is used as a FTDI emulator and soldered; if OPs tries to plya with it, and is unlucky , the 328 is likely to become autist ....
I would have thought that as long as one has an ISP programmer (and is careful) it should be possible to "play about" with either chip on the board.
Of course if I really wanted to "play" with AVR-USB chips I think I'd forget the Arduino all together and simply get an AT90USBKEY for about $30 which has the AT90USB1287 at its heart that is the real "top of the shop" and offers every last facility of any of the AVR-USB range. You can even play with OTG/Host as well as Device with that chip. It's the one that Dean developed a lot of LUFA on I believe.
© 2020 Microchip Technology Inc.