XMEGA and USB

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

I am working on my first project with XMEGA (atxmega16a4u) which is a USB PC peripheral that implements a serial port and a HID mouse. I'd like to use the serial to control the gadget which will then emulate mouse clicks (to be sent back via the mouse endpoint).

 

I have experience with the non-USB ATMEGAs.

 

Please give me pointers on how to get started. I synced LUFA, but the samples there seem to not support the XMEGA architecture, only AVR8. Since I am new the USB, too, I am hesitant to proceed without a working sample.

 

Thanks.

This topic has a solution.
Last Edited: Fri. Nov 13, 2020 - 07:53 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Your best bet is probably Atmel Start!??

 

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

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

Thanks. I went there and entered my XMEGA MCU, but USB didn't show up as a peripheral. Then I went back and selected the USB checkbox in the very first page (where you select chips) and it filtered out all MEGA and XMEGA MCUs from the list.

 

Am I missing something or this tool doesn't support USB for the 8bit MCUs?

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ASF4

ASF3 in Atmel Studio

ASF-USB | ASF Source Code Documentation

 

"Dare to be naïve." - Buckminster Fuller

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

Thanks, this is useful. I'll study ASF. So far, I've programmed everything from scratch armed with only the manual and the compiler. (It takes long, but I understand everything)

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

"Dare to be naïve." - Buckminster Fuller