Page 1 of 1

USB-Keyboard on Attiny2313 @16MHz

Posted: Mon Nov 16, 2009 6:18 pm
by Heinrich M.
Hi

Im new at USB, but am trying to get my Atmega2313 to work as a keyboard. When a push-button is pressed the controller starts to send every second 'Hi' to the computer.
When I connect the controller to the computer the computer doesnt identify my controller.

I zipped my main.c, usbconfig.h and the circuit. => [DELETED]

'dmesg' Output:

Code: Select all

[  223.289142] usb 3-1.3: new low speed USB device using ehci_hcd and address 3
[  223.377125] usb 3-1.3: device descriptor read/64, error -32
[  223.569096] usb 3-1.3: device descriptor read/64, error -32
[  223.761051] usb 3-1.3: new low speed USB device using ehci_hcd and address 4
[  223.849046] usb 3-1.3: device descriptor read/64, error -32
[  224.041146] usb 3-1.3: device descriptor read/64, error -32
[  224.232976] usb 3-1.3: new low speed USB device using ehci_hcd and address 5
[  224.640763] usb 3-1.3: device not accepting address 5, error -32
[  224.728899] usb 3-1.3: new low speed USB device using ehci_hcd and address 6
[  225.136668] usb 3-1.3: device not accepting address 6, error -32


I hope anyone can help.

Thanks, Heinrich

Re: USB-Keyboard on Attiny2313 @16MHz

Posted: Tue Nov 17, 2009 8:02 pm
by Heinrich M.
Problem solved

Thanks!

Re: USB-Keyboard on Attiny2313 @16MHz

Posted: Wed Nov 18, 2009 11:18 am
by Guest
Heinrich,

Can you tell us how you solved this problem?

Thank you

Re: USB-Keyboard on Attiny2313 @16MHz

Posted: Sat Jan 23, 2010 4:48 am
by rosin
Is the intent here to make an Atmega2313 function as a USB keyboard?