Opens in a new tab

CH340G

USB 2.0 to UART serial converter, 50bps-2Mbps, full MODEM signals, SOP-16

4020

Effective Inventory

Image for reference only

Manufacturer Part:

CH340G

Package:

SOP-16 (9.9 x 3.9 x 1.5mm)

Brand:

Quality Commitment

Shipping & Payment

Service & Packaging

Product Manual

Description

Product Overview

The CH340G from WCH (Nanjing Qinheng Microelectronics) is a USB-to-UART serial converter chip providing a virtual COM port over USB 2.0. It supports baud rates from 50bps to 2Mbps with full hardware flow control signals in a SOP-16 package.

Key Specifications

USB Interface USB 2.0 Full-Speed (12Mbps)
Baud Rate Range 50 bps to 2 Mbps
Supply Voltage 5V or 3.3V
Operating Current 12 mA (typical)
Flow Control RTS, CTS, DTR, DSR, DCD, RI
Crystal Required 12 MHz external crystal
Operating Temperature -20 to 70 C
Package SOP-16

Features

  • Hardware full-duplex UART with internal FIFO buffer
  • Supports all standard MODEM handshake signals
  • Software compatible with CH341 VCP driver
  • Supports Windows, macOS, Linux, and Android
  • Requires only crystal and 4 capacitors for minimum operation

Applications

  • Arduino clone USB-to-serial interfaces
  • ESP8266/ESP32 programming adapters
  • USB-to-RS232/RS485/RS422 converters
  • Embedded system debug UART interfaces
  • USB peripheral device development
Product Introduction: CH340G Product Introduction

The CH340G from WCH is a cost-effective USB-to-UART serial converter chip that creates a virtual COM port on the host computer via USB 2.0. It supports full-duplex asynchronous serial communication with baud rates from 50bps to 2Mbps, and provides standard MODEM handshake signals (RTS, CTS, DTR, DSR, DCD, RI). The device requires only an external 12MHz crystal and a few bypass capacitors for operation. It is widely used in Arduino clones, ESP8266/ESP32 programming boards, and USB-to-serial adapter cables.

Working Principle: CH340G Working Principle

The CH340G converts USB protocol to asynchronous UART serial communication. **USB Interface**: The USB 2.0 full-speed transceiver connects directly to the USB bus (UD+/UD- pins) with built-in pull-up resistors and signal termination. The USB endpoint handles enumeration and data transfer under the CH341 VCP (Virtual COM Port) driver. **UART Subsystem**: The internal FIFO buffer manages data flow between USB and UART domains. The UART supports configurable data formats (5-8 data bits, 1-2 stop bits, parity) and baud rates from 50bps to 2Mbps with transmitter error less than 0.3%. **MODEM Signals**: Hardware flow control pins (RTS/CTS, DTR/DSR, DCD, RI) are software-controlled and can be used for auto-reset circuits on Arduino boards. **Clock Subsystem**: A 12MHz external crystal connected between XI and XO pins provides the timing reference. Internal PLLs generate the required USB and UART clock frequencies. **Power**: In 5V mode, VCC=5V and V3 pin is decoupled with a 4.7-20nF capacitor. In 3.3V mode, V3 is tied to VCC at 3.3V.

Pin Description: CH340G Pin Definition and Functions
Pin Name Description
1 GND Ground
2 TXD UART transmit output
3 RXD UART receive input
4 V3 Internal 3.3V reference (decouple or tie to VCC)
5 UD+ USB D+ signal
6 UD- USB D- signal
7 XI Crystal oscillator input (12MHz)
8 XO Crystal oscillator output (12MHz)
9 CTS# Clear to Send (input)
10 DSR# Data Set Ready (input)
11 RI# Ring Indicator (input)
12 DCD# Data Carrier Detect (input)
13 DTR# Data Terminal Ready (output)
14 RTS# Request to Send (output)
15 R232 RS232 mode select (latched at POR)
16 VCC Power supply (5V or 3.3V)
Application Scenarios: In which products and applications is CH340G used
  • Arduino Clones: USB programming interface on low-cost Arduino UNO and Nano compatible boards
  • ESP32 Programming: USB-to-UART bridge for flashing firmware on ESP8266 and ESP32 modules
  • USB-RS232 Adapters: Converting USB to RS232 via external level shifters like MAX213
  • Debug Interfaces: UART console access for embedded Linux and RTOS systems
  • Industrial Adapters: USB-to-RS485 converters for Modbus and industrial protocol bridges
Alternative Models: What chips are recommended as replacements for CH340G
Model Manufacturer Key Difference
CH340C WCH Internal clock, no crystal needed, SOP-16
CP2102N-A02-GQFN24 Silicon Labs USB 2.0, QFN-24, more expensive
FT232RL FTDI USB 2.0, SSOP-28, premium cost
CH340N WCH SOP-8, minimal pins, internal clock
PL2303TA Prolific USB to UART, SSOP-28

Recommend Parts

TMP275AIDR

0.5C I2C temp sensor, 12-bit, 2.7-5.5V, alert output, 8-SOIC

Brand: TI

Package: 8-SOIC (4.90 x 3.91 x 1.50 mm)

IN STOCK: 3681pcs

Cargo cycle: 3-7 Days

The minimum order is 1

IL485E

NVE IL485E IsoLoop isolated RS-485 transceiver, 2.5kVrms isolation, 35Mbps, 16-SOIC WB

Brand: nve

Package: SOIC-16 WB

IN STOCK: 5280pcs

Cargo cycle: 3-7 Days

The minimum order is 1

IRFS4227TRLPBF

IRFS4227TRLPBF – 200V N-Channel HEXFET PDP Switch Power MOSFET, 26 mΩ RDS(on), D2PAK (TO-263)

Brand: infineon

Package: D2PAK (TO-263)

IN STOCK: 4334pcs

Cargo cycle: 3-7 Days

The minimum order is 1

CD4070BM96

Quad 2-input XOR gate, 3-18V CMOS, 65ns at 10V, SOIC-14

Brand: TI

Package: SOIC-14 (8.75 x 3.9 x 1.5mm)

IN STOCK: 4245pcs

Cargo cycle: 3-7 Days

The minimum order is 1

AB1526

Bluetooth 5.0 Dual Mode Audio SoC, TWS, AAC, Dual-mic ENC, Integrated Charger, BGA

Brand: airoha

Package: BGA

IN STOCK: 25000pcs

Cargo cycle: 3-7 Days

The minimum order is 1

LP2980IM5-5.0

50mA micropower ultra-low-dropout regulator, 5V, SOT-23-5

Brand: TI

Package: SOT-23-5 (2.9 x 1.6 x 1.1 mm)

IN STOCK: 2557pcs

Cargo cycle: 3-7 Days

The minimum order is 1