Cypress Perform

Home > Support
support.cypress.com     Bookmark and Share
Support

Knowledge Base Article



To Detect When a Self-Powered USB Device is Plugged - KBA82850

Last Updated: 10/11/2012

Version: **
Question: How do I detect when a self-powered USB device is plugged in?

Answer: The best way to detect, when the USB cable of self-powered device is plugged in, is to monitor VBUS with one of the I/O port pins. VBUS can be either monitored in the main loop or another popular method is to setup an interrupt timer to a fixed interval, and in the interrupt ISR look at the port pin (VBUS). You can then take the appropriate action depending on the state of VBUS. For more details on implementing VBUS monitoring, refer to application note “Monitoring the EZ-USB FX2LP™ VBUS - AN15813”.


Related Categories: USB Hi-Speed Peripherals




Provide feedback on this item to help us improve:

How likely are you to recommend this article to a friend or colleague?

Not at all likely
0
1
2
3
4
5
6
7
8
9
10
Extremely likely

Was this item helpful?
Yes
No
Maybe


Additional comments:

Email:

Sunset Owner: LYAO; Secondary Owner: LYAO; Sunset Date: 04/10/13