Datasheet

page 24
USB HOST
communication
USB is the acronym for Universal Serial Bus. This is a very popular industry standard that denes
cables, connectors and protocols used for communication and power supply between computers and other
devices. EasyMx PRO
v7 for STM32 contains USB HOST connector (CN24) for USB Standard Type A plug,
which enables microcontrollers that support USB communication to establish a connection with the target device
(eg. USB Keyboard, USB Mouse, etc). USB host also provides the necessary 5V power supply to the target via TPS2041B
IC. Detection whether USB
device is connected to HOST
connector can be done through
VBUS line. Connection of USB
HOST VBUS line and PA10 pin
is established when SW10.7 is
on.
Powering USB device
You can enable or disable power
supply to USB device connected
to HOST, through microcontroller
PA10 pin. In order to connect EN
TPS2041B IC pin to microcontroller,
you must push SW10.8 to ON
position.
EasyMx PRO
v7
USB HOS T
CONNECTOR
VCC-5V
R34
47K
R36
10K
VCC-3.3V
USB-PSW
1
2
3
4
VCC
GND
D-
D+
CN24
USB A
E9
10uF
USB-D_N
USB-D_P
1
2
3
OUT
GND
IN
5
4
OCEN
U5
TPS2041B
VCC-3.3V
LD71
R31
4K7
E10
10uF
Q2
BC846
R41
10K
LD72
R32
2K2
VCC-5V
D1
BAT43
R40
100
USB-VBUS
ONOC
1 2 3 4 5 6
7
8
O
N
SW12
PA9
PA10
DATA BUS
communication
Figure 10-2:
Powering
USB device
through
PSW line
Figure 10-1: USB host
connection schematic