MD20DX128VFM5: USB ID Pin

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MD20DX128VFM5: USB ID Pin

跳至解决方案
835 次查看
huishao2
Contributor IV

Hi -

Anyone knows where the USB ID pin described below is mapped to which physical pin on MK20DX128VFM5? I don't see it to pin configuration table.

pastedImage_0.png

Thanks!

Hui

1 解答
609 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Hui Shao:

That register usually causes confusion, sorry about that.

In Kinetis MCUs the USBx_OTGSTAT register is not used and there is not a dedicated USB_ID pin, so you will not find it in the pinout table.

To handle the ID pin in the physical USB connectors, you can use any digital GPIO pin configured for interrupt.

In the Freescale Tower System (e.g. TWR-SER) you can see that an external OTG Driver IC (MAX3353) is used. With this chip you can monitor the ID signal in two ways:

1- Using the ID_OUT pin of external driver IC.

2- Reading the ID status via the I2C communication with the driver IC.

Some reference boards as TWR-K20D50M already have the USB_ID pin connected to a GPIO so that it can be monitored by the application.

For more details on this check the next thread:

K60 USB FS/LS OTG Controller: Few questions

I hope this helps with your doubt.


Regards!,
Jorge Gonzalez

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

在原帖中查看解决方案

1 回复
610 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Hui Shao:

That register usually causes confusion, sorry about that.

In Kinetis MCUs the USBx_OTGSTAT register is not used and there is not a dedicated USB_ID pin, so you will not find it in the pinout table.

To handle the ID pin in the physical USB connectors, you can use any digital GPIO pin configured for interrupt.

In the Freescale Tower System (e.g. TWR-SER) you can see that an external OTG Driver IC (MAX3353) is used. With this chip you can monitor the ID signal in two ways:

1- Using the ID_OUT pin of external driver IC.

2- Reading the ID status via the I2C communication with the driver IC.

Some reference boards as TWR-K20D50M already have the USB_ID pin connected to a GPIO so that it can be monitored by the application.

For more details on this check the next thread:

K60 USB FS/LS OTG Controller: Few questions

I hope this helps with your doubt.


Regards!,
Jorge Gonzalez

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