Phipps Electronics

Order within the next 

FREE SHIPPING OVER $199

50,000+ ORDERS

WORLDWIDE SHIPPING

SSL SECURED

← Back
You are here:
Print

CH341A Programmer USB to UART/IIC/SPI/I2C Module User’s Guide

 

1. Hardware Overview

Pin Label Function Protocol
TXD/RXD UART Serial communication
SCL/SDA I2C Clock/Data lines
CS/CLK/MOSI/MISO SPI Chip Select, Clock, Data In/Out
GND/VCC Power 3.3V or 5V depending on jumper

Voltage Note: Always verify jumper settings before connecting. CH341A can output 3.3V or 5V depending on configuration.


2. Driver Installation

Windows:

  1. Download the CH341A driver from WCH official site.
  2. Run CH341SER.EXE and install.
  3. Confirm device appears in Device Manager under “Ports (COM & LPT)” or “Universal Serial Bus controllers”.

Linux:

sudo modprobe ch341
dmesg | grep ch341

macOS:

Use HoRNDIS or check for CH341A support via USB serial drivers.


3. Supported Chips & Protocols

  • EEPROMs: 24Cxx (I2C), 25xxx (SPI)
  • Flash ICs: W25Qxx, AT25DFxxx
  • Microcontrollers: Some STM32, ATmega (via UART bootloader)
  • UART Devices: ESP8266, ESP32, STM32 (via serial)

4. Software Tools

Tool Name Purpose Notes
AsProgrammer EEPROM/Flash programming Supports 24/25 series
CH341A Programmer Basic GUI tool Limited chip support
Flashrom (Linux) CLI flashing tool Advanced users
PuTTY / TeraTerm UART terminal For serial debugging

5. Wiring Examples

SPI Flash (e.g., W25Q32):

CH341A     →     Flash Chip
CS         →     CS
CLK        →     CLK
MOSI       →     DI
MISO       →     DO
GND        →     GND
VCC        →     VCC (3.3V)

I2C EEPROM (e.g., 24C02):

CH341A     →     EEPROM
SCL        →     SCL
SDA        →     SDA
GND        →     GND
VCC        →     VCC (3.3V or 5V)

UART (e.g., ESP32):

CH341A     →     ESP32
TXD        →     RX
RXD        →     TX
GND        →     GND
VCC        →     VCC (3.3V)

6. Safety & Best Practices

  • Always verify voltage compatibility before connecting.
  • Use a logic level shifter if unsure about voltage.
  • Avoid hot-plugging ICs while powered.
  • For SPI flash, use SOIC8 clip carefully to avoid bent pins.

7. Troubleshooting

Issue Solution
Device not recognized Reinstall driver, try different USB port
Flash not detected Check wiring, chip orientation, voltage
Write fails Use external power, reduce SPI speed
UART garbage output Confirm baud rate and voltage levels

 

Was this article helpful?
Please Share Your Feedback
How Can We Improve This Article?
Table of Contents
Scroll to Top