USB AVR (hid mouse) PORT init problem
Posted: Mon Oct 06, 2008 12:58 pm
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
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