Questions about USB_CFG_MAX_BUS_POWER
Posted: Thu Oct 02, 2008 6:17 pm
Hi,
I'm currently working on a USB-self-powered device. Now I'm worried about the "USB_CFG_MAX_BUS_POWER" define in the usbconfig.h.
According to the USB Specs the maximum current should be 500mA. To demand this, I did the following:
Should be alright, as 500 divided by two = 250. Am I right?
But what if I exced the 500mA? Will the device be disconnected by the host?
thx phil
I'm currently working on a USB-self-powered device. Now I'm worried about the "USB_CFG_MAX_BUS_POWER" define in the usbconfig.h.
According to the USB Specs the maximum current should be 500mA. To demand this, I did the following:
#define USB_CFG_MAX_BUS_POWER 250
Set this variable to the maximum USB bus power consumption of your device.
* The value is in milliamperes. [It will be divided by two since USB
* communicates power requirements in units of 2 mA.]
Should be alright, as 500 divided by two = 250. Am I right?
But what if I exced the 500mA? Will the device be disconnected by the host?
thx phil