Powerswitch: changing USB terminals from Port B to Port D
Posted: Mon Jul 02, 2007 6:18 pm
Hi,
in powerswitch I would like to use port D as connection port to the USB cable instead of port B.
When I change in usbconfig.h from
#define USB_CFG_IOPORTNAME B
...
to
#define USB_CFG_IOPORTNAME D
#define USB_CFG_DMINUS_BIT 0
#define USB_CFG_DPLUS_BIT 1
recompile and rewire the USB connections, then it doesn't work. The USB device appears on the bus as it wasn't there, i.e. the 1.5kOhms pullup resistor on D- seems to get pulled down by the port D0.
Have I missed to change something else?
Thanks for your help!
in powerswitch I would like to use port D as connection port to the USB cable instead of port B.
When I change in usbconfig.h from
#define USB_CFG_IOPORTNAME B
...
to
#define USB_CFG_IOPORTNAME D
#define USB_CFG_DMINUS_BIT 0
#define USB_CFG_DPLUS_BIT 1
recompile and rewire the USB connections, then it doesn't work. The USB device appears on the bus as it wasn't there, i.e. the 1.5kOhms pullup resistor on D- seems to get pulled down by the port D0.
Have I missed to change something else?
Thanks for your help!