USB Detach detection

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

USB Detach detection

441 Views
salman83
Contributor II

Hi,

I am using MCF52259DEMOMCU for my project. I am currently working on the USB which is communicating with the PC side software perfectly fine. I just want to know any status bit or interrupt when the usb gets detached from the PC.

 

Also, i am using the usb in device mode only, not in host mode or OTG.

 

Any help will be highly appreciated.

Regards.

Labels (1)
0 Kudos
1 Reply

296 Views
yibbidy
Contributor V

Have you checked the Interrupt Status Register (OTG_STAT)?

Bit 0 may do what you want:

VBUS Valid
0 The VBUS voltage is below the A VBUS Valid threshold

1 The VBUS voltage is above the A VBUS Valid threshold

Shaun

0 Kudos