WCH CH340B: The CH340 with Built-In EEPROM for Serial Numbers and USB IDs

Status
Active
Datasheet
WCH CH340B datasheet

Answer: The CH340B is the SOP-16 CH340 with a built-in clock and a built-in EEPROM. The EEPROM holds the VID (default 1A86h), PID (default 7523h), an 8-character serial number and a product string, so several boards on one PC can be told apart. Its pinout differs from CH340G on three pins: pin 7 is RST#, pin 8 is NC and pin 15 is TNOW. (WCH CH340DS1 V3D, pp.2–9.)

Key specifications

ParameterValueConditionSource
PackageSOP-16, 3.9 mm body, 1.27 mm pitch—§3, p.2
Pin 7 / 8 / 15RST# (active low, internal pull-up) / NC (leave open) / TNOW—Pin table, pp.3–4
EEPROM defaultsVID 1A86h, PID 7523h, MaxPower 31h, SN “12345678”Config area 00h–3Fh§5.2, p.6
Serial number8 ASCII characters (bytes 10h–17h)Disabled if first byte is not 21h–7Fh§5.2, p.6
Supply, 5 V mode4.0 / 5 / 5.3 V; 6 typ / 15 max mAV3 to 0.1 µF§6.2, p.8
Supply, 3.3 V mode3.1 / 3.3 / 3.6 V; 3 typ / 9 max mAV3 tied to VCC§6.3, p.9
USB suspend current0.09 typ / 0.2 max mA (5 V)—§6.2, p.8
TX baud-rate error< 1.8 %—§5.4, p.7
Internal clock error±1.2 % (−5 to 55 °C); ±1.8 % (−25 to 75 °C)Max§6.4, p.9
Ambient temperature−20 to 70 °COperating§6.1, p.8

Pins that differ from CH340G

PinCH340GCH340B
7XIRST#: external reset input, active low, built-in pull-up
8XONC: leave unconnected
15R232TNOW: high while transmitting

All other pins (GND, TXD, RXD, V3, UD+/UD−, CTS#, DSR#, RI#, DCD#, DTR#, RTS#, VCC) are in the same places.

EEPROM configuration area (§5.2)

BytesFieldDefaultNotes
00hSIG00hMust be 5Bh for the internal configuration to be used
01hMODE23hMust be 23h
02hCFGFEhBit 5 = 0 enables the serial-number string
03hWP00h57h makes the area read-only
04h–05hVID1A86h0000h or FFFFh = use the vendor defaults
06h–07hPID7523h—
0AhPWR31hMax power in 2 mA steps (31h = 49 × 2 = 98 mA)
10h–17hSN123456788 ASCII characters
1Ah–3FhPROD—Unicode product string, length byte ≤ 26h, second byte 03h

WCH writes these “through special computer tool software”; the datasheet does not name the tool.

Why choose CH340B

Pitfalls specific to CH340B

  1. Swapping CH340B for CH340G pin for pin. Pin 7 is RST#, so remove the crystal and caps from it. Pin 15 is now the TNOW output, so do not tie it to a fixed level as an R232 strap might.
  2. Setting WP to 57h before the data is final. The area becomes read-only.
  3. Forgetting SIG = 5Bh. Without it the chip ignores the configuration and uses its defaults.
  4. Assuming the default serial number is unique. Every unprogrammed part reports “12345678”.

Part numbers (information only)

CH340B (SOP-16). WCH lists no packing suffix.

FAQ

Sources (retrieved 2026-10-26)

Disclaimer

Values are copied from WCH CH340DS1 Version 3D, read on 26 Oct 2026. We have not programmed a CH340B EEPROM ourselves; follow WCH’s tool and instructions.

Reviewed by: Jasper · Updated: 2026-10-26

Parameters

Parameter Value Source Verified
Package SOP-16, 3.9 mm body, 1.27 mm pitch Source 2026-10-26
Pin 7 / 8 / 15 RST# (active low, internal pull-up) / NC (leave open) / TNOW Source 2026-10-26
EEPROM defaults VID 1A86h, PID 7523h, MaxPower 31h, SN "12345678" (Config area 00h–3Fh) Source 2026-10-26
Serial number 8 ASCII characters (bytes 10h–17h) (Disabled if first byte is not 21h–7Fh) Source 2026-10-26
Supply, 5 V mode 4.0 / 5 / 5.3 V; 6 typ / 15 max mA (V3 to 0.1 µF) Source 2026-10-26
Supply, 3.3 V mode 3.1 / 3.3 / 3.6 V; 3 typ / 9 max mA (V3 tied to VCC) Source 2026-10-26
USB suspend current 0.09 typ / 0.2 max mA (5 V) Source 2026-10-26
TX baud-rate error < 1.8 % Source 2026-10-26
Internal clock error ±1.2 % (−5 to 55 °C); ±1.8 % (−25 to 75 °C) (Max) Source 2026-10-26
Ambient temperature −20 to 70 °C (Operating) Source 2026-10-26

Related tools