This content has been marked as final. Show 1 reply
- This can be done in two ways.
- Method1: A simple and easy way would be to monitor VBUS supply voltage. Place a Digital Input Pin on the TopDesign and connect it to the USB VBUS. Once you disconnect PSoC from PC there is no voltage on VBUS, the same can be used to ascertain device unplugged from host. Once VBUS power comes back, USB device can be re-enumerated again.
- Method 2: The USBFS component can be configured to bring out the SOF terminal which is the USB start of Frame signal. The same can be monitored and the inactivity on this terminal implies no host is connected.
Let us know if one of these work.