USB to UART (RS232/Serial) Converter, MCP2200
by sam_moshiri in Circuits > Electronics
5845 Views, 7 Favorites, 0 Comments
USB to UART (RS232/Serial) Converter, MCP2200
Nowadays USB port is used widely for data transactions between electronic devices and computers. In many scenarios, there is no need to communicate with the USB port directly, therefore electronic designers use USB to UART (RS232-Serial) converter chips, so the USB port is converted to a virtual COM port on the computer.
The initial thought of many designers is to use FTDI chips to do the USB to UART conversion. There is nothing wrong with FTDI chips, however, they are expensive. In this article/video, I introduced a cheap USB to UART converter module that uses the MCP2200 chip from Microchip. The converter supports both 3.3V and 5V serial logic levels and uses three LED indicators for power connection, data transmission, and data reception.
The module supports the serial CTS and RTS pins, also six GPIOs that can be used for direct controlling of connected devices. The serial data of the module has been examined and decoded using the UART decoding feature of the Siglent SDS2102X Plus oscilloscope. So let’s get started!
Supplies
Article: https://www.pcbway.com/blog/technology/Cheap_USB_t...
[1]: MCP2200 datasheet: https://www.mouser.se/datasheet/2/268/22228A-8193...
[2]: RT9166-33GX datasheet: https://www.richtek.com/assets/product_file/RT916...
[3]: MCP2200 schematic symbol, PCB footprint, and 3D model: https://componentsearchengine.com/part-view/MCP22...
[4]: RT9166-33GX schematic symbol, PCB footprint, and 3D model: https://componentsearchengine.com/part-view/RT916...
[5]: Electronic designing CAD software plugins: https://www.samacsys.com/library-loader-help
[6]: Altium Designer plugin: https://www.samacsys.com/altium-designer-library-...
[7]: Microchip MCP2200 configuration utility: https://ww1.microchip.com/downloads/en/DeviceDoc/...
[8]: Siglent SDS2102X Plus oscilloscope: https://www.siglenteu.com/digital-oscilloscopes/s...
YouTube Video
A. Circuit Analysis
Figure 1 shows the schematic diagram of the USB to UART converter module. The schematic has been divided into a few parts for better visual inspection.
Figure 1 Schematic Diagram of the USB to UART Converter Module
IC1 is the MCP2200 [1] USB to UART converter chip from Microchip. It supports full-speed USB up to 12Mb/s and it is available in a 20-lead SOIC package. So it is easy to solder this component for prototyping. It is also equipped with RTS and CTS pins and six GPIOs.
R1 is a pullup resistor for the reset pin and C1 and C2 are decoupling capacitors to reduce the supply noise. C3, C5, and Y1 build a clock generation unit. C6 reduces the VUSB rail noise. USB1 is an SMD USB-mini connector for the USB cable connection. C4 and FB1 reduce the +5V USB supply noises. Figure 2 shows a picture of an SMD USB-B mini connector.
Figure 2 an SMD USB-mini Connector
REG1 is the RT9166-33GX [2], that is a linear 3.3V regulator in a small SOT-89 package. According to the datasheet: “The RT9166/A series are CMOS low dropout regulators optimized for ultra-fast transient response. The devices are capable of supplying 300mA or 600mA of output current with a dropout voltage of 230mV or 580mV respectively. The RT9166/A series is optimized for CD/DVD-ROM, CD/RW, or wireless communication supply applications. The RT9166/A regulators are stable with output capacitors as low as 1μF.
The other features include ultra-low dropout voltage, high output accuracy, current limiting protection, and high ripple rejection ratio. The devices are available in fixed output voltages range of 1.2V to 4.5V with 0.1V per step. The RT9166/A regulators are available in 3-lead SOT-23 (RT9166 only), SOT-89, SOT-223, TO-92, and TO-252 packages”.
P3 is a 3-pin male-header that allows the user to switch between 3.3V and 5V logic levels, just by using a jumper. D1, D2, and D3 are three SMD LEDs that indicate the correct USB cable connection, data transmission, and reception. R2, R3, and R4 are used to limit the current of the LEDs.
B. PCB Layout
Figure 3 shows the PCB layout of the USB to UART converter module. It is a two layers PCB board and all component packages are SMD (except pin headers).
Figure 3 the PCB Layout of the USB to UART Converter Using MCP2200
Figure 4 is a separate view of the top and bottom layers, so the red layer is the top and the blue layer is the bottom.
Figure 4 a Separate View of the Top and Bottom Layers of the PCB
When I decided to design the schematic and PCB for this project, I realized that I don’t have the component libraries of IC1[3] and REG1[4] in my component libraries storage. So, as usual, I decided to go with the SamacSys IPC rated component libraries and installed the missing libraries (schematic symbol, PCB footprint, 3D model) using the free SamacSys tools and services.
There are two options to import the libraries into the Electronic designing CAD software: you can visit the componentsearchengine.com and download and import the libraries, or you can use the SamacSys CAD plugins and directly search/import the models into the design environment. Figure 5 shows all supported electronic designing CAD software [5], as it is clear all known software are supported. I use Altium Designer, so I searched and installed the missing libraries using the SamacSys Altium plugin (Figure 6) [6].
Figure 5 All Supported Electronic Designing CAD Software by the SamacSys Plugins
Figure 6 Selected Component Libraries in the SamacSys Altium Plugin
C. Assembly
Figure 7 shows a top view and figure 8 shows a bottom view from the assembled PCB board. The PCB boards have been fabricated by PCBWay. I got up to 10 boards with no price change. The quality of the copper, silkscreen, and solder mask was good, so I had no problem with soldering the components at all. The smallest package size of a component is 0805.
Figure 7 a Top View From the Assembled PCB Board
Figure 8 a Bottom View From the Assembled PCB Board
D. Test and Measurement
After you finished the soldering (or received the assembled board), you should connect the module to the computer and configure the MCP2200 chip, if it is necessary. Microchip provided a utility software to configure the chip [7], named “MCP2200 configuration utility”. Figure 9 shows a screenshot of the utility software. In my case, on the first try, LEDs were not blinking, so I had to enable the blinking in the configuration.
Figure 9 Microchip MCP2200 Configuration Utility
Figure 10 provides the wiring diagram of the module. With this guide, you should not have any problem with connections and wirings.
Figure 10 Wiring Diagram of the USB to UART Module
I connected the RX signal of the module (computer is the transmitter) to the Siglent SDS2102X Plus oscilloscope [8] to examine the signal and decode the data. At the same time, I played with the jumper to switch between 3.3V and 5V logic levels. Figure 11 shows the UART signal and the decoded data and figure 12 shows the same signal with the enabled result-list that can be used to examine the timing, errors .. etc. For more details please check the video.
Figure 11 Decoded RX-UART Data Using the Siglent SDS2102X Plus Oscilloscope
Figure 12 Decoded RX-UART Data Using the Siglent SDS2102X Plus Oscilloscope (enabled Result-list)
E. Bill of Materials
Figure 13 shows the bill of materials for this project.