Disabling USB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Disabling USB

528 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Muis on Sat Dec 08 05:50:15 MST 2012
I'm developing a datalogger that only needs USB functionality to read out the measurement. Is there a way to completely power off the USB block during measurements? My goal is to be able to save power (and use the USB ram for other purposes). I found the USB_Disable() function, which could be just what Im looking for, but I need some mechanism to detect when a cable is inserted to re-enable USB. How does one do this?
Labels (1)
0 Kudos
2 Replies

499 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Muis on Wed Dec 12 03:15:48 MST 2012
There is no host connected when the device starts. I guess the obvious way would be disabling the USB clock/peripheral block, but then I have no way to detect when a cable is inserted anymore?
0 Kudos

499 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by drs on Tue Dec 11 15:49:37 MST 2012
Try suspending the USB from the host.
0 Kudos