USB device unplug identification?

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

USB device unplug identification?

1,190 次查看
vanajagujjala
Contributor III

Hello,

     I am using USB CDC class with MK20DX128VLH5, I am trying to identify the USB unplugging from the USB host device(PC),But i can't recognize it.Please any one help me how to identify USB unplugging from USB host device(PC) in the CDC class code.

Thanks,

vanaja.

0 项奖励
回复
2 回复数

1,066 次查看
mjbcswitzerland
Specialist V

Hi

When the cable is removed the device will detect a USB suspend state (>3ms idle line- (low speed D+ = 0, D- = 1 / high speed D+ = 1, D- = 0)).

See the SLEEP flag in the INT_STAT register.

Therefore the suspend interrupt can be used to detect this.

Regards

Mark

Kinetis: http://www.utasker.com/kinetis.html

For the complete "out-of-the-box" Kinetis experience and faster time to market

:smileyinfo: Out-of-the-box support for 46 Kinetis boards and 10 IDEs (460 combinations from a single code source with no porting required)

0 项奖励
回复

1,066 次查看
vanajagujjala
Contributor III

Hi Mark

Thanks for your reply,

I will check it and get back to you,if any.

Thanks,

vanaja.

On Fri, Oct 30, 2015 at 7:37 PM, mjbcswitzerland <

0 项奖励
回复