imx27 - USB Over Current

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

imx27 - USB Over Current

跳至解决方案
756 次查看
imx_user
Contributor I

Has anyone tested the USB over current function of iMX27?

I configure "USB_OC_B" to act as USB Host 1 over current detection pin, but when I trigger this pin, both Host 1 and Host 2 over current interrupts come in.

The USB Configuration Register settings is:

USB_CTRL(600h)=0x59494030.

When I simulated over current on "USB_OC_B" pin, the following debug messages comes in:

GetPortStatus host 2 = 0x80001831, USBSTS=0xC48C, SysIntr=23

GetPortStatus host 1 = 0xE0501831, USBSTS=0xC08C, SysIntr=24

Anyone can advise me? Thanks in advance.

0 项奖励
1 解答
598 次查看
art
NXP Employee
NXP Employee

The USB_OC_B signal operates as the common overcurrent signal for both USB Host and OTG (in Host mode) cores of i.MX27, so, the behaviour you observe is the normal one. If you want to dedicate this signal for a single core (e.g. USB Host core only), just disable the overcurrent interrupt for another one.


Have a great day,
Artur

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

在原帖中查看解决方案

0 项奖励
1 回复
599 次查看
art
NXP Employee
NXP Employee

The USB_OC_B signal operates as the common overcurrent signal for both USB Host and OTG (in Host mode) cores of i.MX27, so, the behaviour you observe is the normal one. If you want to dedicate this signal for a single core (e.g. USB Host core only), just disable the overcurrent interrupt for another one.


Have a great day,
Artur

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

0 项奖励