Jun 25, 2020
09:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 25, 2020
09:47 PM
The default mode is high impedance but this doesn't work well with a self powered device. If you pull the USB connector it can take a long time for the VBus line to drift low. It's a legal selection for the pin but don't want to cause any unwanted issues although I think an SIO is fairly hardy.
Solved! Go to Solution.
Labels
- Labels:
-
PSoC 5 Architecture
-
PSoC 5LP
1 Solution
Jun 29, 2020
04:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 29, 2020
04:47 AM
KeYp,
It should work with virtually all USB ports.
If you're willing to use a PSoC5 comparator, you can detect when Vbus drops below xxx volts and launch a ISR to detect when the USB is disconnected and when Vbus rises above xxx volts you can launch an ISR to detect when the USB is connected.
This prevents the need to connect VBus to a ADC and for the ADC to scan/poll the VBus voltage.
Len
Len
"Engineering is an Art. The Art of Compromise."
"Engineering is an Art. The Art of Compromise."
5 Replies