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,403 次查看
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 回复数

1,278 次查看
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!

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

1,278 次查看
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 项奖励
回复