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

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

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

936 Views
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.

Labels (1)
Tags (2)
0 Kudos
2 Replies

811 Views
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!

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

811 Views
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 Kudos