USB Detach detection

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

USB Detach detection

553件の閲覧回数
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.

ラベル(1)
0 件の賞賛
返信
1 返信

408件の閲覧回数
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 件の賞賛
返信