Skip to main content

CH32V307

32-bit RISC-V Microcontroller

The CH32V307 is a 32-bit risc-v microcontroller from WCH. View the full CH32V307 datasheet below including pinout, electrical characteristics, absolute maximum ratings.

Manufacturer

WCH

Category

32-bit RISC-V Microcontroller

Package

TSSOP20

Overview

Part: CH32V303/305/307/317 Series — WCH (WCH-IC.com)

Type: 32-bit RISC-V Microcontroller

Description: Industrial-grade general-purpose microcontroller based on QingKe RISC-V4F core, operating at up to 144 MHz with single-precision FPU, up to 480 KB CodeFlash, up to 128 KB SRAM, and rich peripherals including USB2.0 HS PHY, Gigabit Ethernet MAC, and dual ADCs/DACs.

Operating Conditions:

  • Supply voltage: 3.3V
  • Operating temperature: -40 to 85 °C
  • CPU main frequency: Max 144 MHz

Absolute Maximum Ratings:

Key Specs:

  • Core: QingKe 32-bit RISC-V4F with FPU
  • System main frequency: 144 MHz (zero wait)
  • CodeFlash: Up to 480 KB (zero-wait application area + non-zero-wait data area)
  • SRAM: Up to 128 KB
  • ADC: 2 units, 12-bit, 16 external channels + 2 internal signals
  • DAC: 2 units, 12-bit
  • USB: USB2.0 full-speed host/device, USB2.0 high-speed host/device (built-in 480Mbps PHY)
  • Ethernet: Gigabit Ethernet MAC controller, 10M PHY transceiver (CH32V307), 10/100M PHY transceiver (CH32V317)
  • GPIO: Up to 80 I/O ports

Features:

  • Fast programmable interrupt controller + hardware interrupt stack
  • Single cycle multiplication, hardware division, hardware FPU
  • Built-in factory-trimmed 8MHz RC oscillator and 40 kHz RC oscillator
  • Multiple timers: 4 advanced, 4 general-purpose, 2 basic, 2 watchdog, 64-bit SysTick
  • 8 USART interfaces (including 5 UARTs)
  • 2 I2C interfaces (support SMBus/PMBus)
  • 3 SPI interfaces (SPI2, SPI3 for I2S2, I2S3)
  • 2 CAN interfaces (2.0B active)
  • SDIO host interface (MMC, SD/SDIO, CE-ATA)
  • Digital video port (DVP)
  • CRC unit, 96-bit unique ID
  • 2-wire serial debug interface (SDI)

Applications:

  • Industrial-grade general-purpose applications

Package:

  • LQFP
  • QFN
  • TSSOP

Pin Configuration

CH32V307 Pinout

Package: LQFP100 (CH32V307VCT6) / BGA100 (CH32V307WCU6)

LQFP100 (CH32V307VCT6)

