[LPC55S28]Dual role port for USB

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

[LPC55S28]Dual role port for USB

527 Views
bryan_hong
Senior Contributor I

dear nxp

When a circuit is added to distinguish between USB device and host modes from a hardware perspective.

 

on LPC55S28, Is it possible to switch between USB device and host modes at runtime?

Could you provide the example source for this?

 

Thanks,
Bryan

Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

479 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @bryan_hong 

Thanks for your question.

The LPC55S28 does not support USB dual-role (OTG) function. However, if you use USB0, there is a pin called USB0_IDVALUE. You can develop software to switch between host and device modes at runtime based on the status of this pin.

Alice_Yang_0-1762506413747.png

 

BR

Alice

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2199778%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%5BLPC55S28%5DDual%20role%20port%20for%20USB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2199778%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Edear%20nxp%3C%2FP%3E%3CP%3EWhen%20a%20circuit%20is%20added%20to%20distinguish%20between%20USB%20device%20and%20host%20modes%20from%20a%20hardware%20perspective.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Eon%20LPC55S28%2C%20Is%20it%20possible%20to%20switch%20between%20USB%20device%20and%20host%20modes%20at%20runtime%3F%3C%2FP%3E%3CP%3ECould%20you%20provide%20the%20example%20source%20for%20this%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks%2C%3CBR%20%2F%3EBryan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2199778%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EUSB%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2200735%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20%5BLPC55S28%5DDual%20role%20port%20for%20USB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2200735%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F107445%22%20target%3D%22_blank%22%3E%40bryan_hong%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20question.%3C%2FP%3E%0A%3CP%3EThe%20LPC55S28%20does%20not%20support%20USB%20dual-role%20(OTG)%20function.%20However%2C%20if%20you%20use%20USB0%2C%20there%20is%20a%20pin%20called%20%3CCODE%3EUSB0_IDVALUE%3C%2FCODE%3E.%20You%20can%20develop%20software%20to%20switch%20between%20host%20and%20device%20modes%20at%20runtime%20based%20on%20the%20status%20of%20this%20pin.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Alice_Yang_0-1762506413747.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Alice_Yang_0-1762506413747.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F364421i729753CA36624B1F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Alice_Yang_0-1762506413747.png%22%20alt%3D%22Alice_Yang_0-1762506413747.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EAlice%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E