Page 1 of 1

USB AVR (hid mouse) PORT init problem

Posted: Mon Oct 06, 2008 12:58 pm
by WarNick
Hello, I have a little problem (maybe very stupid, by I'm novice in USB stuff)

As I understand, to config the pins on port D (for D+ and D-) it's neccesary to define these lines

#define USB_CFG_DMINUS_BIT 0
#define USB_CFG_DPLUS_BIT 2

But if I define DMINUS_BIT with bit 4 or other (and connect pin to USB circuit) Windows can't find the device. It works ONLY with DMINUS_BIT = 0. But I want to free the USART pin.

Orig. schematic I use:
http://i138.photobucket.com/albums/q278 ... AVRUSB.jpg

Posted: Thu Oct 09, 2008 4:50 pm
by christian
Did you do a "make clean" after the change? Most of the makefiles don't have dependencies on usbconfig.h and don't recompile after a change.

Other than that: Are you sure the wiring is OK?

Posted: Thu Oct 23, 2008 1:00 pm
by WarNick
yep, I did "clean all". I solved the problem shifted D+ & D- to the port B bit0 and bit1 and connected D+ line to the Pd2/Int0 pin (Atmega8)

In this config it works )