3795 views|1 replies

1

Posts

0

Resources
The OP
 

STM32F0 usb connection detection [Copy link]

The company is going to make a device recently. The CPU uses stm32f072c8t6 and is charged via USB. Now there is a problem: how to detect when the USB port of the device is connected to a PC or a charger and then start charging, and how to detect when the USB port is unplugged to stop charging.
This post is from stm32/stm8

Latest reply

USB insertion detection mechanism: D+ and D- of the USB port are both grounded with a 15k resistor. When no device is connected, they are both at a low level. On the device side, a 1.5k pull-up resistor is connected to +3.3v on D+ (indicating a high-speed device or full-speed device) or D- (indicating a low-speed device). Once a device is connected, one of the D+ or D- of the USB port is pulled up to 3v, and the system recognizes that an external device is connected. The unplugging process is the opposite.  Details Published on 2018-5-3 15:47
 

1305

Posts

0

Resources
2
 
USB insertion detection mechanism: D+ and D- of the USB port are both grounded with a 15k resistor. When no device is connected, they are both at a low level. On the device side, a 1.5k pull-up resistor is connected to +3.3v on D+ (indicating a high-speed device or full-speed device) or D- (indicating a low-speed device). Once a device is connected, one of the D+ or D- of the USB port is pulled up to 3v, and the system recognizes that an external device is connected. The unplugging process is the opposite.
This post is from stm32/stm8
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list