Pin #Pin NameTypeDescription
1PE2I/OGPIO Port E, Pin 2
2PE3I/OGPIO Port E, Pin 3
3PE4I/OGPIO Port E, Pin 4
4PE5I/OGPIO Port E, Pin 5
5PE6I/OGPIO Port E, Pin 6
6VBATPBattery Power Supply
7PC13/TAMPER-RTCI/OGPIO Port C, Pin 13 / RTC Tamper
8PC14/OSC32INI/OGPIO Port C, Pin 14 / 32kHz Oscillator Input
9PC15/OSC32OUTI/OGPIO Port C, Pin 15 / 32kHz Oscillator Output
10VSSPGround
11VDD_3P3.3V Power Supply
12OSC_INIMain Oscillator Input
13OSC_OUTOMain Oscillator Output
14NRSTIReset (Active Low)
15PC0/ADC10I/OGPIO Port C, Pin 0 / ADC Channel 10
16PC0/ADC10I/OGPIO Port C, Pin 0 / ADC Channel 10
17PC1/ADC11I/OGPIO Port C, Pin 1 / ADC Channel 11
18PC2/ADC12I/OGPIO Port C, Pin 2 / ADC Channel 12
19PC3/ADC13I/OGPIO Port C, Pin 3 / ADC Channel 13
20VSSPGround
21VREF-PADC Reference Negative
22VREF+PADC Reference Positive
23VDDAPADC Power Supply
24PA0/WKUP/ADC0I/OGPIO Port A, Pin 0 / Wakeup / ADC Channel 0
25PA1/ADC1I/OGPIO Port A, Pin 1 / ADC Channel 1
26PA2/ADC2I/OGPIO Port A, Pin 2 / ADC Channel 2
27PA3I/OGPIO Port A, Pin 3
28PA4I/OGPIO Port A, Pin 4
29PA5I/OGPIO Port A, Pin 5
30PA6I/OGPIO Port A, Pin 6
31PA7I/OGPIO Port A, Pin 7
32PC4I/OGPIO Port C, Pin 4
33PC5/TXPI/OGPIO Port C, Pin 5 / Ethernet TX+
34PC6/RXPI/OGPIO Port C, Pin 6 / Ethernet RX+
35PD15I/OGPIO Port D, Pin 15
36PD14I/OGPIO Port D, Pin 14
37PD13I/OGPIO Port D, Pin 13
38PD12I/OGPIO Port D, Pin 12
39PD11I/OGPIO Port D, Pin 11
40PD10I/OGPIO Port D, Pin 10
41PD9I/OGPIO Port D, Pin 9
42PD8I/OGPIO Port D, Pin 8
43PB15I/OGPIO Port B, Pin 15
44PB14I/OGPIO Port B, Pin 14
45PB13I/OGPIO Port B, Pin 13
46PB12I/OGPIO Port B, Pin 12
47VSSPGround
48VDD_2P3.3V Power Supply
49PA13/SWDIOI/OGPIO Port A, Pin 13 / SWD Data I/O
50PA12/USBHDPI/OGPIO Port A, Pin 12 / USB High-Speed D+
51PA11/USBHDMI/OGPIO Port A, Pin 11 / USB High-Speed D-
52PA10I/OGPIO Port A, Pin 10
53PA9I/OGPIO Port A, Pin 9
54PA8I/OGPIO Port A, Pin 8
55PC8/TXPI/OGPIO Port C, Pin 8 / Ethernet TX+
56PC7/RXNI/OGPIO Port C, Pin 7 / Ethernet RX-
57PC6/RXPI/OGPIO Port C, Pin 6 / Ethernet RX+
58PB15I/OGPIO Port B, Pin 15
59PB14I/OGPIO Port B, Pin 14
60PB13I/OGPIO Port B, Pin 13
61PB12I/OGPIO Port B, Pin 12
62VSSPGround
63VDD_1P3.3V Power Supply
64PB11I/OGPIO Port B, Pin 11
65PB10I/OGPIO Port B, Pin 10
66PB9I/OGPIO Port B, Pin 9
67PB8I/OGPIO Port B, Pin 8
68PB7I/OGPIO Port B, Pin 7
69PB6I/OGPIO Port B, Pin 6
70PB5I/OGPIO Port B, Pin 5
71PB4I/OGPIO Port B, Pin 4
72PB3I/OGPIO Port B, Pin 3
73PA15I/OGPIO Port A, Pin 15
74PA14I/OGPIO Port A, Pin 14
75VSSPGround
76VDD_2P3.3V Power Supply
77PA13/SWDIOI/OGPIO Port A, Pin 13 / SWD Data I/O
78PA12/USBHDPI/OGPIO Port A, Pin 12 / USB High-Speed D+
79PA11/USBHDMI/OGPIO Port A, Pin 11 / USB High-Speed D-
80PA10I/OGPIO Port A, Pin 10
81PA9I/OGPIO Port A, Pin 9
82PA8I/OGPIO Port A, Pin 8
83PC8/TXPI/OGPIO Port C, Pin 8 / Ethernet TX+
84PC7/RXNI/OGPIO Port C, Pin 7 / Ethernet RX-
85PC6/RXPI/OGPIO Port C, Pin 6 / Ethernet RX+
86PB15I/OGPIO Port B, Pin 15
87PB14I/OGPIO Port B, Pin 14
88PB13I/OGPIO Port B, Pin 13
89PB12I/OGPIO Port B, Pin 12
90VSSPGround
91VDD_1P3.3V Power Supply
92PB11I/OGPIO Port B, Pin 11
93PB10I/OGPIO Port B, Pin 10
94PB9I/OGPIO Port B, Pin 9
95PB8I/OGPIO Port B, Pin 8
96PB7I/OGPIO Port B, Pin 7
97PB6I/OGPIO Port B, Pin 6
98PB5I/OGPIO Port B, Pin 5
99PB4I/OGPIO Port B, Pin 4
100PB3I/OGPIO Port B, Pin 3

BGA100 (CH32V307WCU6)

