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.
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!
-----------------------------------------------------------------------------------------------------------------------
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.