GPIO mode setting for USB in LPC4357

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

GPIO mode setting for USB in LPC4357

672 Views
ssudhir
Contributor II

Hi,

We are using LPC4357 processor. Pin 116 (or P2_1) is used as USB enable for USB1. We are using UBS 1 as mass storage host. Since P2_1 is also GPIO 5 bit 1 we are configuring through the control register SFSP2_1 (0x40086104). The document talks about different modes (Function 0, Function 1 etc.)  The sample code we found ( from NXPUSBLib) mentions that we need to configure that pin as Function 4 for USB. However, I am not finding any document that explains what is function 4 (or any other function for that matter). Is there any document that explains different GPIO functions? Is there document that explains different register setting for USB 1 (everything in one place)?

Thanks

0 Kudos
3 Replies

527 Views
ssudhir
Contributor II

Thanks for your response.

lpc4300_user_manual.pdf

Regards

0 Kudos

527 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello ,

Please use the LPC43xx User Manual, I attached it for you.

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

527 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello ,

Could you please tell me which document you  refer to.

About the pins function, Check the User manual of LPC4357 processor, Table 189 Pin multiplexing:

pastedImage_14.png


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos