Page 1 of 1

v-usb on ATMega168PA

Posted: Thu Jun 24, 2010 9:10 pm
by zklapow
I am running an ATMega168PA at 3.3v with v-usb. I have 100ohm resistors in the d+ and d- lines. d- is ont PD4, and d+ on PD2(INT0). I have read the post about P series chips and have mad changes accordingly so that usbconfig.h has

Code: Select all

#define USB_INTR_VECTOR INT0_vect
AND usbdrvasm16.S has line 60 modified to be INT0 as well. However when i connect the device to the computer it does not connect. I have tried ALL of the examples and not one of them works. Upon further inspection i found the following output form dmesg(I'm running ubuntu 9.10 also if that helps):

Code: Select all

[ 2496.010020] usb 4-2: new low speed USB device using uhci_hcd and address 34
[ 2496.155038] usb 4-2: device descriptor read/all, error 16
[ 2496.280022] usb 4-2: new low speed USB device using uhci_hcd and address 35
[ 2496.425037] usb 4-2: device descriptor read/all, error 16
[ 2496.540037] usb 4-2: new low speed USB device using uhci_hcd and address 36
[ 2496.569036] usb 4-2: device descriptor read/all, error 16
[ 2496.690020] usb 4-2: new low speed USB device using uhci_hcd and address 37
[ 2496.719038] usb 4-2: device descriptor read/all, error 16
[ 2496.721038] hub 4-0:1.0: unable to enumerate USB device on port 2

I am at a loss as to what my be going on here any suggestions would be much appreciated.

Re: v-usb on ATMega168PA

Posted: Tue Jun 29, 2010 8:30 am
by DetlevT
What's your system clock? By default the driver is set to 12Mhz.

Re: v-usb on ATMega168PA

Posted: Tue Jun 29, 2010 8:07 pm
by zklapow
I have tried both a 16 and 12 mhz clock.

Re: v-usb on ATMega168PA

Posted: Thu Sep 02, 2010 2:23 pm
by seba1978
Hi,
Have you fixed this issue? I'm having the same problem as you with the atmega168pa
Thank you
Seb