User`s guide

page 25
USB device
communication
EasyMx PRO
v7 also contains USB
DEVICE connector (CN10) 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
B plug. Detection whether USB DEVICE
is connected to HOST can be done
through VBUS line. This line is traced
to microcontroller PB1 pin. Connection
of USB DEVICE VCC line and PB1 pin is
established when SW10.8 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.
Detecting connection
You can detect whether USB device
is plugged into the connector using
VBUS power detection line (PB1).
Before using this feature, you must
connect PB1 pin to USB connector
using SW10.8 switch.
EasyMx PRO
v7
1
3
5
7
9
11
13
15
17
19
21
23
25
2
4
6
8
10
12
14
16
18
20
22
24
26
MCU CARD SOCKET
USB-D_P
PB1
USB-D_N
1 2 3 4 5
6
7 8
O
N
SW10
PB1
DATA BUS
USB DEVICE
CONNECTOR
1
2
3
4
VCC
GND
D-
D+
CN10
USB B
R40 27
R43 27
LD9
R46
4K7
GND
GND
USB-D_N
USB-D_P
USB-VBUS
R1 100
ON
communication
Figure 11-2:
enabling
USB DEVICE
detection
via VBUS
line
Figure 11-1: USB device connection
schematics