E a s y M x
P R O
v 7 a
U s e r M a n u a l
P A G E 23
USB device
communication
Detecting connection
You can detect whether USB device
is plugged into the USB device
connector using
VBUS
power
detection line
(PA9)
. Before using
this feature, you must connect
PA9
pin to USB connector using
SW12.7
DIP
switch.
1
2
3
4
5
6
7
8
O
N
SW12
USB-VBUS
PA9
DATA BUS
R50
27
R53
27
LD76D
R58
4K7
U
SB
D
EV
IC
E
CO
N
N
EC
TO
R
R48
100
ON
D2
BAT43
SH
IE
LD
0
GND
B1A12
VBUS
B4A9
CC2
B5
DP2
B6
DN2
B7
SBU2
B8
SBU1
A8
DN1
A7
DP1
A6
GND
A1B12
VBUS
A4B9
CC1
A5
CN26 USB TYPE-C
R92
5.1k
R93
5.1k
VBUS5
USB-D_N
USB-D_P
D_N
D_P
USB-VBUS
EasyMx PRO v7a for also contains USB DEVICE connector
(CN26)
which enables
microcontrollers that support USB communication to establish a connection with
the target host (eg. PC, Laptop, etc). It lets you build a slave USB device (HID,
Composite, Generic, etc.). Connector supports USB Standard Type C plug. Detection
whether USB device is connected to HOST can be done through
VBUS
line. This line
is traced to microcontroller
PA9
pin. Connection of USB DEVICE
VCC line
and
PA9
pin is established when
SW12.7
DIP switch is in ON position. When connected
to HOST, dedicated amber-colored power LED will light up as well. This VCC line
cannot be used for powering the board. It's only used for detecting connection.