Pin #Pin NameTypeDescription
0VSSPGround
1VIBATI/OBattery Power Supply
2PC13/TAMPER-RTCI/OGPIO Port C, Pin 13 / RTC Tamper
3PC14/OSC32INI/OGPIO Port C, Pin 14 / 32kHz Oscillator Input
4PC15/OSC32OUTI/OGPIO Port C, Pin 15 / 32kHz Oscillator Output
5OSC_IN/PD0IMain Oscillator Input / GPIO Port D, Pin 0
6OSC_OUT/PD1OMain Oscillator Output / GPIO Port D, Pin 1
7NRSTIReset (Active Low)
8PC0/ADC10I/OGPIO Port C, Pin 0 / ADC Channel 10
9PC1/ADC11I/OGPIO Port C, Pin 1 / ADC Channel 11
10PC2/ADC12I/OGPIO Port C, Pin 2 / ADC Channel 12
11PC3/ADC13I/OGPIO Port C, Pin 3 / ADC Channel 13
12VSSPGround
13VDDAPADC Power Supply
14VDDA/WKUP/ADC0I/OGPIO Port A, Pin 0 / Wakeup / ADC Channel 0
15PA1/ADC1I/OGPIO Port A, Pin 1 / ADC Channel 1
16PA2/ADC2I/OGPIO Port A, Pin 2 / ADC Channel 2
17VIO_4PI/O Power Supply
18???
19???
20???
21???
22???
23???
24???
25???
26???
27???
28???
29???
30???
31???
32???
33???
34???
35PB12I/OGPIO Port B, Pin 12
36PB13I/OGPIO Port B, Pin 13
37PB14I/OGPIO Port B, Pin 14
38PB15I/OGPIO Port B, Pin 15
39PC6/RXPI/OGPIO Port C, Pin 6 / Ethernet RX+
40PC7/RXNI/OGPIO Port C, Pin 7 / Ethernet RX-
41PC8/TXPI/OGPIO Port C, Pin 8 / Ethernet TX+
42PA8I/OGPIO Port A, Pin 8
43PA9I/OGPIO Port A, Pin 9
44PA10I/OGPIO Port A, Pin 10
45PA11/USBHDMI/OGPIO Port A, Pin 11 / USB High-Speed D-
46PA12/USBHDPI/OGPIO Port A, Pin 12 / USB High-Speed D+
47PA13/SWDIOI/OGPIO Port A, Pin 13 / SWD Data I/O
48VDD_2P3.3V Power Supply
49VSS_2PGround
50VIO_2PI/O Power Supply
51VIO_2PI/O Power Supply
52???
53???
54???
55???
56???
57???
58???
59???
60???
61???
62???
63???
64???
65???
66???
67???
68???
69???
70???
71???
72???
73???
74VSS_2PGround
75VDD_2P3.3V Power Supply

Notes

  • The LQFP100 pinout (CH32V307VCT6) is extracted from the left diagram in the source image.
  • The BGA100 pinout (CH32V307WCU6) is extracted from the right diagram; many BGA positions (18–34, 52–73) could not be clearly read from the provided image and are marked as "?".
  • Power pins are color-coded in the diagram: red = VDD, black = VIO, blue = VDD & VBAT.
  • Pins with alternate functions (e.g., PA12/USBHDP) support multiple peripheral modes; the primary GPIO designation is listed first.
  • VBAT (Pin 6, LQFP) and VIBAT (Pin 1, BGA) are battery backup power supplies.
  • NRST is active-low; external pull-up and filtering capacitor recommended.

Electrical Characteristics

Table 4-41 ADC characteristics

SymbolParameterConditionMin.Typ.Max.Unit
V DDASupply voltage2.43.6V
V REF+Positive reference voltageV REF+ cannot be more thanV DDA2.4V DDAV
I VREFReference current160220μA
I DDASupply current480530μA
f ADCADC clock frequency14MHz
f SSampling rate0.051MHz
f TRIGExternal trigger frequency161/f ADC
V AINConversion voltage range0V REF+V
R AINExternal input impedance50
R ADCSampling switch resistance0.61
C ADCInternal sample and hold capacitor8pF

Table 4-41 ADC characteristics

V3.5 79

t CALCalibration time1/f ADC
t IatInjected trigger conversion latency21/f ADC
t IatrRegular trigger conversion latency21/f ADC
t sSampling time1.5239.51/f ADC
t STABPower-on time1us
t CONVTotal conversion time (including sampling time)142521/f ADC

