Easy
PIC
for dsPIC30
®
v7
page 17
UART via USB
Modern PC computers, laptops and notebooks
are no longer equipped with RS-232 connectors
and UART controllers. They are nowadays replaced
with USB connectors and USB controllers. Still, certain
technology enables UART communication to be done over USB
connection. Controllers such as FT232RL from FTDI
®
convert UART
signals to the appropriate USB standard. In order to use USB-UART
module on EasyPIC
™
v7 for dsPIC30
®
, you must first install FTDI drivers on
your computer. Drivers can be found on the link below:
USB-UART communication is being done through a FT232RL
controller, USB connector (CN2), and microcontroller UART module.
To establish this connection, you must put J20 and J21 jumpers
in the USB-UART position, and connect RX and TX lines
of the microcontroller to the appropriate input
and output pins of the FT232RL. This
selection is done using DIP switches
SW8 and SW9.
1 2 3 4 5 6 7 8
O
N
SW8
RC14
RF2 RF4 RF7 RE
6
R
B5
J20
R
X-
FTD
I
RX
-23
2
R
X
1 2 3 4 5 6 7 8
O
N
SW9
RC13
RF3 RF5 RF8 RE
7
R
B4
J21
TX
-F
TD
I
TX-23
2
TX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
TXD
DTR#
RTS#
VCCIO
RXD
RI#
GND
NC
DSR#
DCD#
CTS#
CBUS4
CBUS2
CBUS3
CBUS0
CBUS1
OSCO
OSCI
TEST
AGND
NC
GND
GND
VCC
RESET#
3V3OUT
USBDM
USBDP
FT232RL
U1
FT232RL
VCC-BRD
VCC-5V
C5
100nF
RX-LED
TX-LED
R9
4K7
R8
2K2
VCC-BRD
VCC-BRD
R10
4K7
R11
10K
1
2
3
4
VCC
GND
D-
D+
CN2
USB B
C1
100nF
C2
100nF
E1
10uF
VCC-5V
VCC-5V
VCC-BRD
TX-FTDI
RX-FTDI
U
S
B
U
A
R
T
C
O
N
N
E
C
TO
R
TX
RX
DATA BUS
Figure 7-1:
USB-UART
connection
schematics
Enabling USB-UART
In order to enable USB-UART
communication, you must set J20
and J21 jumpers in the USB-UART
position, and enable desired RX
and TX lines via SW8 and SW9 DIP
switches. For example, if you want
to enable USB-UART connection
on UART1 module of the default
dsPIC30F4013 chip, you should
enable SW8.1 (RF2) and SW9.1
(RF3) lines.
communica
tion
http://www.ftdichip.com/Drivers/VCP.htm