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