CH32V317 Deep Dive: USB 2.0 HS + Ethernet PHY on a Single RISC-V Chip
The most connected RISC-V MCU from WCH. 480Mbps USB, 100M Ethernet, 8 UARTs, dual CAN, dual ADC — all on a QingKe V4F core.
Overview
The CH32V317 is WCH's flagship connectivity MCU, built on the QingKe V4F RISC-V core running at 144MHz with hardware floating-point unit (FPU). It integrates an unprecedented combination of high-speed interfaces: USB 2.0 High-Speed PHY (480Mbps), 10/100M Ethernet PHY, 8 UART ports, and dual CAN 2.0B controllers — all on a single chip.
Key Specifications
| Core | QingKe RV32IMACF (V4F) with FPU |
| Max Frequency | 144 MHz (zero wait state) |
| Flash | 256 KB |
| SRAM | 64 KB |
| USB 2.0 HS | 480 Mbps with built-in PHY |
| USB 2.0 FS | OTG (Host/Device) |
| Ethernet | 10/100M MAC + built-in PHY |
| UART | 3x USART + 5x UART = 8 serial ports |
| CAN | 2x CAN 2.0B Active |
| ADC | 2 units, 16 channels, 12-bit |
| DAC | 2 channels, 12-bit |
| Package | QFN68, LQFP100 |
Architecture Highlights
The V4F core supports single-precision floating-point instructions and hardware division, with single-cycle multiplication. At 144MHz zero-wait-state operation, it delivers performance comparable to STM32F4 series while consuming significantly less power (45uA/MHz in run mode).
USB 2.0 High-Speed (480Mbps)
The standout feature of CH32V317 is its built-in USB 2.0 High-Speed PHY. Unlike most MCUs that require an external ULPI PHY for 480Mbps USB, the CH32V317 integrates everything on-chip. This enables:
- USB flash drives / mass storage devices
- USB-to-Ethernet adapters
- USB audio (UAC2.0) at high sample rates
- USB virtual serial ports at 12 Mbps+
- USB video class (UVC) for camera streaming
Ethernet 10/100M with Built-in PHY
The integrated Ethernet MAC + PHY means you can connect directly to a network with just a magnetics module and RJ45 — no external PHY chip needed. Combined with the 8 UART ports, this makes the CH32V317 ideal for:
- Multi-port serial-to-Ethernet gateways
- Industrial protocol converters (Modbus TCP/RTU)
- CAN-to-Ethernet bridges
- Networked device servers
Application: Industrial Gateway
A typical industrial gateway using CH32V317 can simultaneously:
- Connect to 8 serial devices via UART
- Bridge 2 CAN bus networks
- Provide Ethernet uplink to SCADA/PLC
- Log data to USB flash drive
- Monitor analog sensors via 12-bit ADC
All on a single $4 chip — this would require multiple external chips on ARM-based designs.
Development Tools
- IDE: MounRiver Studio (free, Eclipse-based)
- Debugger: WCH-LinkE
- SDK: Standard Peripheral Library + HAL
- Examples: USB Host/Device, Ethernet (lwIP), CAN, FreeRTOS