Note: Above parameters are guaranteed by design.

Formula: Maximum RAIN

The above formula is used to determine the maximum external impedance so that the error can be less than 1/4 LSB. Where N=12 (representing 12-bit resolution).

Table 4-42 Maximum RAIN when fADC = 14MHz

  • T S (cycle) t S (us) Maximum R AIN (kΩ)
  • 1.5 0.11 0.4
  • 7.5 0.54 5.9
  • 13.5 0.96 11.4
  • 28.5 2.04 25.2
  • 41.5 2.96 37.2
  • 55.5 3.96 50
  • 71.5 5.11 Invalid
  • 239.5 17.1 Invalid

Table 4-43 ADC error

SymbolParameterConditionMin.Typ.Max.Unit
EOOffset errorf PCLK2 = 56MHz,±4LSB
EDDifferential nonlinearity errorf ADC = 14MHz,±0.5±3LSB
ELIntegral nonlinearity errorR AIN < 10kΩ,V DDA = 3.3V±1±4LSB

Cp represents the parasitic capacitance on the PCB and the pad (about 5pF), which may be related to the quality of the pad and PCB layout. A larger Cp value will reduce the conversion accuracy, the solution is to reduce the f ADC value.

V3.5 80

Figure 4-29 ADC typical connection diagram

Figure 4-30 Analog power supply and decoupling circuit reference

Absolute Maximum Ratings

Stresses at or above the absolute maximum ratings listed in the table below may cause permanent damage to the device.

Table 4-1 Absolute maximum ratings

SymbolDescriptionDescriptionMin.Max.Unit
T AAmbient temperature during operationAmbient temperature during operation-4085°C
T SAmbient temperature during storageAmbient temperature during storage-40125°C
V DD -V SSExternal main supply voltage (includingV DDA and V DD )External main supply voltage (includingV DDA and V DD )-0.34.0V
V I/O -V SSI/O supply voltageI/O supply voltage-0.34.0V
V DD_ETH -V SSInternal 10/100M Ethernet PHY supply voltageCH32V317-0.34.0V
V DDKVoltage at decoupling end of internal power supply LDOCH32V317-0.21.5V
V INInput voltage on the FT (5V tolerance) pinInput voltage on the FT (5V tolerance) pinV SS -0.35.5V
V IN10/100M Ethernet PHY differential pinV SS -0.3V DD_ETH +0.3VV
V INInput voltage onPHY pin of USB and 10M EthernetInput voltage onPHY pin of USB and 10M EthernetV SS -0.3V DD +0.3V
V INInput voltage on other pinsInput voltage on other pinsV SS -0.3V IO +0.3V
\△ V DD_x \Variations between different main power supply pinsVariations between different main power supply pins
\△ V I/O_x \Variations between different I/O power supply pinsVariations between different I/O power supply pins
\△ V SS_x \Variations between different ground pinsVariations between different ground pins
V ESD(HBM)Electrostatic discharge voltage (HBM, non-contact)Electrostatic discharge voltage (HBM, non-contact)4K4KV
V ESD(HBM)USB pins (PA11, PA12)USB pins (PA11, PA12)3K3KV

Table 4-1 Absolute maximum ratings

V3.5 52

I VDDTotal current intoV DD /V DDA /V IO power lines (source)150mA
I VssTotal current out ofV SS ground lines (sink)150mA
I I/OSink current on any I/O and control pin25mA
I I/OSource current on any I/O and control pin-25mA
I INJ(PIN)Injected current on NRST pin+/-5mA
I INJ(PIN)Injected current on HSE's OSC_IN pin and LSE's OSC_IN pin+/-5mA
I INJ(PIN)Injected current on other pins+/-5mA
∑I INJ(PIN)Total injected current on all I/Os and control pins+/-25mA

Ordering Information

No ordering information (MPN, package, temperature range, packing) was found in the provided datasheet section. Only a package type (TSSOP20) was mentioned.

Related Variants

The following components are covered by the same datasheet.

Part NumberManufacturerPackage
CH32V303WCH
CH32V305WCH
CH32V30XWCH
CH32V317WCH
Data on this page is extracted from publicly available manufacturer datasheets using automated tools including AI. It may contain errors or omissions. Always verify specifications against the official manufacturer datasheet before making design or purchasing decisions. See our Terms of Service. Rights holders can submit a takedown request.

Get structured datasheet data via API

Get started free