PowerSwitch using ATMega168
Posted: Fri Jul 18, 2014 7:13 pm
I just finished the powerSwitch project using ATMega168.
It states in the usbconfig.h that any pin in the port can be used as D-
#define USB_CFG_DMINUS_BIT 3
/* This is the bit number in USB_CFG_IOPORT where the USB D- line is connected.
* This may be any bit in the port.
But when I use PD4 as D-, it doesn't work.
When I use PD3 as D- ( as in the USB UART Bridge CDC project by Osamu Tamura ), it works OK.
It states in the usbconfig.h that any pin in the port can be used as D-
#define USB_CFG_DMINUS_BIT 3
/* This is the bit number in USB_CFG_IOPORT where the USB D- line is connected.
* This may be any bit in the port.
But when I use PD4 as D-, it doesn't work.
When I use PD3 as D- ( as in the USB UART Bridge CDC project by Osamu Tamura ), it works OK.