Distinguish between disconnect and suspend events on i.MX28 in USB Device mode

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Distinguish between disconnect and suspend events on i.MX28 in USB Device mode

1,003件の閲覧回数
FredrikMoller
Contributor III

When the USB cable is removed from the i.MX28 EVK board, an interrupt is triggered. The HW_USBCTRL_USBSTS register in the USB controller block indicates that it is the SLI interrupt (DC Suspend). When a Suspend is received from host, the same interrupt is generated. How do I distinguish between these two kinds of events?

I'm not using Linux.

ラベル(1)
タグ(2)
0 件の賞賛
2 返答(返信)

878件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Frederik

in device mode 5V is provided by host on usb connector,

this can be detected using sect.2.2.2.1 5-V detection methods AN4199

application note http://cache.freescale.com/files/32bit/doc/app_note/AN4199.pdf

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

878件の閲覧回数
FredrikMoller
Contributor III

Thanks for the reply.

However, that won't work for me as I get 5V from wall, meaning that 5V will always be detected whether USB cable is connected or not.

0 件の賞賛