USB Detach detection

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

USB Detach detection

921 次查看
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 回复

776 次查看
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 项奖励
回复