Auto detect DEVICE/HOST mode

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

Auto detect DEVICE/HOST mode

629 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by fariouche on Mon Nov 12 14:41:18 MST 2012
Hi,

I'm currently using the new usblib 0.98 with an lpc1769 (lpcxpresso)

I would like to use Device and Host. Currently I've setup the controller as a CDC device and it work great.
Now, I can switch to Host mode manually (as described in the sample), but looking at the doc, I've seen that the lib can switch automatically depending on the UID pin.
How can I use this feature? If I understood correctly, EVENT_USB_UIDChange should fire up in that case.
But I doubt it works as I do not see any reference to this function in the library except in a .h file!


Thank you!

Fariouche
Labels (1)
0 Kudos
2 Replies

620 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nxpUSBlib team on Mon Nov 26 10:15:04 MST 2012
Yes the UID is an input to an external OTG PHY that you would need to add to your design.

A much simpler and cheaper method would be to use a GPIO input.
0 Kudos

620 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by fariouche on Fri Nov 16 14:13:08 MST 2012
I got the answer: This is an OTG feature.
I have to found an other way I think :)
0 Kudos