Hardware Description
2020 Microchip Technology Inc.
DS50002927A-page 39
3.2.9
Debug Serial UART Interface
The board is equipped with a USB-UART interface based around the IC MCP2200. The
MCP2200 is a USB 2.0 to UART protocol converter with GPIO from the Microchip
‘Interfacing and Connectivity’ product portfolio. For a detailed description of these
products and the
“MCP2200 Data Sheet”
(DS20002228), visit the Microchip website:
www.microchip.com
.
FIGURE 3-7:
DEBUG SERIAL UART INTERFACE
The interconnections of debug serial UART Rx and Tx (labeled as DEBUG_RX and
DEBUG_TX) signals from the dsPIC33CK256MP508 are shown in
. These
signals are provided primarily to interface with MCP2200. To establish serial communi-
cation between the host PC and the Motor Control Board, connect a USB cable
between the host PC and Micro-B connector J6, which connects to the MCP2200
USB-UART converter. This USB-UART connection setup can support a baud rate of up
to 1 Mbps.
There is an additional header, J3, which is provided on the board to allow interfacing of
any other USB-UART serial converters. As shown in
, the UART Tx and Rx
signals between the dsPIC33CK256MP508 are connected to J3 (Pins #2 and #3).
When interfacing an external USB to UART converter through connector J3, disable
the on-board MCP2200 by holding its RST pin low. This can be done by connecting Pin
Number 5 of the J3 connector to DGND or removing resistor R153 (4.7k) and
populating R159 (4.7k).
The Rx and Tx signals of the dsPIC33CK256MP508 are connected to the PKOB circuit
by populating jumper resistors, R49 and R50, with 0 Ohms. This will allow the PICkit
On-Board (PKOB) programming/debugging tool to also be used as a debug serial
interface through the virtual COM port feature of the tool.
Collaterals, such as the USB driver, information related to driver installation and how to
access ports for operating systems (Linux
®
, Mac
®
and Windows
®
) can be found on the
Microchip website (
http://www.microchip.com/MCP2200
). Under Windows OS, after
successful driver installation, the device will appear as the ‘COMx’ port object which
standard terminal programs can open to read and write data.
J3
dsPIC33CK256MP508
(U9)
MCP2200
(U13)
DEBUG_TX
5
2
3
DEBUG_RX
DEBUG_TX
DEBUG_RX
Rx
Tx
UART_USB_P
J6
MCP2200_RST
RST
D-
D+
+3.3V
DGND
UART_USB_N
PKOB
Circuit
R157
R158
0R
0R
R153
R159
R49 0R
R50 0R